diff options
author | aap <aap@papnet.eu> | 2020-06-01 20:32:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-01 20:32:24 +0200 |
commit | 21afcd8767791278bef5df9fa071af0427588a59 (patch) | |
tree | c080d424e33307c3237431da6e9c303645d23008 /src/peds | |
parent | Merge pull request #608 from Nick007J/miami (diff) | |
parent | CAutomobile done (diff) | |
download | re3-21afcd8767791278bef5df9fa071af0427588a59.tar re3-21afcd8767791278bef5df9fa071af0427588a59.tar.gz re3-21afcd8767791278bef5df9fa071af0427588a59.tar.bz2 re3-21afcd8767791278bef5df9fa071af0427588a59.tar.lz re3-21afcd8767791278bef5df9fa071af0427588a59.tar.xz re3-21afcd8767791278bef5df9fa071af0427588a59.tar.zst re3-21afcd8767791278bef5df9fa071af0427588a59.zip |
Diffstat (limited to 'src/peds')
-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 406ac23f..e60d702b 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -16630,6 +16630,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); @@ -16641,6 +16643,7 @@ CPed::ScanForThreats(void) m_threatEntity->RegisterReference((CEntity **) &m_threatEntity); return CPedType::GetFlag(shooter->m_nPedType); } +} } CPed *deadPed = nil; |