Skip to content

Commit

Permalink
don't play damage effects for trigger_hurt_remote heals
Browse files Browse the repository at this point in the history
  • Loading branch information
wootguy committed Sep 7, 2024
1 parent 3ce40bb commit 91c36b9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dlls/triggers/CTriggerHurtRemote.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,13 @@ void CTriggerHurtRemote::HurtTarget(CBaseEntity* loser) {
loser->pev->armorvalue = V_max(loser->pev->armorvalue - m_armorDmg, 0);
}

loser->TakeDamage(pev, pev, pev->dmg, m_damageType);
if (pev->dmg > 0) {
loser->TakeDamage(pev, pev, pev->dmg, m_damageType);
}
else {
loser->TakeHealth(-pev->dmg, m_damageType);
}

}
}

Expand Down

0 comments on commit 91c36b9

Please sign in to comment.