From: Samual Lenks Date: Sat, 28 Dec 2013 19:11:12 +0000 (-0500) Subject: Allow shownames to be seen with low alpha if they're the same team X-Git-Tag: xonotic-v0.8.0~249^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=16d4f27f9aa3a44d1c2840387c6f433332c37495;p=xonotic%2Fxonotic-data.pk3dir.git Allow shownames to be seen with low alpha if they're the same team --- diff --git a/qcsrc/client/shownames.qc b/qcsrc/client/shownames.qc index 07d15df9e..c035da1b2 100644 --- a/qcsrc/client/shownames.qc +++ b/qcsrc/client/shownames.qc @@ -25,7 +25,7 @@ void Draw_ShowNames(entity ent) makevectors(view_angles); - if(getplayeralpha(ent.sv_entnum-1) >= SHOWNAMES_MIN_ALPHA) + if(ent.sameteam || (getplayeralpha(ent.sv_entnum-1) >= SHOWNAMES_MIN_ALPHA)) if(ent.sameteam || (!ent.sameteam && autocvar_hud_shownames_enemies)) { ent.origin_z += autocvar_hud_shownames_offset;