]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Call PlayerDamaged even if damage is 0. Very useful in instagib. 443/head
authorLyberta <lyberta@lyberta.net>
Thu, 1 Jun 2017 12:08:21 +0000 (15:08 +0300)
committerLyberta <lyberta@lyberta.net>
Thu, 1 Jun 2017 12:08:21 +0000 (15:08 +0300)
qcsrc/server/player.qc

index faa3c810137a4628ae82b585d43cdcbd1def147c..5aae35599964402a4f63b5ddddf50484f8ae845d 100644 (file)
@@ -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)
        {