From 4c6a3dd55897f1f71836ecba15c029e638aa17f9 Mon Sep 17 00:00:00 2001 From: TjgL Date: Thu, 23 Jan 2025 22:11:43 +0100 Subject: [PATCH] Added defaults values to bullet info --- Source/LegumeMix/Public/Player/LMBulletInfo.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/LegumeMix/Public/Player/LMBulletInfo.h b/Source/LegumeMix/Public/Player/LMBulletInfo.h index 0fe06af..740b9d8 100644 --- a/Source/LegumeMix/Public/Player/LMBulletInfo.h +++ b/Source/LegumeMix/Public/Player/LMBulletInfo.h @@ -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; };