mirror of
https://github.com/GTAmodding/re3.git
synced 2021-09-07 08:09:38 +00:00
uma vez que 3 vezes não é suficiente
mais uma vez o github sendo uma pedra do sapato
This commit is contained in:
parent
b7e0244832
commit
e082d43193
|
@ -2404,8 +2404,12 @@ CPed::InflictDamage(CEntity *damagedBy, eWeaponType method, float damage, ePedPi
|
|||
}
|
||||
|
||||
if (m_fArmour != 0.0f && method != WEAPONTYPE_DROWNING) {
|
||||
if (player == this)
|
||||
if (player == this){
|
||||
CWorld::Players[CWorld::PlayerInFocus].m_nTimeLastArmourLoss = CTimer::GetTimeInMilliseconds();
|
||||
if(player->m_bInfiniteArmour) {
|
||||
healthImpact = 0.0f;
|
||||
}
|
||||
}
|
||||
|
||||
if (healthImpact < m_fArmour) {
|
||||
m_fArmour = m_fArmour - healthImpact;
|
||||
|
@ -3265,4 +3269,4 @@ CPed::KillPedWithCar(CVehicle *car, float impulse)
|
|||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user