[HL25] Fix trigger_hurt healing dead players in multiplayer
This commit is contained in:
parent
7b001c59ae
commit
6ae5366a52
1 changed files with 13 additions and 1 deletions
|
@ -999,7 +999,19 @@ void CBaseTrigger::HurtTouch(CBaseEntity* pOther)
|
|||
#endif
|
||||
|
||||
if (fldmg < 0)
|
||||
{
|
||||
bool bApplyHeal = true;
|
||||
|
||||
if (g_pGameRules->IsMultiplayer() && pOther->IsPlayer())
|
||||
{
|
||||
bApplyHeal = pOther->pev->deadflag == DEAD_NO;
|
||||
}
|
||||
|
||||
if (bApplyHeal)
|
||||
{
|
||||
pOther->TakeHealth(-fldmg, m_bitsDamageInflict);
|
||||
}
|
||||
}
|
||||
else
|
||||
pOther->TakeDamage(pev, pev, fldmg, m_bitsDamageInflict);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue