Add ADS Spread Multiplier to RandomWeaponParameter generation
This commit is contained in:
parent
929eca3204
commit
cee5c8d08c
Source/Nakatomi
|
@ -17,6 +17,7 @@ FWeaponProperties URandomWeaponParameters::GenerateRandomWeaponProperties()
|
|||
weaponProperties.ProjectilesPerShot = FMath::RandRange(ProjectilePerShotMin, ProjectilePerShotMax);
|
||||
weaponProperties.ProjectileRange = FMath::FRandRange(ProjectileRangeMin, ProjectileRangeMax);
|
||||
weaponProperties.WeaponSpread = FMath::FRandRange(WeaponSpreadMin, WeaponSpreadMax);
|
||||
weaponProperties.ADSWeaponSpreadMultiplier = FMath::FRandRange(ADSWeaponSpreadMulMin, ADSWeaponSpreadMulMax);
|
||||
|
||||
if (IsAutomaticOverride)
|
||||
{
|
||||
|
|
|
@ -81,6 +81,14 @@ public:
|
|||
DisplayName = "Max", meta = ( ClampMin = "0", ClampMax = "360" ))
|
||||
float WeaponSpreadMax = 15.0f;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Random Weapon Parameters|ADS Weapon Spread Multiplier",
|
||||
DisplayName = "Min", meta = (ClampMin = "0", ClampMax = "360"))
|
||||
float ADSWeaponSpreadMulMin = 0.f;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Random Weapon Parameters|ADS Weapon Spread Multiplier",
|
||||
DisplayName = "Max", meta = (ClampMin = "0", ClampMax = "360"))
|
||||
float ADSWeaponSpreadMulMax = 1.0f;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Random Weapon Parameters|Is Automatic")
|
||||
bool IsAutomaticOverride = false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue