X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fteamradar.qh;h=ca7ec87b59f14e58deab8b41a291556e00379fcd;hb=bfda637528bb1a5590f910b9490096a050da87ff;hp=f7c186ac6258c119f75657e3cb0de13d189d1285;hpb=e090603a32c8cba598f2c54e355cdb5b32b0d986;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/teamradar.qh b/qcsrc/client/teamradar.qh index f7c186ac6..ca7ec87b5 100644 --- a/qcsrc/client/teamradar.qh +++ b/qcsrc/client/teamradar.qh @@ -1,5 +1,5 @@ -#ifndef TEAMRADAR_H -#define TEAMRADAR_H +#ifndef CLIENT_TEAMRADAR_H +#define CLIENT_TEAMRADAR_H const int MAX_TEAMRADAR_TIMES = 32; @@ -27,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