Xonotic
teamradar.qh
Go to the documentation of this file.
1 #pragma once
2 
3 const int MAX_TEAMRADAR_TIMES = 32;
4 
5 entityclass(TeamRadar);
6 // to make entities have dots on the team radar
7 classfield(TeamRadar) .float teamradar_icon;
8 classfield(TeamRadar) .float teamradar_times[MAX_TEAMRADAR_TIMES];
9 classfield(TeamRadar) .int teamradar_time_index;
10 classfield(TeamRadar) .vector teamradar_color;
11 
12 float teamradar_angle; // player yaw angle
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
27 
28 
30 
32 
34 
36 
37 void draw_teamradar_background(float fg);
38 
39 void draw_teamradar_player(vector coord3d, vector pangles, vector rgb);
40 
41 void draw_teamradar_icon(vector coord, entity icon, entity pingdata, vector rgb, float a);
42 
43 void draw_teamradar_link(vector start, vector end, int colors);
44 
45 void teamradar_loadcvars();
const int MAX_TEAMRADAR_TIMES
Definition: teamradar.qh:3
vector teamradar_extraclip_maxs
Definition: teamradar.qh:16
void draw_teamradar_link(vector start, vector end, int colors)
Definition: teamradar.qc:149
void draw_teamradar_icon(vector coord, entity icon, entity pingdata, vector rgb, float a)
Definition: teamradar.qc:128
int hud_panel_radar_zoommode
Definition: teamradar.qh:24
float v_flipped
Definition: teamradar.qh:18
entity() spawn
float hud_panel_radar_foreground_alpha
Definition: teamradar.qh:21
void teamradar_loadcvars()
Definition: teamradar.qc:173
vector teamradar_extraclip_mins
Definition: teamradar.qh:16
vector teamradar_texcoord_to_2dcoord(vector in)
Definition: teamradar.qc:17
vector teamradar_3dcoord_to_texcoord(vector in)
Definition: teamradar.qc:8
int hud_panel_radar_rotation
Definition: teamradar.qh:22
float teamradar_angle
Definition: teamradar.qh:12
entityclass(TeamRadar)
void draw_teamradar_background(float fg)
Definition: teamradar.qc:60
void draw_teamradar_player(vector coord3d, vector pangles, vector rgb)
Definition: teamradar.qc:88
vector(float skel, float bonenum) _skel_get_boneabs_hidden
float teamradar_size
Definition: teamradar.qh:17
vector hud_panel_radar_size
Definition: teamradar.qh:23
vector teamradar_origin3d_in_texcoord
Definition: teamradar.qh:13
vector teamradar_origin2d
Definition: teamradar.qh:14
int hud_panel_radar_maximized_zoommode
Definition: teamradar.qh:25
float hud_panel_radar_scale
Definition: teamradar.qh:20
vector teamradar_size2d
Definition: teamradar.qh:15
classfield(TeamRadar) .float teamradar_icon
int hud_panel_radar_maximized_rotation
Definition: teamradar.qh:26
vector teamradar_2dcoord_to_texcoord(vector in)
Definition: teamradar.qc:33
vector teamradar_texcoord_to_3dcoord(vector in, float oz)
Definition: teamradar.qc:51