Added defaults values to bullet info
This commit is contained in:
parent
6a82183c66
commit
4c6a3dd558
@ -9,33 +9,33 @@ struct FLMBulletInfo
|
||||
|
||||
/** The number of bullets to fire. */
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
int BulletCount;
|
||||
int BulletCount = 1;
|
||||
|
||||
/** The bullets' origins. */
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
FVector Origin;
|
||||
FVector Origin = FVector::ZeroVector;
|
||||
|
||||
/** The main direction vector. */
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
FVector Direction;
|
||||
FVector Direction = FVector::ForwardVector;
|
||||
|
||||
/** The Random bullet spread angle deviation. */
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
float Spread;
|
||||
float Spread = 0.0f;
|
||||
|
||||
/** The maximum distance before the bullet reaches minimum damages. */
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
float MaxDistance;
|
||||
float MaxDistance = 100000.f;
|
||||
|
||||
/** A curve multiplicating the damage of a bullet depending on the distance of the target. */
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
FFloatCurve Falloff;
|
||||
FFloatCurve Falloff = FFloatCurve();
|
||||
|
||||
/** The type of bullet that was fired. */
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
EAmmoType AmmoType;
|
||||
EAmmoType AmmoType = EAmmoType::EAT_CornAmmo;
|
||||
|
||||
/** The default amount of damage to apply per bullet. */
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
float Damage;
|
||||
float Damage = 10.f;
|
||||
};
|
||||
|
Reference in New Issue
Block a user