From 4e4cf68bf4fdd7bf1c310aee59b0c323d34b79cb Mon Sep 17 00:00:00 2001 From: Mattia Basaglia Date: Thu, 23 Mar 2017 19:23:27 +0000 Subject: [PATCH] Make turrets send their position when attached to misc_follow --- qcsrc/common/turrets/sv_turrets.qc | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.39.2