Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
main.qh File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool buildpath_nodefilter_none (vector n, vector c, vector p)
entity path_build (entity next, vector where, entity prev, entity start)

Function Documentation

◆ buildpath_nodefilter_none()

bool buildpath_nodefilter_none ( vector n,
vector c,
vector p )

Definition at line 321 of file main.qc.

322{
323 return false;
324}

References vector.

Referenced by pathlib_waypointpath_step().

◆ path_build()

entity path_build ( entity next,
vector where,
entity prev,
entity start )

Definition at line 326 of file main.qc.

327{
328 if(prev && next)
330 if(buildpath_nodefilter(next.origin,where,prev.origin))
331 return next;
332
333
334 entity path = spawn();
335 path.owner = start;
336 path.path_next = next;
337
338 setorigin(path, where);
339
340 if(!next)
341 path.classname = "path_end";
342 else
343 {
344 if(!prev)
345 path.classname = "path_start";
346 else
347 path.classname = "path_node";
348 }
349
350 return path;
351}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define spawn
prev
Definition all.qh:71
next
Definition all.qh:93
var bool buildpath_nodefilter(vector n, vector c, vector p)

References buildpath_nodefilter(), entity(), next, prev, spawn, and vector.

Referenced by pathlib_astar(), and pathlib_waypointpath_step().