diff options
Diffstat (limited to 'src/peds/Ped.cpp')
-rw-r--r-- | src/peds/Ped.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index 687f9da1..47d72ed6 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -16623,6 +16623,8 @@ CPed::ScanForThreats(void) CPed *shooter = nil; if ((fearFlags & PED_FLAG_GUN) && (shooter = CheckForGunShots()) && (m_nPedType != shooter->m_nPedType || m_nPedType == PEDTYPE_CIVMALE || m_nPedType == PEDTYPE_CIVFEMALE)) { +//TODO(MIAMI): just a quick fix for heli weapons +if(shooter->IsPed()){ if (!IsGangMember()) { m_threatEntity = shooter; m_threatEntity->RegisterReference((CEntity **) &m_threatEntity); @@ -16634,6 +16636,7 @@ CPed::ScanForThreats(void) m_threatEntity->RegisterReference((CEntity **) &m_threatEntity); return CPedType::GetFlag(shooter->m_nPedType); } +} } CPed *deadPed = nil; |