Compare commits
4 Commits
dc85c69258
...
4e99898af9
Author | SHA1 | Date |
---|---|---|
baz | 4e99898af9 | |
baz | 374a04409b | |
baz | 3d66b9268e | |
baz | 0e6ac1fc2f |
BIN
Content/Assets/Door/Door.uasset (Stored with Git LFS)
BIN
Content/Assets/Door/Door.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Assets/Grunge/T_Grunge.uasset (Stored with Git LFS)
BIN
Content/Assets/Grunge/T_Grunge.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Enemy/BehaviorTrees/BT_Attacking_State.uasset (Stored with Git LFS)
BIN
Content/Enemy/BehaviorTrees/BT_Attacking_State.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Enemy/Worker/C_Worker.uasset (Stored with Git LFS)
BIN
Content/Enemy/Worker/C_Worker.uasset (Stored with Git LFS)
Binary file not shown.
|
@ -107,7 +107,6 @@ void AEnemyCharacter::CalculateHits(TArray<FHitResult>* hits, FVector* dir)
|
||||||
// Set up randomness
|
// Set up randomness
|
||||||
const int32 RandomSeed = FMath::Rand();
|
const int32 RandomSeed = FMath::Rand();
|
||||||
FRandomStream WeaponRandomStream(RandomSeed);
|
FRandomStream WeaponRandomStream(RandomSeed);
|
||||||
const float Spread = CurrentWeapon->GetWeaponProperties()->WeaponSpread;
|
|
||||||
const float Spread = CurrentWeapon->GetWeaponProperties()->WeaponSpread * WeaponSpreadModifier;
|
const float Spread = CurrentWeapon->GetWeaponProperties()->WeaponSpread * WeaponSpreadModifier;
|
||||||
const float Range = CurrentWeapon->GetWeaponProperties()->ProjectileRange;
|
const float Range = CurrentWeapon->GetWeaponProperties()->ProjectileRange;
|
||||||
|
|
||||||
|
@ -138,7 +137,7 @@ void AEnemyCharacter::CalculateHits(TArray<FHitResult>* hits, FVector* dir)
|
||||||
for (FHitResult Result : HitResults)
|
for (FHitResult Result : HitResults)
|
||||||
{
|
{
|
||||||
hits->Add(Result);
|
hits->Add(Result);
|
||||||
DrawDebugLine(GetWorld(), TraceStart, Result.ImpactPoint, FColor::Red, true, 500, 0U, 0);
|
// DrawDebugLine(GetWorld(), TraceStart, Result.ImpactPoint, FColor::Red, true, 500, 0U, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -369,7 +369,7 @@ void APlayerCharacter::CalculateHits(TArray<FHitResult>* hits, FVector* dir)
|
||||||
for (FHitResult Result : HitResults)
|
for (FHitResult Result : HitResults)
|
||||||
{
|
{
|
||||||
hits->Add(Result);
|
hits->Add(Result);
|
||||||
DrawDebugLine(GetWorld(), TraceStart, Result.ImpactPoint, FColor::Blue, true, 500, 0U, 0);
|
// DrawDebugLine(GetWorld(), TraceStart, Result.ImpactPoint, FColor::Blue, true, 500, 0U, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue