4 MODEL(SQUARE, "models/pathlib/square.md3");
5 MODEL(SQUARE_GOOD, "models/pathlib/goodsquare.md3");
6 MODEL(SQUARE_BAD, "models/pathlib/badsquare.md3");
7 MODEL(EDGE, "models/pathlib/edge.md3");
10 void mark_error(vector where,float lifetime);
11 void mark_info(vector where,float lifetime);
12 entity mark_misc(vector where,float lifetime);
15 void pathlib_showpath(entity start)
21 te_lightning1(e,e.origin,e.path_next.origin);
28 pathlib_showpath(self);
29 self.nextthink = time + 1;
32 void __showpath2_think()
35 mark_info(self.origin,1);
39 self.path_next.think = __showpath2_think;
40 self.path_next.nextthink = time + 0.15;
44 self.owner.think = __showpath2_think;
45 self.owner.nextthink = time + 0.15;
49 void pathlib_showpath2(entity path)
51 path.think = __showpath2_think;
52 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);
74 void pathlib_showsquare(vector where,float goodsquare,float _lifetime)
79 _lifetime = time + 30;
85 s.think = SUB_Remove_self;
86 s.nextthink = _lifetime;
87 s.scale = pathlib_gridsize / 512.001;
90 setmodel(s, goodsquare ? MDL_SQUARE_GOOD : MDL_SQUARE_BAD);
92 traceline(where + '0 0 32',where - '0 0 128',MOVE_WORLDONLY,s);
94 s.angles = vectoangles(trace_plane_normal);
99 void pathlib_showedge(vector where,float _lifetime,float rot)
104 _lifetime = time + 30;
110 e.think = SUB_Remove_self;
111 e.nextthink = _lifetime;
112 e.scale = pathlib_gridsize / 512;
115 setmodel(e, MDL_EDGE);
116 //traceline(where + '0 0 32',where - '0 0 128',MOVE_WORLDONLY,e);
117 //e.angles = vectoangles(trace_plane_normal);