diff options
author | eray orçunus <erayorcunus@gmail.com> | 2019-07-15 14:11:40 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2019-07-15 14:11:40 +0200 |
commit | 2c138b2b77cf661d9f119061963a726fdcde56d0 (patch) | |
tree | 1c8316f212304c911252b378b3b56368ba4ceaa9 /src/weapons/Weapon.cpp | |
parent | little change to aspect ratio defines (diff) | |
download | re3-2c138b2b77cf661d9f119061963a726fdcde56d0.tar re3-2c138b2b77cf661d9f119061963a726fdcde56d0.tar.gz re3-2c138b2b77cf661d9f119061963a726fdcde56d0.tar.bz2 re3-2c138b2b77cf661d9f119061963a726fdcde56d0.tar.lz re3-2c138b2b77cf661d9f119061963a726fdcde56d0.tar.xz re3-2c138b2b77cf661d9f119061963a726fdcde56d0.tar.zst re3-2c138b2b77cf661d9f119061963a726fdcde56d0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/weapons/Weapon.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/weapons/Weapon.cpp b/src/weapons/Weapon.cpp index 90a6408b..cd63544f 100644 --- a/src/weapons/Weapon.cpp +++ b/src/weapons/Weapon.cpp @@ -36,6 +36,12 @@ CWeapon::Reload(void) } bool +CWeapon::IsType2Handed(void) +{ + return m_eWeaponType >= WEAPONTYPE_SHOTGUN && m_eWeaponType <= WEAPONTYPE_FLAMETHROWER && m_eWeaponType != WEAPONTYPE_ROCKETLAUNCHER; +} + +bool CWeapon::IsTypeMelee(void) { return m_eWeaponType == WEAPONTYPE_UNARMED || m_eWeaponType == WEAPONTYPE_BASEBALLBAT; |