3 MODEL(SQUARE, "models/pathlib/square.md3");
4 MODEL(SQUARE_GOOD, "models/pathlib/goodsquare.md3");
5 MODEL(SQUARE_BAD, "models/pathlib/badsquare.md3");
6 MODEL(EDGE, "models/pathlib/edge.md3");
9 void mark_error(vector where,float lifetime);
10 void mark_info(vector where,float lifetime);
11 entity mark_misc(vector where,float lifetime);
14 void pathlib_showpath(entity start)
20 te_lightning1(e,e.origin,e.path_next.origin);
27 pathlib_showpath(self);
28 self.nextthink = time + 1;
31 void __showpath2_think()
34 mark_info(self.origin,1);
38 self.path_next.think = __showpath2_think;
39 self.path_next.nextthink = time + 0.15;
43 self.owner.think = __showpath2_think;
44 self.owner.nextthink = time + 0.15;
48 void pathlib_showpath2(entity path)
50 path.think = __showpath2_think;
51 path.nextthink = time;
54 void pathlib_showsquare2(entity node ,vector ncolor,float align)
58 node.scale = pathlib_gridsize / 512.001;
59 node.solid = SOLID_NOT;
61 setmodel(node, MDL_SQUARE);
62 setorigin(node,node.origin);
63 node.colormod = ncolor;
67 traceline(node.origin + '0 0 32', node.origin - '0 0 128', MOVE_WORLDONLY, node);
68 node.angles = vectoangles(trace_plane_normal);
75 void pathlib_showsquare(vector where,float goodsquare,float _lifetime)
80 _lifetime = time + 30;
87 s.nextthink = _lifetime;
88 s.scale = pathlib_gridsize / 512.001;
91 setmodel(s, goodsquare ? MDL_SQUARE_GOOD : MDL_SQUARE_BAD);
93 traceline(where + '0 0 32',where - '0 0 128',MOVE_WORLDONLY,s);
95 s.angles = vectoangles(trace_plane_normal);
100 void pathlib_showedge(vector where,float _lifetime,float rot)
105 _lifetime = time + 30;
111 e.think = SUB_Remove;
112 e.nextthink = _lifetime;
113 e.scale = pathlib_gridsize / 512;
116 setmodel(e, MDL_EDGE);
117 //traceline(where + '0 0 32',where - '0 0 128',MOVE_WORLDONLY,e);
118 //e.angles = vectoangles(trace_plane_normal);