]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/turrets/checkpoint.qc
Finish off turret SELFPARAMs
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / turrets / checkpoint.qc
index 2f3b11a7d9f76716d86f2facf36570ca4ae807f5..a5e758e0eed25b555c751f7c9823d75cc5500538 100644 (file)
@@ -33,12 +33,12 @@ void turret_checkpoint_use()
 }
 
 #if 0
-void turret_checkpoint_think()
-{SELFPARAM();
-    if(self.enemy)
-        te_lightning1(self,self.origin, self.enemy.origin);
+void turret_checkpoint_think(entity this)
+{
+    if(this.enemy)
+        te_lightning1(this,this.origin, this.enemy.origin);
 
-    self.nextthink = time + 0.25;
+    this.nextthink = time + 0.25;
 }
 #endif
 /*QUAKED turret_checkpoint (1 0 1) (-32 -32 -32) (32 32 32)
@@ -53,17 +53,17 @@ If the checkpoint chain in not looped, the unit will go "Roaming" when the last
 //float tc_acum;
 void turret_checkpoint_init(entity this)
 {
-    traceline(self.origin + '0 0 16', self.origin - '0 0 1024', MOVE_WORLDONLY, self);
-    setorigin(self, trace_endpos + '0 0 32');
+    traceline(this.origin + '0 0 16', this.origin - '0 0 1024', MOVE_WORLDONLY, this);
+    setorigin(this, trace_endpos + '0 0 32');
 
-    if(self.target != "")
+    if(this.target != "")
     {
-        self.enemy = find(world, targetname, self.target);
-        if(self.enemy == world)
+        this.enemy = find(world, targetname, this.target);
+        if(this.enemy == world)
             LOG_TRACE("A turret_checkpoint faild to find its target!\n");
     }
-    //self.think = turret_checkpoint_think;
-    //self.nextthink = time + tc_acum + 0.25;
+    //setthink(this, turret_checkpoint_think);
+    //this.nextthink = time + tc_acum + 0.25;
     //tc_acum += 0.25;
 }