summaryrefslogtreecommitdiffstats
path: root/src/peds/Ped.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-06-20 15:23:42 +0200
committereray orçunus <erayorcunus@gmail.com>2020-06-20 15:23:42 +0200
commitfd3cd2c26ac24fc104878cf80f59518ae51d2e8d (patch)
tree90809f252c4cbb485f5df5f23c76f9f380d9a8d2 /src/peds/Ped.cpp
parentDucking, shooting vehicle occupants and weapon fixes (diff)
parentMerge pull request #636 from aap/miami (diff)
downloadre3-fd3cd2c26ac24fc104878cf80f59518ae51d2e8d.tar
re3-fd3cd2c26ac24fc104878cf80f59518ae51d2e8d.tar.gz
re3-fd3cd2c26ac24fc104878cf80f59518ae51d2e8d.tar.bz2
re3-fd3cd2c26ac24fc104878cf80f59518ae51d2e8d.tar.lz
re3-fd3cd2c26ac24fc104878cf80f59518ae51d2e8d.tar.xz
re3-fd3cd2c26ac24fc104878cf80f59518ae51d2e8d.tar.zst
re3-fd3cd2c26ac24fc104878cf80f59518ae51d2e8d.zip
Diffstat (limited to 'src/peds/Ped.cpp')
-rw-r--r--src/peds/Ped.cpp7
1 files changed, 7 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)
{