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; };