]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/teamradar.qh
Move urllib to /lib
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / teamradar.qh
index 31defc8efbd6c3b3bb8f78d03eaf71fa7ee07da6..b2329cfb06c715137474f0ce11eb5dbe23c187e1 100644 (file)
@@ -3,11 +3,12 @@
 
 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
@@ -32,10 +33,14 @@ 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 teamradar_texcoord_to_3dcoord(vector in,float z);
+
 vector yinvert(vector v);
 
 void draw_teamradar_background(float fg);