diff options
author | eray orçunus <erayorcunus@gmail.com> | 2019-06-30 23:50:40 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2019-07-01 01:48:09 +0200 |
commit | ce28a6d298408513866716d00dcd16ed8ef5f285 (patch) | |
tree | 81e83f4689238683112b4776006262bfdbc88506 /src/weapons/Weapon.h | |
parent | Merge branch 'master' of git://github.com/GTAmodding/re3 into erorcun (diff) | |
download | re3-ce28a6d298408513866716d00dcd16ed8ef5f285.tar re3-ce28a6d298408513866716d00dcd16ed8ef5f285.tar.gz re3-ce28a6d298408513866716d00dcd16ed8ef5f285.tar.bz2 re3-ce28a6d298408513866716d00dcd16ed8ef5f285.tar.lz re3-ce28a6d298408513866716d00dcd16ed8ef5f285.tar.xz re3-ce28a6d298408513866716d00dcd16ed8ef5f285.tar.zst re3-ce28a6d298408513866716d00dcd16ed8ef5f285.zip |
Diffstat (limited to '')
-rw-r--r-- | src/weapons/Weapon.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/weapons/Weapon.h b/src/weapons/Weapon.h index aebcb2c6..7327e1f9 100644 --- a/src/weapons/Weapon.h +++ b/src/weapons/Weapon.h @@ -45,11 +45,17 @@ class CWeapon public: eWeaponType m_eWeaponType; eWeaponState m_eWeaponState; - int32 m_nAmmoInClip; - int32 m_nAmmoTotal; + uint32 m_nAmmoInClip; + uint32 m_nAmmoTotal; int32 m_nTimer; bool m_bAddRotOffset; + CWeapon() { + m_bAddRotOffset = false; + } + + void Initialise(eWeaponType type, int ammo); + void Reload(void); bool Fire(CEntity*, CVector*); void AddGunshell(CEntity*, CVector const&, CVector2D const&, float); }; |