Merge branch 'dev' into UI-Implementation
# Conflicts: # Content/Blueprints/Player/BP_MyTempCharacter.uasset # Content/Levels/Top_layer_level.umap
This commit is contained in:
commit
688a724a62
BIN
Content/Assets/Characters/Goat_Enemy/GoatMaterial/GoatMat.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Characters/Goat_Enemy/GoatMaterial/GoatMat.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Characters/Goat_Enemy/GoatMaterial/goat_low_GoatMat_BaseColor.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Characters/Goat_Enemy/GoatMaterial/goat_low_GoatMat_BaseColor.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Characters/Goat_Enemy/GoatMaterial/goat_low_GoatMat_Normal.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Characters/Goat_Enemy/GoatMaterial/goat_low_GoatMat_Normal.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Characters/Goat_Enemy/GoatMaterial/goat_low_GoatMat_OcclusionRoughnessMetallic.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Characters/Goat_Enemy/GoatMaterial/goat_low_GoatMat_OcclusionRoughnessMetallic.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Characters/Goat_Enemy/SM_Goat.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Characters/Goat_Enemy/SM_Goat.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Characters/Merchant/AMerchant.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Characters/Merchant/AMerchant.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Characters/Merchant/MerchantMat/MerchantMat.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Characters/Merchant/MerchantMat/MerchantMat.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Characters/Merchant/MerchantMat/Merchant_low_MerchantMat_BaseColor.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Characters/Merchant/MerchantMat/Merchant_low_MerchantMat_BaseColor.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Characters/Merchant/MerchantMat/Merchant_low_MerchantMat_Normal.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Characters/Merchant/MerchantMat/Merchant_low_MerchantMat_Normal.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Characters/Merchant/MerchantMat/Merchant_low_MerchantMat_OcclusionRoughnessMetallic.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Characters/Merchant/MerchantMat/Merchant_low_MerchantMat_OcclusionRoughnessMetallic.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Characters/Merchant/Merchant_Body_low.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Characters/Merchant/Merchant_Body_low.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Characters/Merchant/Merchant_Boots_low.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Characters/Merchant/Merchant_Boots_low.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Characters/Merchant/Merchant_Hair_low.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Characters/Merchant/Merchant_Hair_low.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Characters/Merchant/Merchant_Hood_low.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Characters/Merchant/Merchant_Hood_low.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Characters/Merchant/Merchant_Sash_low.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Characters/Merchant/Merchant_Sash_low.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Characters/Merchant/Merchant_Sleeves_low.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Characters/Merchant/Merchant_Sleeves_low.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Characters/Merchant/SM_Merchant.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Characters/Merchant/SM_Merchant.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/Crystal/Crystal_texture.uasset
(Stored with Git LFS)
BIN
Content/Assets/Objects/Crystal/Crystal_texture.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Assets/Objects/Crystal/Small_Crystal_1.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/Crystal/Small_Crystal_1.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/Crystal/Small_Crystal_2.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/Crystal/Small_Crystal_2.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/Crystal/Small_Crystal_3.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/Crystal/Small_Crystal_3.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/Crystal/crystal_1.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/Crystal/crystal_1.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/Crystal/crystal_2.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/Crystal/crystal_2.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/Crystal/crystal_3.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/Crystal/crystal_3.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/Crystal/lambert1.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/Crystal/lambert1.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/General_Dressing/Barrel.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/General_Dressing/Barrel.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/General_Dressing/Beams_1.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/General_Dressing/Beams_1.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/General_Dressing/Beams_2.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/General_Dressing/Beams_2.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/General_Dressing/Chest.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/General_Dressing/Chest.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/General_Dressing/Large_Crate.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/General_Dressing/Large_Crate.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/General_Dressing/Pickaxe.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/General_Dressing/Pickaxe.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/General_Dressing/Plank_Long.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/General_Dressing/Plank_Long.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/General_Dressing/Plank_Short.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/General_Dressing/Plank_Short.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/General_Dressing/Sign_Short.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/General_Dressing/Sign_Short.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/General_Dressing/Sign_Tall.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/General_Dressing/Sign_Tall.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/General_Dressing/Small_Crate.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/General_Dressing/Small_Crate.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/General_Dressing/lambert1.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/General_Dressing/lambert1.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_Bag_low.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_Bag_low.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_Coins_low.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_Coins_low.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_Crate_low.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_Crate_low.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_JellyCube_low.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_JellyCube_low.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_JellyJar_low.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_JellyJar_low.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_Lamp_low.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_Lamp_low.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_PotionLong_low.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_PotionLong_low.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_PotionRoundB_low.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_PotionRoundB_low.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_Shelves1_low.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_Shelves1_low.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_Table_low.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_Table_low.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_barrel2_low.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_barrel2_low.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_barrel_low.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_barrel_low.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_box_low.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_box_low.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_bucket_low.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_bucket_low.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_sac_low.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/Objects/MerchantShop/MerchantShopModular_sac_low.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/BlueprintAI/AI/AIBruh.uasset
(Stored with Git LFS)
BIN
Content/BlueprintAI/AI/AIBruh.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Blueprints/Items/AmmoItem.uasset
(Stored with Git LFS)
BIN
Content/Blueprints/Items/AmmoItem.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Blueprints/Items/BP_Azos.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Blueprints/Items/BP_Azos.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Blueprints/Items/BP_Eis.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Blueprints/Items/BP_Eis.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Blueprints/Items/BP_Iroquoid.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Blueprints/Items/BP_Iroquoid.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Blueprints/Items/BP_Probertium.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Blueprints/Items/BP_Probertium.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Blueprints/Items/ItemMaterials/Mat_Azos.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Blueprints/Items/ItemMaterials/Mat_Azos.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Blueprints/Items/ItemMaterials/Mat_Eis.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Blueprints/Items/ItemMaterials/Mat_Eis.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Blueprints/Items/ItemMaterials/Mat_Iroquoid.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Blueprints/Items/ItemMaterials/Mat_Iroquoid.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Blueprints/Items/ItemMaterials/Mat_Probertium.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Blueprints/Items/ItemMaterials/Mat_Probertium.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Blueprints/Items/ItemsInWorld/BP_AmmoItem.uasset
(Stored with Git LFS)
BIN
Content/Blueprints/Items/ItemsInWorld/BP_AmmoItem.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Blueprints/Items/ItemsInWorld/BP_Azos.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Blueprints/Items/ItemsInWorld/BP_Azos.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Blueprints/Items/ItemsInWorld/BP_Eis.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Blueprints/Items/ItemsInWorld/BP_Eis.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Blueprints/Items/ItemsInWorld/BP_HealingJellyItem.uasset
(Stored with Git LFS)
BIN
Content/Blueprints/Items/ItemsInWorld/BP_HealingJellyItem.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Blueprints/Items/ItemsInWorld/BP_Iroquoid.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Blueprints/Items/ItemsInWorld/BP_Iroquoid.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Blueprints/Items/ItemsInWorld/BP_Probertium.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Blueprints/Items/ItemsInWorld/BP_Probertium.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Blueprints/Merchant/BP_MerchantInteraction.uasset
(Stored with Git LFS)
BIN
Content/Blueprints/Merchant/BP_MerchantInteraction.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Blueprints/Player/BP_MyTempCharacter.uasset
(Stored with Git LFS)
BIN
Content/Blueprints/Player/BP_MyTempCharacter.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Levels/Build.umap
(Stored with Git LFS)
BIN
Content/Levels/Build.umap
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Levels/MerchantPrototype.umap
(Stored with Git LFS)
BIN
Content/Levels/MerchantPrototype.umap
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Levels/Top_layer_level.umap
(Stored with Git LFS)
BIN
Content/Levels/Top_layer_level.umap
(Stored with Git LFS)
Binary file not shown.
BIN
Environment/MerchantShopAssets/MerchantShop.mb
(Stored with Git LFS)
Normal file
BIN
Environment/MerchantShopAssets/MerchantShop.mb
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Environment/MerchantShopAssets/MerchantShopBlockout.fbx
(Stored with Git LFS)
Normal file
BIN
Environment/MerchantShopAssets/MerchantShopBlockout.fbx
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Environment/MerchantShopAssets/MerchantShop_high.fbx
(Stored with Git LFS)
Normal file
BIN
Environment/MerchantShopAssets/MerchantShop_high.fbx
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Environment/MerchantShopAssets/MerchantShop_low.fbx
(Stored with Git LFS)
Normal file
BIN
Environment/MerchantShopAssets/MerchantShop_low.fbx
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -54,7 +54,16 @@ public:
|
||||
bool isDamageBuffItem;
|
||||
|
||||
UPROPERTY(EditAnywhere, Category = "Item")
|
||||
bool isAmmoItemType;
|
||||
bool isProbertiumType;
|
||||
|
||||
UPROPERTY(EditAnywhere, Category = "Item")
|
||||
bool isEisType;
|
||||
|
||||
UPROPERTY(EditAnywhere, Category = "Item")
|
||||
bool isAzosType;
|
||||
|
||||
UPROPERTY(EditAnywhere, Category = "Item")
|
||||
bool isIroquoidType;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Item")
|
||||
int32 StackCount = 1;
|
||||
|
@ -39,18 +39,48 @@ void UEatableItems::Use(ATempCharacter* Character)
|
||||
Character->Inventory->RemoveItem(this);
|
||||
}
|
||||
|
||||
if (isAmmoItemType)
|
||||
if (isProbertiumType)
|
||||
{
|
||||
TurnBaseCombat = GetWorld()->GetGameState<ATurnBaseCombatV2>();
|
||||
if (TurnBaseCombat->ProbertiumResource > 10)
|
||||
if (TurnBaseCombat->ProbertiumResource < 10)
|
||||
{
|
||||
UE_LOG(LogTemp, Warning, TEXT("Probertium eaten"));
|
||||
TurnBaseCombat->ProbertiumResource += 5;
|
||||
Character->Inventory->RemoveItem(this);
|
||||
}
|
||||
if (TurnBaseCombat->EisResource > 10)
|
||||
}
|
||||
|
||||
if (isEisType)
|
||||
{
|
||||
TurnBaseCombat = GetWorld()->GetGameState<ATurnBaseCombatV2>();
|
||||
if (TurnBaseCombat->EisResource < 10)
|
||||
{
|
||||
UE_LOG(LogTemp, Warning, TEXT("Eis eaten"));
|
||||
TurnBaseCombat->EisResource += 5;
|
||||
Character->Inventory->RemoveItem(this);
|
||||
}
|
||||
}
|
||||
|
||||
if (isAzosType)
|
||||
{
|
||||
TurnBaseCombat = GetWorld()->GetGameState<ATurnBaseCombatV2>();
|
||||
if (TurnBaseCombat->AzosResource < 10)
|
||||
{
|
||||
UE_LOG(LogTemp, Warning, TEXT("Azos eaten"));
|
||||
TurnBaseCombat->AzosResource += 5;
|
||||
Character->Inventory->RemoveItem(this);
|
||||
}
|
||||
}
|
||||
|
||||
if (isIroquoidType)
|
||||
{
|
||||
TurnBaseCombat = GetWorld()->GetGameState<ATurnBaseCombatV2>();
|
||||
if (TurnBaseCombat->IroquoidResource < 10)
|
||||
{
|
||||
UE_LOG(LogTemp, Warning, TEXT("Iroq eaten"));
|
||||
TurnBaseCombat->IroquoidResource += 5;
|
||||
Character->Inventory->RemoveItem(this);
|
||||
}
|
||||
Character->Inventory->RemoveItem(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ void ATempCharacter::BeginPlay()
|
||||
PostProcessVolume = Cast<APostProcessVolume>(AllActorsInScene[0]);
|
||||
}
|
||||
Enemy = TEXT("Enemy");
|
||||
UGameplayStatics::GetAllActorsWithTag(GetWorld(), Enemy, AIActors);
|
||||
//UGameplayStatics::GetAllActorsWithTag(GetWorld(), Enemy, AIActors);
|
||||
Ammo = TEXT("Ammo");
|
||||
NoiseEmitter = Cast<UPawnNoiseEmitterComponent>(this->FindComponentByClass(UPawnNoiseEmitterComponent::StaticClass()));
|
||||
}
|
||||
@ -66,27 +66,27 @@ void ATempCharacter::Sneak()
|
||||
UnCrouch();
|
||||
isInStealth = false;
|
||||
if (PostProcessVolume != nullptr) PostProcessVolume->Settings.VignetteIntensity = 0.0f;
|
||||
for (AActor* Actor : AIActors)
|
||||
{
|
||||
USphereComponent* SphereComponent = Actor->FindComponentByClass<USphereComponent>();
|
||||
if (SphereComponent != nullptr)
|
||||
{
|
||||
SphereComponent->SetSphereRadius(40.0f); //default value
|
||||
}
|
||||
}
|
||||
//for (AActor* Actor : AIActors)
|
||||
//{
|
||||
// USphereComponent* SphereComponent = Actor->FindComponentByClass<USphereComponent>();
|
||||
// if (IsValid(SphereComponent))
|
||||
// {
|
||||
// SphereComponent->SetSphereRadius(40.0f); //default value
|
||||
// }
|
||||
//}
|
||||
}
|
||||
else
|
||||
{
|
||||
Crouch();
|
||||
isInStealth = true;
|
||||
for (AActor* Actor : AIActors)
|
||||
/*for (AActor* Actor : AIActors)
|
||||
{
|
||||
USphereComponent* SphereComponent = Actor->FindComponentByClass<USphereComponent>();
|
||||
if (IsValid(SphereComponent))
|
||||
{
|
||||
SphereComponent->SetSphereRadius(5.0f);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
if (PostProcessVolume != nullptr) PostProcessVolume->Settings.VignetteIntensity = 0.8f;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user