mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-25 03:09:24 +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
|
||||
if( fldmg < 0 )
|
||||
{
|
||||
if( !( g_pGameRules->IsMultiplayer()
|
||||
&& pOther->IsPlayer()
|
||||
&& pOther->pev->deadflag ))
|
||||
pOther->TakeHealth( -fldmg, m_bitsDamageInflict );
|
||||
}
|
||||
else
|
||||
pOther->TakeDamage( pev, pev, fldmg, m_bitsDamageInflict );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user