Struct that defines this weapon's type, cooldown, and ammo.
More...
#include <WeaponState.hpp>
Struct that defines this weapon's type, cooldown, and ammo.
◆ chargeTime
| float GunInstance::chargeTime = 0.f |
Accumulated charge time (charge weapons only).
◆ currentMagAmmo
| int GunInstance::currentMagAmmo = 0 |
◆ fireCooldown
| float GunInstance::fireCooldown = 0.f |
◆ firedSinceTriggerPress
| bool GunInstance::firedSinceTriggerPress = false |
Semi-auto gate: blocks re-fire until trigger released.
◆ isReloading
| bool GunInstance::isReloading = false |
True while reload is in progress.
◆ recoilHeat
| float GunInstance::recoilHeat = 0.f |
Recoil heat (decays when not firing).
◆ recoilIdleTime
| float GunInstance::recoilIdleTime = 0.f |
Time off trigger before decay starts.
◆ reloadTime
| float GunInstance::reloadTime = 0.f |
Time remaining to complete a reload.
◆ totalAmmo
| int GunInstance::totalAmmo = 0 |
◆ type
The documentation for this struct was generated from the following file: