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 #include <common/turrets/util.qh>
14 void pathlib_showpath(entity start)
20 te_lightning1(e,e.origin,e.path_next.origin);
25 void path_dbg_think(entity this)
27 pathlib_showpath(this);
28 this.nextthink = time + 1;
31 void __showpath2_think(entity this)
34 mark_info(this.origin,1);
38 setthink(this.path_next, __showpath2_think);
39 this.path_next.nextthink = time + 0.15;
43 setthink(this.owner, __showpath2_think);
44 this.owner.nextthink = time + 0.15;
48 void pathlib_showpath2(entity path)
50 setthink(path, __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);
73 void pathlib_showsquare(vector where,float goodsquare,float _lifetime)
78 _lifetime = time + 30;
84 setthink(s, SUB_Remove);
85 s.nextthink = _lifetime;
86 s.scale = pathlib_gridsize / 512.001;
89 setmodel(s, goodsquare ? MDL_SQUARE_GOOD : MDL_SQUARE_BAD);
91 traceline(where + '0 0 32',where - '0 0 128',MOVE_WORLDONLY,s);
93 s.angles = vectoangles(trace_plane_normal);
98 void pathlib_showedge(vector where,float _lifetime,float rot)
103 _lifetime = time + 30;
109 setthink(e, SUB_Remove);
110 e.nextthink = _lifetime;
111 e.scale = pathlib_gridsize / 512;
114 setmodel(e, MDL_EDGE);
115 //traceline(where + '0 0 32',where - '0 0 128',MOVE_WORLDONLY,e);
116 //e.angles = vectoangles(trace_plane_normal);