From: Mattia Basaglia Date: Thu, 23 Mar 2017 19:23:27 +0000 (+0000) Subject: Make turrets send their position when attached to misc_follow X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4e4cf68bf4fdd7bf1c310aee59b0c323d34b79cb;p=xonotic%2Fxonotic-data.pk3dir.git Make turrets send their position when attached to misc_follow --- diff --git a/qcsrc/common/turrets/sv_turrets.qc b/qcsrc/common/turrets/sv_turrets.qc index f2f219023..231117d24 100644 --- a/qcsrc/common/turrets/sv_turrets.qc +++ b/qcsrc/common/turrets/sv_turrets.qc @@ -1049,6 +1049,9 @@ void turret_think(entity this) if (this.ammo < this.ammo_max) this.ammo = min(this.ammo + this.ammo_recharge, this.ammo_max); + if (this.move_movetype == MOVETYPE_FOLLOW && this.origin - this.view_ofs != this.aiment.origin) + this.SendFlags |= TNSF_MOVE; + // Inactive turrets needs to run the think loop, // So they can handle animation and wake up if need be. if(!this.active)