X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fteamradar.qc;h=a745bcd31f5d3bbf374b11bb6701a57ca42aed85;hb=4bb30bab66a564b459f4e62b72f36b0e16ad74c3;hp=c866a1b73e4eb1ef6d95a975531b3bab646c5926;hpb=437d67dbc7631d6c49e922990d96461d3ff4b7b2;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/teamradar.qc b/qcsrc/client/teamradar.qc index c866a1b73..a745bcd31 100644 --- a/qcsrc/client/teamradar.qc +++ b/qcsrc/client/teamradar.qc @@ -1,8 +1,8 @@ #include "teamradar.qh" -#include "hud.qh" +#include "hud/all.qh" -#include "../common/mutators/mutator/waypoints/all.qh" +#include #include "../lib/csqcmodel/interpolate.qh" @@ -58,12 +58,6 @@ vector teamradar_texcoord_to_3dcoord(vector in,float z) return out; } -vector yinvert(vector v) -{ - v.y = 1 - v.y; - return v; -} - void draw_teamradar_background(float fg) { float fga; @@ -200,11 +194,11 @@ void teamradar_loadcvars() // radar links -void Ent_RadarLink() -{SELFPARAM(); +NET_HANDLE(ENT_CLIENT_RADARLINK, bool isnew) +{ int sendflags = ReadByte(); - InterpolateOrigin_Undo(); + InterpolateOrigin_Undo(self); self.iflags = IFLAG_VELOCITY | IFLAG_ORIGIN; self.classname = "radarlink"; @@ -229,5 +223,7 @@ void Ent_RadarLink() self.team = ReadByte(); } - InterpolateOrigin_Note(); + return = true; + + InterpolateOrigin_Note(this); }