4 const int MAX_TEAMRADAR_TIMES = 32;
7 // to make entities have dots on the team radar
8 class(TeamRadar) .float teamradar_icon;
9 class(TeamRadar) .float teamradar_times[MAX_TEAMRADAR_TIMES];
10 class(TeamRadar) .int teamradar_time_index;
11 class(TeamRadar) .vector teamradar_color;
13 float teamradar_angle; // player yaw angle
14 vector teamradar_origin3d_in_texcoord; // player origin
15 vector teamradar_origin2d; // 2D origin
16 vector teamradar_size2d; // 2D size
17 vector teamradar_extraclip_mins, teamradar_extraclip_maxs; // for non-centered radar display
18 float teamradar_size; // 2D scale factor
21 float hud_panel_radar_scale; // window size = ...qu
22 float hud_panel_radar_foreground_alpha;
23 float hud_panel_radar_rotation;
24 vector hud_panel_radar_size;
25 float hud_panel_radar_zoommode;
26 float hud_panel_radar_maximized_zoommode;
27 float hud_panel_radar_maximized_rotation;
30 float vlen2d(vector v);
32 float vlen_maxnorm2d(vector v);
34 float vlen_minnorm2d(vector v);
36 vector teamradar_3dcoord_to_texcoord(vector in);
38 vector teamradar_texcoord_to_2dcoord(vector in);
40 vector yinvert(vector v);
42 void draw_teamradar_background(float fg);
44 void draw_teamradar_player(vector coord3d, vector pangles, vector rgb);
46 void draw_teamradar_icon(vector coord, float icon, entity pingdata, vector rgb, float a);
48 void draw_teamradar_link(vector start, vector end, int colors);
50 void teamradar_loadcvars();