X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fteamradar.qh;h=31defc8efbd6c3b3bb8f78d03eaf71fa7ee07da6;hb=34307c98c3f1195633b4eef47eac709c307dae0c;hp=1ed437fd987201b3455c95afafc24eb7dc67215f;hpb=99cb391b8d83f0efdb2c9aeb7ccc50683dfd0b55;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/teamradar.qh b/qcsrc/client/teamradar.qh index 1ed437fd9..31defc8ef 100644 --- a/qcsrc/client/teamradar.qh +++ b/qcsrc/client/teamradar.qh @@ -1,9 +1,55 @@ -void HUD_Radar(); +#ifndef TEAMRADAR_H +#define TEAMRADAR_H -#define MAX_TEAMRADAR_TIMES 32 +const int MAX_TEAMRADAR_TIMES = 32; // to make entities have dots on the team radar .float teamradar_icon; -.float teamradar_times[MAX_TEAMRADAR_TIMES]; FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(teamradar_times); -.float teamradar_time_index; +.float teamradar_times[MAX_TEAMRADAR_TIMES]; +.int teamradar_time_index; .vector teamradar_color; + +float teamradar_angle; // player yaw angle +vector teamradar_origin3d_in_texcoord; // player origin +vector teamradar_origin2d; // 2D origin +vector teamradar_size2d; // 2D size +vector teamradar_extraclip_mins, teamradar_extraclip_maxs; // for non-centered radar display +float teamradar_size; // 2D scale factor +float v_flipped; + +float hud_panel_radar_scale; // window size = ...qu +float hud_panel_radar_foreground_alpha; +float hud_panel_radar_rotation; +vector hud_panel_radar_size; +float hud_panel_radar_zoommode; +float hud_panel_radar_maximized_zoommode; +float hud_panel_radar_maximized_rotation; + + +float vlen2d(vector v); + +float vlen_maxnorm2d(vector v); + +float vlen_minnorm2d(vector v); + +vector teamradar_3dcoord_to_texcoord(vector in); + +vector teamradar_texcoord_to_2dcoord(vector in); + +vector yinvert(vector v); + +void draw_teamradar_background(float fg); + +void draw_teamradar_player(vector coord3d, vector pangles, vector rgb); + +void draw_teamradar_icon(vector coord, float icon, entity pingdata, vector rgb, float a); + +void draw_teamradar_link(vector start, vector end, int colors); + +void teamradar_loadcvars(); + +// radar links + +void Ent_RadarLink(); + +#endif