X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fpathlib%2Fmovenode.qc;h=d1a4e68dff095c1e00019ecb4fbb740c355b936b;hb=109c5785a22fb4336ac5e91d5f1fa91678582164;hp=f1e596d798dab61eaabca0f54309209a499b181a;hpb=9eb82dd6fc682e3ddecd471835f9047816236342;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/pathlib/movenode.qc b/qcsrc/server/pathlib/movenode.qc index f1e596d79..d1a4e68df 100644 --- a/qcsrc/server/pathlib/movenode.qc +++ b/qcsrc/server/pathlib/movenode.qc @@ -1,10 +1,12 @@ -#include "../_all.qh" +#include "movenode.qh" #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; @@ -38,7 +40,7 @@ vector pathlib_wateroutnode(vector start,vector end, float doedge) } vector pathlib_swimnode(vector start,vector end, float doedge) -{ +{SELFPARAM(); pathlib_movenode_goodnode = 0; if(pointcontents(start) != CONTENT_WATER) @@ -58,7 +60,7 @@ vector pathlib_swimnode(vector start,vector end, float doedge) } vector pathlib_flynode(vector start,vector end, float doedge) -{ +{SELFPARAM(); pathlib_movenode_goodnode = 0; end.x = fsnap(end.x, pathlib_gridsize); @@ -72,7 +74,7 @@ vector pathlib_flynode(vector start,vector end, float doedge) } void a_think() -{ +{SELFPARAM(); te_lightning1(self,self.origin, self.pos1); if(self.cnt < time) remove(self); @@ -81,11 +83,11 @@ void a_think() } 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; @@ -107,7 +109,7 @@ vector pathlib_walknode(vector start,vector end,float doedge) //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; }