return end;
}
-void a_think()
-{SELFPARAM();
+void a_think(entity this)
+{
te_lightning1(this,this.origin, this.pos1);
if(this.cnt < time)
- remove(this);
+ delete(this);
else
this.nextthink = time + 0.2;
}
vector direction,point,last_point,s,e;
float steps, distance, i;
- LOG_TRACE("Walking node from ", vtos(start), " to ", vtos(end), "\n");
+ LOG_TRACE("Walking node from ", vtos(start), " to ", vtos(end));
pathlib_movenode_goodnode = 0;
{
entity a;
a = spawn();
- a.think = a_think;
+ setthink(a, a_think);
a.nextthink = time;
- setorigin(a,start + movenode_stepup);
+ setorigin(a, start + movenode_stepup);
a.pos1 = trace_endpos;
//start - movenode_maxdrop
a.cnt = time + 10;
- LOG_TRACE("I cant walk on air!\n");
+ LOG_TRACE("I cant walk on air!");
return trace_endpos;
}