From: Mircea Kitsune Date: Sun, 3 Oct 2010 18:41:39 +0000 (+0300) Subject: Same thing for other func's that use controllers to move them X-Git-Tag: xonotic-v0.1.0preview~307^2~22^2~1^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f0f0ae7b7452081839eda516335b05603746b4cb;p=xonotic%2Fxonotic-data.pk3dir.git Same thing for other func's that use controllers to move them --- diff --git a/qcsrc/server/t_plats.qc b/qcsrc/server/t_plats.qc index 0d8233da5..d338cf637 100644 --- a/qcsrc/server/t_plats.qc +++ b/qcsrc/server/t_plats.qc @@ -1695,8 +1695,9 @@ void func_fourier_controller_think() v = v + ('1 0 0' * stof(argv(i*5+2)) + '0 1 0' * stof(argv(i*5+3)) + '0 0 1' * stof(argv(i*5+4))) * self.owner.height * 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_fourier") // don't brake stuff if the func_fourier was killtarget'ed + // * 10 so it will arrive in 0.1 sec + self.owner.velocity = (v - self.owner.origin) * 10; }; void spawnfunc_func_fourier() @@ -1815,7 +1816,8 @@ void func_vectormamamam_controller_think() return; } - self.owner.velocity = (self.owner.destvec + func_vectormamamam_origin(self.owner, 0.1) - self.owner.origin) * 10; + if(self.owner.classname == "func_vectormamamam") // don't brake stuff if the func_vectormamamam was killtarget'ed + self.owner.velocity = (self.owner.destvec + func_vectormamamam_origin(self.owner, 0.1) - self.owner.origin) * 10; } void func_vectormamamam_findtarget()