+#include "checkpoint.qh"
/**
turret_checkpoint
**/
if(this.target != "")
{
- this.enemy = find(world, targetname, this.target);
- if(this.enemy == world)
- LOG_TRACE("A turret_checkpoint faild to find its target!\n");
+ this.enemy = find(NULL, targetname, this.target);
+ if(this.enemy == NULL)
+ LOG_TRACE("A turret_checkpoint faild to find its target!");
}
//setthink(this, turret_checkpoint_think);
//this.nextthink = time + tc_acum + 0.25;
spawnfunc(turret_checkpoint)
{
- setorigin(this,this.origin);
+ setorigin(this, this.origin);
setthink(this, turret_checkpoint_init);
this.nextthink = time + 0.2;
}