2 void mark_error(vector where,float lifetime);
3 void mark_info(vector where,float lifetime);
4 entity mark_misc(vector where,float lifetime);
7 void pathlib_showpath(entity start)
13 te_lightning1(e,e.origin,e.path_next.origin);
20 pathlib_showpath(self);
21 self.nextthink = time + 1;
24 void __showpath2_think()
26 mark_info(self.origin,1);
29 self.path_next.think = __showpath2_think;
30 self.path_next.nextthink = time + 0.15;
34 self.owner.think = __showpath2_think;
35 self.owner.nextthink = time + 0.15;
39 void pathlib_showpath2(entity path)
41 path.think = __showpath2_think;
42 path.nextthink = time;
46 void pathlib_showsquare2(entity node ,vector ncolor,float align)
50 node.scale = pathlib_gridsize / 512.001;
51 node.solid = SOLID_NOT;
53 setmodel(node,"models/pathlib/square.md3");
54 setorigin(node,node.origin);
55 node.colormod = ncolor;
59 traceline(node.origin + '0 0 32',node.origin - '0 0 128',MOVE_WORLDONLY,node);
60 node.angles = vectoangles(trace_plane_normal);
65 void pathlib_showsquare(vector where,float goodsquare,float lifetime)
77 s.nextthink = lifetime;
78 s.scale = pathlib_gridsize / 512.001;
82 setmodel(s,"models/pathlib/goodsquare.md3");
84 setmodel(s,"models/pathlib/badsquare.md3");
88 traceline(where + '0 0 32',where - '0 0 128',MOVE_WORLDONLY,s);
90 s.angles = vectoangles(trace_plane_normal);
95 void pathlib_showedge(vector where,float lifetime,float rot)
100 lifetime = time + 30;
106 e.think = SUB_Remove;
107 e.nextthink = lifetime;
108 e.scale = pathlib_gridsize / 512;
111 setmodel(e,"models/pathlib/edge.md3");
112 //traceline(where + '0 0 32',where - '0 0 128',MOVE_WORLDONLY,e);
113 //e.angles = vectoangles(trace_plane_normal);