]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/shownames.qc
Add a mutator hook to shownames to allow hiding it per-player, also don't load accura...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / shownames.qc
index acd4bc371003009951cbafbe9235ff1fe09bde62..e44e18f753b881a2969ad6887427c4d7727becc7 100644 (file)
@@ -127,7 +127,8 @@ void Draw_ShowNames(entity this)
                if (f < 0) f = 0;
                a *= f;
        }
-       if (a < ALPHA_MIN_VISIBLE && ISGAMETYPE(CTS)) return;
+       if (MUTATOR_CALLHOOK(ShowNames_Draw, this, a)) return;
+       a = M_ARGV(1, float);
        if (vdist(this.origin - view_origin, >=, max_shot_distance)) return;
        float dist = vlen(this.origin - view_origin);
        if (autocvar_hud_shownames_maxdistance)