// calculate sinewave using makevectors\r
makevectors((self.nextthink * self.owner.cnt + self.owner.phase * 360) * '0 1 0');\r
v = self.owner.destvec + self.owner.movedir * v_forward_y;\r
- // * 10 so it will arrive in 0.1 sec\r
if(self.owner.classname == "func_bobbing") // don't brake stuff if the func_bobbing was killtarget'ed\r
+ // * 10 so it will arrive in 0.1 sec\r
self.owner.velocity = (v - self.owner.origin) * 10;\r
};\r
\r
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;\r
}\r
\r
- // * 10 so it will arrive in 0.1 sec\r
- self.owner.velocity = (v - self.owner.origin) * 10;\r
+ if(self.owner.classname == "func_fourier") // don't brake stuff if the func_fourier was killtarget'ed\r
+ // * 10 so it will arrive in 0.1 sec\r
+ self.owner.velocity = (v - self.owner.origin) * 10;\r
};\r
\r
void spawnfunc_func_fourier()\r
void func_vectormamamam_controller_think()\r
{\r
self.nextthink = time + 0.1;\r
- self.owner.velocity = (self.owner.destvec + func_vectormamamam_origin(self.owner, 0.1) - self.owner.origin) * 10;\r
+ if(self.owner.classname == "func_vectormamamam") // don't brake stuff if the func_vectormamamam was killtarget'ed\r
+ self.owner.velocity = (self.owner.destvec + func_vectormamamam_origin(self.owner, 0.1) - self.owner.origin) * 10;\r
}\r
\r
void func_vectormamamam_findtarget()\r