]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/player.qc
Damagetext: add possibility to show potential damage
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / player.qc
index e270f38df034c3232cdcddbb12ed034f10ace7e0..9df628860318b2a005b4a755f5c8e4d6ad64c759 100644 (file)
@@ -505,9 +505,9 @@ void PlayerDamage(entity this, entity inflictor, entity attacker, float damage,
        {
                WeaponStats_LogDamage(awep.m_id, abot, PS(this).m_weapon.m_id, vbot, dh + da);
        }
-       if (dh + da)
+       if (damage)
        {
-               MUTATOR_CALLHOOK(PlayerDamaged, attacker, this, dh, da, hitloc, deathtype);
+               MUTATOR_CALLHOOK(PlayerDamaged, attacker, this, dh, da, hitloc, deathtype, damage);
        }
 
        if (this.health < 1)