]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Allow shownames to be seen with low alpha if they're the same team
authorSamual Lenks <samual@xonotic.org>
Sat, 28 Dec 2013 19:11:12 +0000 (14:11 -0500)
committerSamual Lenks <samual@xonotic.org>
Sat, 28 Dec 2013 19:11:12 +0000 (14:11 -0500)
qcsrc/client/shownames.qc

index 07d15df9eb89d9ba0fb3bcfb1543a9af2b10211c..c035da1b2e31a40361c669099d5f8183b9876511 100644 (file)
@@ -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;