Gun.h

PHOTO EMBED

Mon Aug 29 2022 08:27:22 GMT+0000 (Coordinated Universal Time)

Saved by @coduck #c++

private:
	int32 CurrentAmmoWithYou;
	int32 CurrentAmmoInMagazine;

	UPROPERTY(EditAnywhere, Category = "Statistics")
	float ReloadTime = 1.6f;
	UPROPERTY(EditAnywhere, Category="Statistics")
	float MaxDistance = 100.f;
	UPROPERTY(EditAnywhere, Category = "Statistics")
	float Damage = 10.f;
	UPROPERTY(EditAnywhere, Category = "Statistics")
	int32 MaxAmmoCarry = 360;
	UPROPERTY(EditAnywhere, Category = "Statistics")
	int32 MaxAmmoMagazine = 15;
	UPROPERTY(EditAnywhere, Category = "Statistics")
	float AccuracyMin = 0;
	UPROPERTY(EditAnywhere, Category = "Statistics")
	float AccuracyMax = 0;

	FTimerHandle ReloadTimer;

	void CalculateBulletsAmountToReload();

public:	
	bool IsShooting();
	void ReplenishAmmo();

	int32 GetAmmoInMagazineValue();
	int32 GetAmmoWithYouValue();
content_copyCOPY