X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fclient%2Fteamradar.qh;h=ca7ec87b59f14e58deab8b41a291556e00379fcd;hp=31defc8efbd6c3b3bb8f78d03eaf71fa7ee07da6;hb=e9f30b97435c6afe3d6911f21e1f4fd1b97e93da;hpb=530e06120a7b41f6175b1144fedf6903da8c13b0 diff --git a/qcsrc/client/teamradar.qh b/qcsrc/client/teamradar.qh index 31defc8ef..ca7ec87b5 100644 --- a/qcsrc/client/teamradar.qh +++ b/qcsrc/client/teamradar.qh @@ -1,13 +1,14 @@ -#ifndef TEAMRADAR_H -#define TEAMRADAR_H +#ifndef CLIENT_TEAMRADAR_H +#define CLIENT_TEAMRADAR_H const int MAX_TEAMRADAR_TIMES = 32; +entityclass(TeamRadar); // to make entities have dots on the team radar -.float teamradar_icon; -.float teamradar_times[MAX_TEAMRADAR_TIMES]; -.int teamradar_time_index; -.vector teamradar_color; +class(TeamRadar) .float teamradar_icon; +class(TeamRadar) .float teamradar_times[MAX_TEAMRADAR_TIMES]; +class(TeamRadar) .int teamradar_time_index; +class(TeamRadar) .vector teamradar_color; float teamradar_angle; // player yaw angle vector teamradar_origin3d_in_texcoord; // player origin @@ -26,30 +27,22 @@ 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_2dcoord_to_texcoord(vector in); vector teamradar_3dcoord_to_texcoord(vector in); vector teamradar_texcoord_to_2dcoord(vector in); -vector yinvert(vector v); +vector teamradar_texcoord_to_3dcoord(vector in,float z); 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_icon(vector coord, entity 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