]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Instead of checking for instagib, check if the death weapon is a vaporizer, allows...
authorMario <mario@smbclan.net>
Fri, 22 Jun 2018 07:00:39 +0000 (17:00 +1000)
committerMario <mario@smbclan.net>
Fri, 22 Jun 2018 07:00:39 +0000 (17:00 +1000)
qcsrc/common/mutators/mutator/damagetext/sv_damagetext.qc

index b88d96d700307fbf05480fb88befac6a4824b6bd..d9eacaae0c4e7a1cf2821d4574bb255a572c3bd5 100644 (file)
@@ -4,7 +4,7 @@ AUTOCVAR(sv_damagetext, int, 2, "<= 0: disabled, >= 1: visible to spectators, >=
 
 REGISTER_MUTATOR(damagetext, true);
 
-#define SV_DAMAGETEXT_DISABLED()        (autocvar_sv_damagetext <= 0 || MUTATOR_IS_ENABLED(mutator_instagib))
+#define SV_DAMAGETEXT_DISABLED()        (autocvar_sv_damagetext <= 0)
 #define SV_DAMAGETEXT_SPECTATORS_ONLY() (autocvar_sv_damagetext >= 1)
 #define SV_DAMAGETEXT_PLAYERS()         (autocvar_sv_damagetext >= 2)
 #define SV_DAMAGETEXT_ALL()             (autocvar_sv_damagetext >= 3)
@@ -16,6 +16,7 @@ MUTATOR_HOOKFUNCTION(damagetext, PlayerDamaged) {
     const float armor = M_ARGV(3, float);
     const int deathtype = M_ARGV(5, int);
     const float potential_damage = M_ARGV(6, float);
+    if(DEATH_WEAPONOF(deathtype) == WEP_VAPORIZER) return;
     FOREACH_CLIENT(IS_REAL_CLIENT(it), {
         if (
             (SV_DAMAGETEXT_ALL()) ||