From: MirceaKitsune Date: Sun, 3 Oct 2010 18:14:47 +0000 (+0300) Subject: Fix a major and very rare issue, that would cause killtarget-ing a func_bobbing to... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=eebba46ee43975b70149a64aa9c740f13d34fb9a;p=voretournament%2Fvoretournament.git Fix a major and very rare issue, that would cause killtarget-ing a func_bobbing to brake the grabber's hook / primary fire --- diff --git a/data/qcsrc/server/t_plats.qc b/data/qcsrc/server/t_plats.qc index 92f22e92..f207f19d 100644 --- a/data/qcsrc/server/t_plats.qc +++ b/data/qcsrc/server/t_plats.qc @@ -387,7 +387,8 @@ void func_bobbing_controller_think() makevectors((self.nextthink * self.owner.cnt + self.owner.phase * 360) * '0 1 0'); v = self.owner.destvec + self.owner.movedir * v_forward_y; // * 10 so it will arrive in 0.1 sec - self.owner.velocity = (v - self.owner.origin) * 10; + if(self.owner.classname == "func_bobbing") + self.owner.velocity = (v - self.owner.origin) * 10; }; void bobbing_blocked()