3 void mark_error(vector where,float lifetime);
4 void mark_info(vector where,float lifetime);
5 entity mark_misc(vector where,float lifetime);
8 void pathlib_showpath(entity start)
14 te_lightning1(e,e.origin,e.path_next.origin);
21 pathlib_showpath(self);
22 self.nextthink = time + 1;
25 void __showpath2_think()
28 mark_info(self.origin,1);
32 self.path_next.think = __showpath2_think;
33 self.path_next.nextthink = time + 0.15;
37 self.owner.think = __showpath2_think;
38 self.owner.nextthink = time + 0.15;
42 void pathlib_showpath2(entity path)
44 path.think = __showpath2_think;
45 path.nextthink = time;
49 void pathlib_showsquare2(entity node ,vector ncolor,float align)
53 node.scale = pathlib_gridsize / 512.001;
54 node.solid = SOLID_NOT;
56 setmodel(node,"models/pathlib/square.md3");
57 setorigin(node,node.origin);
58 node.colormod = ncolor;
62 traceline(node.origin + '0 0 32', node.origin - '0 0 128', MOVE_WORLDONLY, node);
63 node.angles = vectoangles(trace_plane_normal);
68 void pathlib_showsquare(vector where,float goodsquare,float _lifetime)
73 _lifetime = time + 30;
80 s.nextthink = _lifetime;
81 s.scale = pathlib_gridsize / 512.001;
85 setmodel(s,"models/pathlib/goodsquare.md3");
87 setmodel(s,"models/pathlib/badsquare.md3");
91 traceline(where + '0 0 32',where - '0 0 128',MOVE_WORLDONLY,s);
93 s.angles = vectoangles(trace_plane_normal);
98 void pathlib_showedge(vector where,float _lifetime,float rot)
103 _lifetime = time + 30;
109 e.think = SUB_Remove;
110 e.nextthink = _lifetime;
111 e.scale = pathlib_gridsize / 512;
114 setmodel(e,"models/pathlib/edge.md3");
115 //traceline(where + '0 0 32',where - '0 0 128',MOVE_WORLDONLY,e);
116 //e.angles = vectoangles(trace_plane_normal);