X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fturrets%2Fcl_turrets.qc;h=5c309ece8012806f50245ee1583f6d991c880cbe;hp=df20e1ad2f2d8371638de205f191a458be3db41e;hb=ce80a3d3800ee2f5ce8a8d93ccb6b835a46ec5f6;hpb=be37ea91fb3bbd1a6fa4f0b70b32d1ea95343ad4 diff --git a/qcsrc/common/turrets/cl_turrets.qc b/qcsrc/common/turrets/cl_turrets.qc index df20e1ad2f..5c309ece80 100644 --- a/qcsrc/common/turrets/cl_turrets.qc +++ b/qcsrc/common/turrets/cl_turrets.qc @@ -1,4 +1,5 @@ #include "cl_turrets.qh" + void turret_remove(entity this) { delete(this.tur_head); @@ -9,7 +10,7 @@ void turret_remove(entity this) .vector glowmod; void turret_changeteam(entity this) { - this.glowmod = Team_ColorRGB(this.team - 1) * 2; + this.glowmod = Team_ColorRGB(this.team - 1); this.teamradar_color = Team_ColorRGB(this.team - 1); if(this.team) @@ -376,8 +377,7 @@ NET_HANDLE(ENT_CLIENT_TURRET, bool isnew) this.origin = ReadVector(); setorigin(this, this.origin); - this.angles_x = ReadAngle(); - this.angles_y = ReadAngle(); + this.angles = ReadAngleVector2D(); turret_construct(this, isnew); this.colormap = 1024;