]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/client/teamradar.qh
Merge branch 'terencehill/menu_remove_tab_title' of git://de.git.xonotic.org/xonotic...
[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 entityclass(TeamRadar);
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;
12
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
19 float v_flipped;
20
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;
28
29
30 float vlen2d(vector v);
31
32 float vlen_maxnorm2d(vector v);
33
34 float vlen_minnorm2d(vector v);
35
36 vector teamradar_3dcoord_to_texcoord(vector in);
37
38 vector teamradar_texcoord_to_2dcoord(vector in);
39
40 vector yinvert(vector v);
41
42 void draw_teamradar_background(float fg);
43
44 void draw_teamradar_player(vector coord3d, vector pangles, vector rgb);
45
46 void draw_teamradar_icon(vector coord, float icon, entity pingdata, vector rgb, float a);
47
48 void draw_teamradar_link(vector start, vector end, int colors);
49
50 void teamradar_loadcvars();
51
52 // radar links
53
54 void Ent_RadarLink();
55
56 #endif