From: MirceaKitsune Date: Sun, 3 Oct 2010 18:44:30 +0000 (+0300) Subject: Same for other similar func's X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=01eb4a9f56a7cb14c8f2964abe15860ecceb4838;p=voretournament%2Fvoretournament.git Same for other similar func's --- diff --git a/data/qcsrc/server/t_plats.qc b/data/qcsrc/server/t_plats.qc index d92c0a91..4a71a49a 100644 --- a/data/qcsrc/server/t_plats.qc +++ b/data/qcsrc/server/t_plats.qc @@ -386,8 +386,8 @@ void func_bobbing_controller_think() // calculate sinewave using makevectors 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 if(self.owner.classname == "func_bobbing") // don't brake stuff if the func_bobbing was killtarget'ed + // * 10 so it will arrive in 0.1 sec self.owner.velocity = (v - self.owner.origin) * 10; }; @@ -1649,8 +1649,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() @@ -1760,7 +1761,8 @@ vector func_vectormamamam_origin(entity o, float t) void func_vectormamamam_controller_think() { self.nextthink = time + 0.1; - 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()