From 2533e345655d737510e2320ee14be6efe37c1012 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 7 May 2017 10:48:55 +1000 Subject: [PATCH] Limit maximum possible distance at which shownames can be seen --- qcsrc/client/shownames.qc | 1 + 1 file changed, 1 insertion(+) diff --git a/qcsrc/client/shownames.qc b/qcsrc/client/shownames.qc index e46a97cb1..0500652b9 100644 --- a/qcsrc/client/shownames.qc +++ b/qcsrc/client/shownames.qc @@ -117,6 +117,7 @@ void Draw_ShowNames(entity this) if (!this.csqcmodel_isdead) a *= f; } if (a < ALPHA_MIN_VISIBLE && gametype != MAPINFO_TYPE_CTS) return; + if (vdist(this.origin - view_origin, >=, max_shot_distance)) return; if (autocvar_hud_shownames_maxdistance) { if (dist >= autocvar_hud_shownames_maxdistance) return; -- 2.39.2