Do not reduce armor value when godmode is active.

This commit is contained in:
Night Owl 2017-07-10 22:18:45 +05:00
parent 4d7d6f2c37
commit 2324270cc2

View File

@ -466,7 +466,7 @@ int CBasePlayer::TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, fl
m_lastDamageAmount = (int)flDamage; m_lastDamageAmount = (int)flDamage;
// Armor. // Armor.
if( pev->armorvalue && !( bitsDamageType & ( DMG_FALL | DMG_DROWN ) ) )// armor doesn't protect against fall or drown damage! if( !( pev->flags & FL_GODMODE ) && pev->armorvalue && !( bitsDamageType & ( DMG_FALL | DMG_DROWN ) ) )// armor doesn't protect against fall or drown damage!
{ {
float flNew = flDamage * flRatio; float flNew = flDamage * flRatio;