2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-22 01:47:45 +01:00

Avoid trigger_hurt's heal for dead players.

This commit is contained in:
Andrey Akhmichin 2024-01-26 21:42:30 +05:00
parent edd258e302
commit deee0dcbfb

View File

@ -984,7 +984,12 @@ void CBaseTrigger::HurtTouch( CBaseEntity *pOther )
}
#endif
if( fldmg < 0 )
pOther->TakeHealth( -fldmg, m_bitsDamageInflict );
{
if( !( g_pGameRules->IsMultiplayer()
&& pOther->IsPlayer()
&& pOther->pev->deadflag ))
pOther->TakeHealth( -fldmg, m_bitsDamageInflict );
}
else
pOther->TakeDamage( pev, pev, fldmg, m_bitsDamageInflict );