uma vez que 3 vezes não é suficiente

mais uma vez o github sendo uma pedra do sapato
This commit is contained in:
Francisco Anderson Bezerra Rodrigues 2021-08-20 19:34:31 -03:00 committed by GitHub
parent b7e0244832
commit e082d43193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}
}