]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Show Vaporizer damagetext when not playing InstaGib
authork9er <k9wolf@pm.me>
Thu, 2 Jan 2025 12:48:06 +0000 (12:48 +0000)
committerterencehill <piuntn@gmail.com>
Thu, 2 Jan 2025 12:48:06 +0000 (12:48 +0000)
qcsrc/common/mutators/mutator/damagetext/sv_damagetext.qc

index 7c9043e00e4b7fdf838d86d12e06f7c7587b9be8..6d552163da6eb627a3ed61b7213f3efbb43455c2 100644 (file)
@@ -67,7 +67,7 @@ MUTATOR_HOOKFUNCTION(damagetext, PlayerDamaged) {
        float armor = M_ARGV(3, float);
        int deathtype = M_ARGV(5, int);
        float potential_damage = M_ARGV(6, float);
-       if(DEATH_WEAPONOF(deathtype) == WEP_VAPORIZER) return;
+       if(MUTATOR_IS_ENABLED(mutator_instagib) && DEATH_WEAPONOF(deathtype) == WEP_VAPORIZER) return;
 
        static entity net_text_prev;
        static float net_damagetext_prev_time;