mirror of
https://github.com/halpz/re3.git
synced 2025-07-03 07:20:48 +00:00
CAutomobile done
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user