Radar icons: fix colour
[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 vector teamradar_2dcoord_to_texcoord(vector in);
31
32 vector teamradar_3dcoord_to_texcoord(vector in);
33
34 vector teamradar_texcoord_to_2dcoord(vector in);
35
36 vector teamradar_texcoord_to_3dcoord(vector in,float z);
37
38 vector yinvert(vector v);
39
40 void draw_teamradar_background(float fg);
41
42 void draw_teamradar_player(vector coord3d, vector pangles, vector rgb);
43
44 void draw_teamradar_icon(vector coord, entity icon, entity pingdata, vector rgb, float a);
45
46 void draw_teamradar_link(vector start, vector end, int colors);
47
48 void teamradar_loadcvars();
49
50 // radar links
51
52 void Ent_RadarLink();
53
54 #endif