5 MODEL(SQUARE, "models/pathlib/square.md3");
6 MODEL(SQUARE_GOOD, "models/pathlib/goodsquare.md3");
7 MODEL(SQUARE_BAD, "models/pathlib/badsquare.md3");
8 MODEL(EDGE, "models/pathlib/edge.md3");
11 void mark_error(vector where,float lifetime);
12 void mark_info(vector where,float lifetime);
13 entity mark_misc(vector where,float lifetime);
16 void pathlib_showpath(entity start)
22 te_lightning1(e,e.origin,e.path_next.origin);
27 void path_dbg_think(entity this)
29 pathlib_showpath(this);
30 this.nextthink = time + 1;
33 void __showpath2_think(entity this)
36 mark_info(this.origin,1);
40 setthink(this.path_next, __showpath2_think);
41 this.path_next.nextthink = time + 0.15;
45 setthink(this.owner, __showpath2_think);
46 this.owner.nextthink = time + 0.15;
50 void pathlib_showpath2(entity path)
52 setthink(path, __showpath2_think);
53 path.nextthink = time;
56 void pathlib_showsquare2(entity node ,vector ncolor,float align)
60 node.scale = pathlib_gridsize / 512.001;
61 node.solid = SOLID_NOT;
63 setmodel(node, MDL_SQUARE);
64 setorigin(node, node.origin);
65 node.colormod = ncolor;
69 traceline(node.origin + '0 0 32', node.origin - '0 0 128', MOVE_WORLDONLY, node);
70 node.angles = vectoangles(trace_plane_normal);
75 void pathlib_showsquare(vector where,float goodsquare,float _lifetime)
80 _lifetime = time + 30;
86 setthink(s, SUB_Remove);
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 setthink(e, 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);