summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-06-19 00:10:41 +0200
committeraap <aap@papnet.eu>2020-06-20 14:54:11 +0200
commitc5205a89eedbbefafb27d6ff482578d4cceaaaab (patch)
tree71870a82a4cac246adf58319661ed939a4af5fac /src/peds
parentbikes in garages + bugfix (diff)
downloadre3-c5205a89eedbbefafb27d6ff482578d4cceaaaab.tar
re3-c5205a89eedbbefafb27d6ff482578d4cceaaaab.tar.gz
re3-c5205a89eedbbefafb27d6ff482578d4cceaaaab.tar.bz2
re3-c5205a89eedbbefafb27d6ff482578d4cceaaaab.tar.lz
re3-c5205a89eedbbefafb27d6ff482578d4cceaaaab.tar.xz
re3-c5205a89eedbbefafb27d6ff482578d4cceaaaab.tar.zst
re3-c5205a89eedbbefafb27d6ff482578d4cceaaaab.zip
Diffstat (limited to '')
-rw-r--r--src/peds/Ped.cpp7
-rw-r--r--src/peds/Ped.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index 4069301d..c11291b9 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -8988,6 +8988,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 e77e5aa3..1eb28239 100644
--- a/src/peds/Ped.h
+++ b/src/peds/Ped.h
@@ -798,6 +798,7 @@ public:
int GetNextPointOnRoute(void);
uint8 GetPedRadioCategory(uint32);
int GetWeaponSlot(eWeaponType);
+ bool CanWeRunAndFireWithWeapon(void);
void GoToNearestDoor(CVehicle*);
bool HaveReachedNextPointOnRoute(float);
void Idle(void);