11 out.x = (in.x - mi_picmin.x) / (mi_picmax.x - mi_picmin.x);
12 out.y = (in.y - mi_picmin.y) / (mi_picmax.y - mi_picmin.y);
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);
209 this.
origin = ReadVector();
220 this.
team = ReadByte();
const int MAX_TEAMRADAR_TIMES
void InterpolateOrigin_Note(entity this)
bool hud_panel_radar_maximized
void InterpolateOrigin_Undo(entity this)
snap origin to iorigin2 (actual origin)
int hud_panel_radar_zoommode
vector teamradar_3dcoord_to_texcoord(vector in)
bool autocvar__hud_configure
float autocvar_hud_panel_radar_rotation
IntrusiveList g_radarlinks
float hud_panel_radar_foreground_alpha
const float DRAWFLAG_SCREEN
float autocvar_hud_panel_radar_maximized_scale
const float DRAWFLAG_MIPMAP
int hud_panel_radar_rotation
void teamradar_loadcvars()
vector teamradar_2dcoord_to_texcoord(vector in)
float autocvar_hud_panel_radar_foreground_alpha
const float DRAWFLAG_ADDITIVE
vector teamradar_texcoord_to_2dcoord(vector in)
void draw_teamradar_link(vector start, vector end, int colors)
void draw_teamradar_icon(vector coord, entity icon, entity pingdata, vector rgb, float a)
ERASEABLE entity IL_PUSH(IntrusiveList this, entity it)
Push to tail.
int autocvar_hud_panel_radar_maximized_zoommode
float autocvar_hud_panel_radar_scale
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
int autocvar_hud_panel_radar_zoommode
void draw_teamradar_player(vector coord3d, vector pangles, vector rgb)
void draw_teamradar_background(float fg)
vector(float skel, float bonenum) _skel_get_boneabs_hidden
vector hud_panel_radar_size
vector teamradar_origin3d_in_texcoord
vector teamradar_origin2d
int hud_panel_radar_maximized_zoommode
vector teamradar_texcoord_to_3dcoord(vector in, float oz)
float hud_panel_radar_scale
ERASEABLE vector Rotate(vector v, float a)
float autocvar_hud_panel_radar_maximized_rotation
NET_HANDLE(ENT_CLIENT_RADARLINK, bool isnew)
#define colormapPaletteColor(c, isPants)
int hud_panel_radar_maximized_rotation