Compare commits

..

No commits in common. "4e99898af96ef40f2a13fb53a8dc705c0a3d75f3" and "dc85c692584116255f143ce3e45236f1fb6b19de" have entirely different histories.

6 changed files with 12 additions and 11 deletions

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)

Binary file not shown.

Binary file not shown.

BIN
Content/Enemy/Worker/C_Worker.uasset (Stored with Git LFS)

Binary file not shown.

View File

@ -107,6 +107,7 @@ void AEnemyCharacter::CalculateHits(TArray<FHitResult>* hits, FVector* dir)
// Set up randomness
const int32 RandomSeed = FMath::Rand();
FRandomStream WeaponRandomStream(RandomSeed);
const float Spread = CurrentWeapon->GetWeaponProperties()->WeaponSpread;
const float Spread = CurrentWeapon->GetWeaponProperties()->WeaponSpread * WeaponSpreadModifier;
const float Range = CurrentWeapon->GetWeaponProperties()->ProjectileRange;
@ -137,7 +138,7 @@ void AEnemyCharacter::CalculateHits(TArray<FHitResult>* hits, FVector* dir)
for (FHitResult Result : HitResults)
{
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);
}
}
}

View File

@ -15,7 +15,7 @@
#include "NakatomiCMC.h"
#include "WeaponThrowable.h"
#include "NiagaraFunctionLibrary.h"
#include "GameFramework/CharacterMovementComponent.h"
#include "GameFramework/CharacterMovementComponent.h"
#define COLLISION_WEAPON ECC_GameTraceChannel1
@ -369,7 +369,7 @@ void APlayerCharacter::CalculateHits(TArray<FHitResult>* hits, FVector* dir)
for (FHitResult Result : HitResults)
{
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);
}
}
}