54 out_x = in_x * (mi_picmax_x - mi_picmin_x) + mi_picmin_x;
55 out_y = in_y * (mi_picmax_y - mi_picmin_y) + mi_picmin_y;
98 forward.x = -forward.x;
105 right.x = -forward.y;
113 R_BeginPolygon(
"", 0,
true);
115 R_PolygonVertex(coord+right*4-forward*2.5,
'0 1 0', rgb2,
panel_fg_alpha);
117 R_PolygonVertex(coord-right*4-forward*2.5,
'1 1 0', rgb2,
panel_fg_alpha);
120 R_BeginPolygon(
"", 0,
true);
122 R_PolygonVertex(coord+right*3-forward*2,
'0 1 0', rgb,
panel_fg_alpha);
124 R_PolygonVertex(coord-right*3-forward*2,
'1 1 0', rgb,
panel_fg_alpha);
131 drawpic_builtin(coord -
'4 4 0',
strcat(
"gfx/teamradar_icon_",
ftos(icon.m_radaricon)),
'8 8 0', rgb, a, 0);
137 float dt = pingdata.(teamradar_times[i]);
141 if(dt >= 1 || dt <= 0)
144 drawpic_builtin(coord - 0.5 * v,
"gfx/teamradar_ping", v,
'1 1 1', (1 - dt) * a,
DRAWFLAG_ADDITIVE);
165 R_BeginPolygon(
"", 0,
true);
210 setorigin(
this, this.
origin);
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
IntrusiveList g_radarlinks
#define colormapPaletteColor(c, isPants)
const float DRAWFLAG_ADDITIVE
const float DRAWFLAG_SCREEN
const float DRAWFLAG_MIPMAP
#define MAKE_VECTORS(angles, forward, right, up)
Same as the makevectors builtin but uses the provided locals instead of the v_* globals.
bool hud_panel_radar_maximized
bool autocvar__hud_configure
void InterpolateOrigin_Undo(entity this)
snap origin to iorigin2 (actual origin)
void InterpolateOrigin_Note(entity this)
ERASEABLE entity IL_PUSH(IntrusiveList this, entity it)
Push to tail.
#define NET_HANDLE(id, param)
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))
float autocvar_hud_panel_radar_foreground_alpha
float autocvar_hud_panel_radar_rotation
float autocvar_hud_panel_radar_scale
float autocvar_hud_panel_radar_maximized_rotation
int autocvar_hud_panel_radar_maximized_zoommode
int autocvar_hud_panel_radar_zoommode
float autocvar_hud_panel_radar_maximized_scale
vector teamradar_texcoord_to_3dcoord(vector in, float oz)
void draw_teamradar_player(vector coord3d, vector pangles, vector rgb)
void draw_teamradar_background(float fg)
vector teamradar_3dcoord_to_texcoord(vector in)
vector teamradar_texcoord_to_2dcoord(vector in)
void draw_teamradar_icon(vector coord, entity icon, entity pingdata, vector rgb, float a)
void teamradar_loadcvars()
vector teamradar_2dcoord_to_texcoord(vector in)
void draw_teamradar_link(vector start, vector end, int colors)
const int MAX_TEAMRADAR_TIMES
vector hud_panel_radar_size
int hud_panel_radar_maximized_rotation
int hud_panel_radar_zoommode
int hud_panel_radar_maximized_zoommode
int hud_panel_radar_rotation
float hud_panel_radar_scale
vector teamradar_origin2d
vector teamradar_origin3d_in_texcoord
float hud_panel_radar_foreground_alpha
ERASEABLE vector Rotate(vector v, float a)