]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/turrets/checkpoint.qc
Turrets: make plasma turrets use weapons
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / turrets / checkpoint.qc
index 924ba7ecf008fc1c8f53b384e9e9893a304c60bf..2b0bd6f6763b338b8a3144f960c54348e7310b29 100644 (file)
@@ -34,7 +34,7 @@ void turret_checkpoint_use()
 
 #if 0
 void turret_checkpoint_think()
-{
+{SELFPARAM();
     if(self.enemy)
         te_lightning1(self,self.origin, self.enemy.origin);
 
@@ -52,7 +52,7 @@ If the checkpoint chain in not looped, the unit will go "Roaming" when the last
 */
 //float tc_acum;
 void turret_checkpoint_init()
-{
+{SELFPARAM();
     traceline(self.origin + '0 0 16', self.origin - '0 0 1024', MOVE_WORLDONLY, self);
     setorigin(self, trace_endpos + '0 0 32');
 
@@ -68,7 +68,7 @@ void turret_checkpoint_init()
 }
 
 void spawnfunc_turret_checkpoint()
-{
+{SELFPARAM();
     setorigin(self,self.origin);
     self.think = turret_checkpoint_init;
     self.nextthink = time + 0.2;
@@ -76,7 +76,7 @@ void spawnfunc_turret_checkpoint()
 
 // Compat.
 void spawnfunc_walker_checkpoint()
-{
+{SELFPARAM();
     self.classname = "turret_checkpoint";
     spawnfunc_turret_checkpoint();
 }