X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fteamradar.qh;h=0b1884ccf3a713d8c77488bd7d809dcf3d013cb3;hb=8879e39a219031ffcf8e427fa4f8610163753053;hp=f7c186ac6258c119f75657e3cb0de13d189d1285;hpb=fbb96108e5828a7557694db4469c2d0d7c582846;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/teamradar.qh b/qcsrc/client/teamradar.qh index f7c186ac6..0b1884ccf 100644 --- a/qcsrc/client/teamradar.qh +++ b/qcsrc/client/teamradar.qh @@ -1,5 +1,4 @@ -#ifndef TEAMRADAR_H -#define TEAMRADAR_H +#pragma once const int MAX_TEAMRADAR_TIMES = 32; @@ -27,30 +26,20 @@ 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