#include "radar.qh"
-#include "scoreboard.qh"
#include <common/ent_cs.qh>
#include <common/mapinfo.qh>
#include <client/mapvoting.qh>
return;
}
- if(!autocvar_hud_cursormode)
- {
- mousepos = mousepos + getmousepos() * autocvar_menu_mouse_speed;
+ if (!autocvar_hud_cursormode)
+ update_mousepos();
- mousepos_x = bound(0, mousepos_x, vid_conwidth);
- mousepos_y = bound(0, mousepos_y, vid_conheight);
- }
-
- if(1 - scoreboard_fade_alpha <= 0)
- return;
- HUD_Panel_UpdateCvars(1 - scoreboard_fade_alpha);
+ panel = HUD_PANEL(RADAR);
+ HUD_Panel_LoadCvars();
panel_size = autocvar_hud_panel_radar_maximized_size;
if ( hud_panel_radar_temp_hidden )
return;
- if(1 - scoreboard_fade_alpha <= 0)
- return;
- HUD_Panel_UpdateCvars(1 - scoreboard_fade_alpha);
+ HUD_Panel_LoadCvars();
float f = 0;
IL_EACH(g_radaricons, it.teamradar_icon, {
if ( hud_panel_radar_mouse )
if ( it.health >= 0 )
- if ( it.team == myteam+1 || gametype == MAPINFO_TYPE_RACE || !(serverflags & SERVERFLAG_TEAMPLAY) )
+ if ( it.team == myteam + 1 || gametype == MAPINFO_TYPE_RACE || !teamplay )
{
vector coord = teamradar_texcoord_to_2dcoord(teamradar_3dcoord_to_texcoord(it.origin));
if(vdist((mousepos - coord), <, 8))