1 #include "../pathlib.qh"
4 void mark_error(vector where,float lifetime);
5 void mark_info(vector where,float lifetime);
6 entity mark_misc(vector where,float lifetime);
9 void pathlib_showpath(entity start)
15 te_lightning1(e,e.origin,e.path_next.origin);
22 pathlib_showpath(self);
23 self.nextthink = time + 1;
26 void __showpath2_think()
29 mark_info(self.origin,1);
33 self.path_next.think = __showpath2_think;
34 self.path_next.nextthink = time + 0.15;
38 self.owner.think = __showpath2_think;
39 self.owner.nextthink = time + 0.15;
43 void pathlib_showpath2(entity path)
45 path.think = __showpath2_think;
46 path.nextthink = time;
50 void pathlib_showsquare2(entity node ,vector ncolor,float align)
54 node.scale = pathlib_gridsize / 512.001;
55 node.solid = SOLID_NOT;
57 setmodel(node,"models/pathlib/square.md3");
58 setorigin(node,node.origin);
59 node.colormod = ncolor;
63 traceline(node.origin + '0 0 32', node.origin - '0 0 128', MOVE_WORLDONLY, node);
64 node.angles = vectoangles(trace_plane_normal);
71 void pathlib_showsquare(vector where,float goodsquare,float _lifetime)
76 _lifetime = time + 30;
83 s.nextthink = _lifetime;
84 s.scale = pathlib_gridsize / 512.001;
88 setmodel(s,"models/pathlib/goodsquare.md3");
90 setmodel(s,"models/pathlib/badsquare.md3");
94 traceline(where + '0 0 32',where - '0 0 128',MOVE_WORLDONLY,s);
96 s.angles = vectoangles(trace_plane_normal);
101 void pathlib_showedge(vector where,float _lifetime,float rot)
106 _lifetime = time + 30;
112 e.think = SUB_Remove;
113 e.nextthink = _lifetime;
114 e.scale = pathlib_gridsize / 512;
117 setmodel(e,"models/pathlib/edge.md3");
118 //traceline(where + '0 0 32',where - '0 0 128',MOVE_WORLDONLY,e);
119 //e.angles = vectoangles(trace_plane_normal);