4 const int MAX_TEAMRADAR_TIMES = 32;
6 // to make entities have dots on the team radar
8 .float teamradar_times[MAX_TEAMRADAR_TIMES];
9 .int teamradar_time_index;
10 .vector teamradar_color;
12 float teamradar_angle; // player yaw angle
13 vector teamradar_origin3d_in_texcoord; // player origin
14 vector teamradar_origin2d; // 2D origin
15 vector teamradar_size2d; // 2D size
16 vector teamradar_extraclip_mins, teamradar_extraclip_maxs; // for non-centered radar display
17 float teamradar_size; // 2D scale factor
20 float hud_panel_radar_scale; // window size = ...qu
21 float hud_panel_radar_foreground_alpha;
22 float hud_panel_radar_rotation;
23 vector hud_panel_radar_size;
24 float hud_panel_radar_zoommode;
25 float hud_panel_radar_maximized_zoommode;
26 float hud_panel_radar_maximized_rotation;
29 float vlen2d(vector v);
31 float vlen_maxnorm2d(vector v);
33 float vlen_minnorm2d(vector v);
35 vector teamradar_3dcoord_to_texcoord(vector in);
37 vector teamradar_texcoord_to_2dcoord(vector in);
39 vector yinvert(vector v);
41 void draw_teamradar_background(float fg);
43 void draw_teamradar_player(vector coord3d, vector pangles, vector rgb);
45 void draw_teamradar_icon(vector coord, float icon, entity pingdata, vector rgb, float a);
47 void draw_teamradar_link(vector start, vector end, int colors);
49 void teamradar_loadcvars();