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:
parent
edd258e302
commit
deee0dcbfb
@ -984,7 +984,12 @@ void CBaseTrigger::HurtTouch( CBaseEntity *pOther )
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if( fldmg < 0 )
|
if( fldmg < 0 )
|
||||||
pOther->TakeHealth( -fldmg, m_bitsDamageInflict );
|
{
|
||||||
|
if( !( g_pGameRules->IsMultiplayer()
|
||||||
|
&& pOther->IsPlayer()
|
||||||
|
&& pOther->pev->deadflag ))
|
||||||
|
pOther->TakeHealth( -fldmg, m_bitsDamageInflict );
|
||||||
|
}
|
||||||
else
|
else
|
||||||
pOther->TakeDamage( pev, pev, fldmg, m_bitsDamageInflict );
|
pOther->TakeDamage( pev, pev, fldmg, m_bitsDamageInflict );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user