]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Same for other similar func's
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 3 Oct 2010 18:44:30 +0000 (21:44 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 3 Oct 2010 18:44:30 +0000 (21:44 +0300)
data/qcsrc/server/t_plats.qc

index d92c0a916ce34dda4f13c072f3703c31995c3a13..4a71a49adcecc32f5132cf60b7919204dc356e84 100644 (file)
@@ -386,8 +386,8 @@ void func_bobbing_controller_think()
        // 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
@@ -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;\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
@@ -1760,7 +1761,8 @@ vector func_vectormamamam_origin(entity o, float t)
 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