]> git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Don't show names through walls, even for team mates
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 9 Jul 2011 12:12:26 +0000 (15:12 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 9 Jul 2011 12:12:26 +0000 (15:12 +0300)
data/qcsrc/client/shownames.qc

index 35fdd1a6b11cf030fce7e01650bffc5034795bb1..40daf62b652f9f5fc7fe49a47d982e63df240888 100644 (file)
@@ -28,8 +28,7 @@ void Draw_ShowNames(entity ent)
                if(g_healthsize)
                        ent.origin_z -= (g_healthsize - ent.healthvalue) * cvar("hud_shownames_offset_healthsize");
 
-               if(!sameteam)
-                       traceline(ent.origin, view_origin, 1, ent);
+               traceline(ent.origin, view_origin, 1, ent);
 
                vector o, eo;
                o = project_3d_to_2d(ent.origin);
@@ -56,7 +55,7 @@ void Draw_ShowNames(entity ent)
                        }
                }
 
-               if(!sameteam && trace_endpos != view_origin) // out of view, fade out
+               if(trace_endpos != view_origin) // out of view, fade out
                        ent.alpha = max(0, ent.alpha - SHOWNAMES_FADESPEED * frametime);
                else if(ent.healthvalue < 1) // dead player, fade out slowly
                        ent.alpha = max(0, ent.alpha - SHOWNAMES_FADESPEED * 0.25 * frametime);