#if 0
void turret_checkpoint_think()
-{
+{SELFPARAM();
if(self.enemy)
te_lightning1(self,self.origin, self.enemy.origin);
*/
//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');
{
self.enemy = find(world, targetname, self.target);
if(self.enemy == world)
- dprint("A turret_checkpoint faild to find its target!\n");
+ LOG_TRACE("A turret_checkpoint faild to find its target!\n");
}
//self.think = turret_checkpoint_think;
//self.nextthink = time + tc_acum + 0.25;
}
void spawnfunc_turret_checkpoint()
-{
+{SELFPARAM();
setorigin(self,self.origin);
self.think = turret_checkpoint_init;
self.nextthink = time + 0.2;
// Compat.
void spawnfunc_walker_checkpoint()
-{
+{SELFPARAM();
self.classname = "turret_checkpoint";
spawnfunc_turret_checkpoint();
}