+
+#include "pathlib.qh"
+#include "utility.qh"
+
+.vector pos1, pos2;
+
vector pathlib_wateroutnode(vector start,vector end, float doedge)
-{
+{SELFPARAM();
vector surface;
pathlib_movenode_goodnode = 0;
}
vector pathlib_swimnode(vector start,vector end, float doedge)
-{
+{SELFPARAM();
pathlib_movenode_goodnode = 0;
if(pointcontents(start) != CONTENT_WATER)
}
vector pathlib_flynode(vector start,vector end, float doedge)
-{
+{SELFPARAM();
pathlib_movenode_goodnode = 0;
end.x = fsnap(end.x, pathlib_gridsize);
}
void a_think()
-{
+{SELFPARAM();
te_lightning1(self,self.origin, self.pos1);
if(self.cnt < time)
remove(self);
}
vector pathlib_walknode(vector start,vector end,float doedge)
-{
+{SELFPARAM();
vector direction,point,last_point,s,e;
float steps, distance, i;
- dprint("Walking node from ", vtos(start), " to ", vtos(end), "\n");
+ LOG_TRACE("Walking node from ", vtos(start), " to ", vtos(end), "\n");
pathlib_movenode_goodnode = 0;
//start - movenode_maxdrop
a.cnt = time + 10;
- dprint("I cant walk on air!\n");
+ LOG_TRACE("I cant walk on air!\n");
return trace_endpos;
}