From 072a2659eab0330d0d1e26fbffb6f5f29de12af9 Mon Sep 17 00:00:00 2001 From: otta8634 Date: Sun, 22 Dec 2024 13:24:19 +0800 Subject: [PATCH] Properly check for InstaGib Also remove include --- qcsrc/common/mutators/mutator/damagetext/sv_damagetext.qc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qcsrc/common/mutators/mutator/damagetext/sv_damagetext.qc b/qcsrc/common/mutators/mutator/damagetext/sv_damagetext.qc index 11f10345b..6d552163d 100644 --- a/qcsrc/common/mutators/mutator/damagetext/sv_damagetext.qc +++ b/qcsrc/common/mutators/mutator/damagetext/sv_damagetext.qc @@ -1,7 +1,5 @@ #include "sv_damagetext.qh" -#include - AUTOCVAR(sv_damagetext, int, 2, "<= 0: disabled, >= 1: visible to spectators, >= 2: visible to attacker, >= 3: all players see everyone's damage"); REGISTER_MUTATOR(damagetext, true); @@ -69,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(autocvar_g_instagib && 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; -- 2.39.2