]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/client/teamradar.qh
Merge branch 'master' into Mario/showspecs
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / teamradar.qh
1 #ifndef TEAMRADAR_H
2 #define TEAMRADAR_H
3
4 const int MAX_TEAMRADAR_TIMES = 32;
5
6 // to make entities have dots on the team radar
7 .float teamradar_icon;
8 .float teamradar_times[MAX_TEAMRADAR_TIMES];
9 .int teamradar_time_index;
10 .vector teamradar_color;
11
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
18 float v_flipped;
19
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;
27
28
29 float vlen2d(vector v);
30
31 float vlen_maxnorm2d(vector v);
32
33 float vlen_minnorm2d(vector v);
34
35 vector teamradar_3dcoord_to_texcoord(vector in);
36
37 vector teamradar_texcoord_to_2dcoord(vector in);
38
39 vector yinvert(vector v);
40
41 void draw_teamradar_background(float fg);
42
43 void draw_teamradar_player(vector coord3d, vector pangles, vector rgb);
44
45 void draw_teamradar_icon(vector coord, float icon, entity pingdata, vector rgb, float a);
46
47 void draw_teamradar_link(vector start, vector end, int colors);
48
49 void teamradar_loadcvars();
50
51 // radar links
52
53 void Ent_RadarLink();
54
55 #endif