diff options
Diffstat (limited to 'src/peds')
-rw-r--r-- | src/peds/Ped.cpp | 7 | ||||
-rw-r--r-- | src/peds/Ped.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index 713806a2..6f969c5c 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -8959,6 +8959,13 @@ CPed::GetWeaponSlot(eWeaponType weaponType) return CWeaponInfo::GetWeaponInfo(weaponType)->m_nWeaponSlot; } +// --MIAMI: Done +bool +CPed::CanWeRunAndFireWithWeapon(void) +{ + return CWeaponInfo::GetWeaponInfo(GetWeapon()->m_eWeaponType)->m_bCanAimWithArm; +} + void CPed::GoToNearestDoor(CVehicle *veh) { diff --git a/src/peds/Ped.h b/src/peds/Ped.h index 820db413..e1795f55 100644 --- a/src/peds/Ped.h +++ b/src/peds/Ped.h @@ -797,6 +797,7 @@ public: int GetNextPointOnRoute(void); uint8 GetPedRadioCategory(uint32); int GetWeaponSlot(eWeaponType); + bool CanWeRunAndFireWithWeapon(void); void GoToNearestDoor(CVehicle*); bool HaveReachedNextPointOnRoute(float); void Idle(void); |