Compare commits
2 Commits
7f2dd495fd
...
35a8247bf6
Author | SHA1 | Date |
---|---|---|
baz | 35a8247bf6 | |
baz | 3229a2cf7b |
BIN
Content/UI/HUD/WidgetHUD.uasset (Stored with Git LFS)
BIN
Content/UI/HUD/WidgetHUD.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/UI/HUD/crosshair.uasset (Stored with Git LFS)
BIN
Content/UI/HUD/crosshair.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/UI/HUD/hitmarker.uasset (Stored with Git LFS)
BIN
Content/UI/HUD/hitmarker.uasset (Stored with Git LFS)
Binary file not shown.
|
@ -108,6 +108,7 @@ void AEnemyCharacter::CalculateHits(TArray<FHitResult>* hits, FVector* dir)
|
||||||
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;
|
||||||
|
const float Spread = CurrentWeapon->GetWeaponProperties()->WeaponSpread * WeaponSpreadModifier;
|
||||||
const float Range = CurrentWeapon->GetWeaponProperties()->ProjectileRange;
|
const float Range = CurrentWeapon->GetWeaponProperties()->ProjectileRange;
|
||||||
|
|
||||||
// Calculate starting position and direction
|
// Calculate starting position and direction
|
||||||
|
|
|
@ -31,6 +31,9 @@ public:
|
||||||
|
|
||||||
UPROPERTY(EditAnywhere)
|
UPROPERTY(EditAnywhere)
|
||||||
UWidgetComponent* HealthbarWidgetComponent;
|
UWidgetComponent* HealthbarWidgetComponent;
|
||||||
|
|
||||||
|
UPROPERTY(EditAnywhere)
|
||||||
|
float WeaponSpreadModifier = 1.0f;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
UPROPERTY(EditDefaultsOnly, Meta = (AllowPrivateAccess = "true"))
|
UPROPERTY(EditDefaultsOnly, Meta = (AllowPrivateAccess = "true"))
|
||||||
|
|
Loading…
Reference in New Issue