mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-11 15:38:12 +00:00
Do not reduce armor value when godmode is active.
This commit is contained in:
parent
4d7d6f2c37
commit
2324270cc2
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user