X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fcommon%2Ftriggers%2Ffunc%2Fvectormamamam.qc;h=5c2086477475abe8e6541374f1d6b12843a996a9;hb=c741e6b3f012aa525f23e1df30d1d933b383fbc5;hp=521ac8780e73300df8099ee7208b8e8035296690;hpb=1d4454eb627b54e4b01a36ccce32a2767b02416c;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/triggers/func/vectormamamam.qc b/qcsrc/common/triggers/func/vectormamamam.qc index 521ac8780..5c2086477 100644 --- a/qcsrc/common/triggers/func/vectormamamam.qc +++ b/qcsrc/common/triggers/func/vectormamamam.qc @@ -58,7 +58,7 @@ vector func_vectormamamam_origin(entity o, float t) } void func_vectormamamam_controller_think() -{ +{SELFPARAM(); self.nextthink = time + 0.1; if(self.owner.active != ACTIVE_ACTIVE) @@ -72,7 +72,7 @@ void func_vectormamamam_controller_think() } void func_vectormamamam_findtarget() -{ +{SELFPARAM(); if(self.target != "") self.wp00 = find(world, targetname, self.target); @@ -91,14 +91,13 @@ void func_vectormamamam_findtarget() self.destvec = self.origin - func_vectormamamam_origin(self, 0); entity controller; - controller = spawn(); - controller.classname = "func_vectormamamam_controller"; + controller = new(func_vectormamamam_controller); controller.owner = self; controller.nextthink = time + 1; controller.think = func_vectormamamam_controller_think; } -void spawnfunc_func_vectormamamam() +spawnfunc(func_vectormamamam) { if (self.noise != "") {