From ac54bdc9f4821ef0658d1b1ca94abde4eeae113c Mon Sep 17 00:00:00 2001 From: Lyberta Date: Thu, 1 Jun 2017 15:08:21 +0300 Subject: [PATCH] Call PlayerDamaged even if damage is 0. Very useful in instagib. --- qcsrc/server/player.qc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/qcsrc/server/player.qc b/qcsrc/server/player.qc index faa3c8101..5aae35599 100644 --- a/qcsrc/server/player.qc +++ b/qcsrc/server/player.qc @@ -506,10 +506,8 @@ void PlayerDamage(entity this, entity inflictor, entity attacker, float damage, { WeaponStats_LogDamage(awep.m_id, abot, this.(weaponentity).m_weapon.m_id, vbot, dh + da); } - if (damage) - { - MUTATOR_CALLHOOK(PlayerDamaged, attacker, this, dh, da, hitloc, deathtype, damage); - } + + MUTATOR_CALLHOOK(PlayerDamaged, attacker, this, dh, da, hitloc, deathtype, damage); if (this.health < 1) { -- 2.39.2