]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/client/radar.qc
Also don't show our predator on the radar, since it would once again overlap with...
[voretournament/voretournament.git] / data / qcsrc / client / radar.qc
index 6e03aa1139d9cacc0ae8cd0200df2466f594367b..4350b0cb83c2c67f7d83ac42b3d980a25f6178ab 100644 (file)
@@ -385,7 +385,9 @@ void() radar_view =
        for(tm = world; (tm = find(tm, classname, "entcs_receiver")); )\r
        {\r
                col = GetPlayerColor(tm.sv_entnum);\r
-               //if(color == COLOR_SPECTATOR || color == col)\r
+               if(cvar("cl_radar_players") > 1 || (cvar("cl_radar_players") > 0 && teamplay && GetPlayerColor(player_localentnum - 1) == col))\r
+               if not(tm.sv_entnum == spectatee_status - 1) // don't show the player we are spectating, since we also draw ourself separately\r
+               if not(tm.sv_entnum == getstati(STAT_VORE_EATEN) - 1) // don't show the player who ate us, since we also draw ourself separately\r
                if not(tm.eaten) // don't show prey on the radar\r
                        draw_radar_player(tm.origin, tm.angles, GetTeamRGB(col));\r
        }\r