diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-05-23 15:53:20 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-05-23 15:53:20 +0200 |
commit | 5357957fe124afb8e9a5f737510fe4c96a7dc327 (patch) | |
tree | b76392c3addab639379e02b1ba893a5ebf260170 /src/weapons/Weapon.h | |
parent | skeleton typos (diff) | |
download | re3-5357957fe124afb8e9a5f737510fe4c96a7dc327.tar re3-5357957fe124afb8e9a5f737510fe4c96a7dc327.tar.gz re3-5357957fe124afb8e9a5f737510fe4c96a7dc327.tar.bz2 re3-5357957fe124afb8e9a5f737510fe4c96a7dc327.tar.lz re3-5357957fe124afb8e9a5f737510fe4c96a7dc327.tar.xz re3-5357957fe124afb8e9a5f737510fe4c96a7dc327.tar.zst re3-5357957fe124afb8e9a5f737510fe4c96a7dc327.zip |
Diffstat (limited to '')
-rw-r--r-- | src/weapons/Weapon.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/weapons/Weapon.h b/src/weapons/Weapon.h index f6228b32..b4ed93c3 100644 --- a/src/weapons/Weapon.h +++ b/src/weapons/Weapon.h @@ -68,6 +68,8 @@ public: static void BlowUpExplosiveThings(CEntity *thing); bool HasWeaponAmmoToBeUsed(void); + static bool IsShotgun(int weapon) { return weapon == WEAPONTYPE_SHOTGUN || weapon == WEAPONTYPE_SPAS12_SHOTGUN || weapon == WEAPONTYPE_STUBBY_SHOTGUN; } + static bool ProcessLineOfSight(CVector const &point1, CVector const &point2, CColPoint &point, CEntity *&entity, eWeaponType type, CEntity *shooter, bool checkBuildings, bool checkVehicles, bool checkPeds, bool checkObjects, bool checkDummies, bool ignoreSeeThrough, bool ignoreSomeObjects); #ifdef COMPATIBLE_SAVES |