]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Exclude burning and buff damage types from damage text, fixes #2490
authorMario <mario.mario@y7mail.com>
Tue, 22 Sep 2020 14:14:30 +0000 (00:14 +1000)
committerMario <mario.mario@y7mail.com>
Tue, 22 Sep 2020 14:14:30 +0000 (00:14 +1000)
qcsrc/common/mutators/mutator/damagetext/sv_damagetext.qc

index 0e0aa13fd0404412f13e612743d648bc1d436cca..38d28a4494e2217e480249f6ecc8fc35ac100d5c 100644 (file)
@@ -17,6 +17,7 @@ MUTATOR_HOOKFUNCTION(damagetext, PlayerDamaged) {
     int deathtype = M_ARGV(5, int);
     float potential_damage = M_ARGV(6, float);
     if(DEATH_WEAPONOF(deathtype) == WEP_VAPORIZER) return;
+    if(deathtype == DEATH_FIRE.m_id || deathtype == DEATH_BUFF.m_id) return; // TODO: exclude damage over time and thorn effects
     FOREACH_CLIENT(IS_REAL_CLIENT(it), {
         if (
             (SV_DAMAGETEXT_ALL()) ||