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;
55 void pathlib_showsquare2(entity node ,vector ncolor,float align)
59 node.scale = pathlib_gridsize / 512.001;
60 node.solid = SOLID_NOT;
62 setmodel(node, MDL_SQUARE);
63 setorigin(node,node.origin);
64 node.colormod = ncolor;
68 traceline(node.origin + '0 0 32', node.origin - '0 0 128', MOVE_WORLDONLY, node);
69 node.angles = vectoangles(trace_plane_normal);
76 void pathlib_showsquare(vector where,float goodsquare,float _lifetime)
81 _lifetime = time + 30;
88 s.nextthink = _lifetime;
89 s.scale = pathlib_gridsize / 512.001;
92 setmodel(s, goodsquare ? MDL_SQUARE_GOOD : MDL_SQUARE_BAD);
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, MDL_EDGE);
118 //traceline(where + '0 0 32',where - '0 0 128',MOVE_WORLDONLY,e);
119 //e.angles = vectoangles(trace_plane_normal);