\r
if(bg > 0)\r
{\r
- R_BeginPolygon("gfx/hud/bg_radar.tga", 0);\r
+ R_BeginPolygon(strcat("gfx/hud/", cvar_string("hud_style"), "/bg_radar.tga"), 0);\r
R_PolygonVertex(pos1, yinvert('0 1 0'), '1 1 1', bg);\r
R_PolygonVertex(pos2, yinvert('1 1 0'), '1 1 1', bg);\r
R_PolygonVertex(pos3, yinvert('1 0 0'), '1 1 1', bg);\r
\r
if(fg > 0)\r
{\r
- R_BeginPolygon("gfx/hud/fg_radar.tga", 0);\r
+ R_BeginPolygon(strcat("gfx/hud/", cvar_string("hud_style"), "/fg_radar.tga"), 0);\r
R_PolygonVertex(pos1, yinvert('0 1 0'), '1 1 1', fg);\r
R_PolygonVertex(pos2, yinvert('1 1 0'), '1 1 1', fg);\r
R_PolygonVertex(pos3, yinvert('1 0 0'), '1 1 1', fg);\r
R_PolygonVertex(pos4, yinvert('0 0 0'), '1 1 1', fg);\r
R_EndPolygon();\r
\r
- R_BeginPolygon("gfx/hud/fg_radar_team.tga", 0);\r
+ R_BeginPolygon(strcat("gfx/hud/", cvar_string("hud_style"), "/fg_radar_team.tga"), 0);\r
R_PolygonVertex(pos1, yinvert('0 1 0'), rgb, fg);\r
R_PolygonVertex(pos2, yinvert('1 1 0'), rgb, fg);\r
R_PolygonVertex(pos3, yinvert('1 0 0'), rgb, fg);\r
{\r
col = GetPlayerColor(tm.sv_entnum);\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