]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/func/pendulum.qc
Weapons: add a second .weaponentity
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / func / pendulum.qc
index 83cbbbad1cbaae0cab3874be043bee08c5dddd2e..d8bab869e2f743310b01163fb23c96c3e773c941 100644 (file)
@@ -1,7 +1,7 @@
 #ifdef SVQC
 .float freq;
 void func_pendulum_controller_think()
-{
+{SELFPARAM();
        float v;
        self.nextthink = time + 0.1;
 
@@ -21,7 +21,7 @@ void func_pendulum_controller_think()
        }
 }
 
-void spawnfunc_func_pendulum()
+spawnfunc(func_pendulum)
 {
        entity controller;
        if (self.noise != "")
@@ -67,8 +67,8 @@ void spawnfunc_func_pendulum()
        controller.owner = self;
        controller.nextthink = time + 1;
        controller.think = func_pendulum_controller_think;
-       trigger_setnextthink(self, self.ltime + 999999999);
-       self.think = SUB_NullThink; // for PushMove
+       self.nextthink = self.SUB_LTIME + 999999999;
+       self.SUB_THINK = SUB_NullThink; // for PushMove
 
        //self.effects |= EF_LOWPRECISION;