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)
21 te_lightning1(e, e.origin, e.path_next.origin);
26 void path_dbg_think(entity this)
28 pathlib_showpath(this);
29 this.nextthink = time + 1;
32 void __showpath2_think(entity this)
35 mark_info(this.origin, 1);
38 setthink(this.path_next, __showpath2_think);
39 this.path_next.nextthink = time + 0.15;
41 setthink(this.owner, __showpath2_think);
42 this.owner.nextthink = time + 0.15;
46 void pathlib_showpath2(entity path)
48 setthink(path, __showpath2_think);
49 path.nextthink = time;
52 void pathlib_showsquare2(entity node, vector ncolor, float align)
55 node.scale = pathlib_gridsize / 512.001;
56 node.solid = SOLID_NOT;
58 setmodel(node, MDL_SQUARE);
59 setorigin(node, node.origin);
60 node.colormod = ncolor;
63 traceline(node.origin + '0 0 32', node.origin - '0 0 128', MOVE_WORLDONLY, node);
64 node.angles = vectoangles(trace_plane_normal);
69 void pathlib_showsquare(vector where, float goodsquare, float _lifetime)
74 _lifetime = time + 30;
81 setthink(s, SUB_Remove);
82 s.nextthink = _lifetime;
83 s.scale = pathlib_gridsize / 512.001;
86 setmodel(s, goodsquare ? MDL_SQUARE_GOOD : MDL_SQUARE_BAD);
88 traceline(where + '0 0 32', where - '0 0 128', MOVE_WORLDONLY, s);
90 s.angles = vectoangles(trace_plane_normal);
95 void pathlib_showedge(vector where, float _lifetime, float rot)
100 _lifetime = time + 30;
107 setthink(e, SUB_Remove);
108 e.nextthink = _lifetime;
109 e.scale = pathlib_gridsize / 512;
112 setmodel(e, MDL_EDGE);
113 // traceline(where + '0 0 32',where - '0 0 128',MOVE_WORLDONLY,e);
114 // e.angles = vectoangles(trace_plane_normal);