X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fclient%2Fteamradar.qc;h=9c4544bba08c0afce4ed04c14b8546d979da4d70;hp=96fd5ee977695877739119e0ba69427588649859;hb=06ac66a5edaa645e19ed9a6482409e8656a65b1d;hpb=068324d293df795dbc41de75f38256b8c6c35607 diff --git a/qcsrc/client/teamradar.qc b/qcsrc/client/teamradar.qc index 96fd5ee97..9c4544bba 100644 --- a/qcsrc/client/teamradar.qc +++ b/qcsrc/client/teamradar.qc @@ -1,6 +1,6 @@ #include "teamradar.qh" -#include "hud/all.qh" +#include "hud/_mod.qh" #include @@ -128,7 +128,7 @@ void draw_teamradar_player(vector coord3d, vector pangles, vector rgb) void draw_teamradar_icon(vector coord, entity icon, entity pingdata, vector rgb, float a) { coord = teamradar_texcoord_to_2dcoord(teamradar_3dcoord_to_texcoord(coord)); - drawpic(coord - '4 4 0', strcat("gfx/teamradar_icon_", ftos(icon.m_radaricon)), '8 8 0', rgb, a, 0); + drawpic_builtin(coord - '4 4 0', strcat("gfx/teamradar_icon_", ftos(icon.m_radaricon)), '8 8 0', rgb, a, 0); if(pingdata) { @@ -141,13 +141,14 @@ void draw_teamradar_icon(vector coord, entity icon, entity pingdata, vector rgb, if(dt >= 1 || dt <= 0) continue; vector v = '2 2 0' * teamradar_size * dt; - drawpic(coord - 0.5 * v, "gfx/teamradar_ping", v, '1 1 1', (1 - dt) * a, DRAWFLAG_ADDITIVE); + drawpic_builtin(coord - 0.5 * v, "gfx/teamradar_ping", v, '1 1 1', (1 - dt) * a, DRAWFLAG_ADDITIVE); } } } void draw_teamradar_link(vector start, vector end, int colors) { + TC(int, colors); vector c0, c1, norm; start = teamradar_texcoord_to_2dcoord(teamradar_3dcoord_to_texcoord(start)); @@ -202,6 +203,7 @@ NET_HANDLE(ENT_CLIENT_RADARLINK, bool isnew) this.iflags = IFLAG_VELOCITY | IFLAG_ORIGIN; this.classname = "radarlink"; + if (isnew) IL_PUSH(g_radarlinks, this); if(sendflags & 1) {