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 319 of file main.qc.

320{
321 return false;
322}

References vector.

Referenced by pathlib_waypointpath_step().

◆ path_build()

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

Definition at line 324 of file main.qc.

325{
326 if(prev && next)
328 if(buildpath_nodefilter(next.origin,where,prev.origin))
329 return next;
330
331
332 entity path = spawn();
333 path.owner = start;
334 path.path_next = next;
335
336 setorigin(path, where);
337
338 if(!next)
339 path.classname = "path_end";
340 else
341 {
342 if(!prev)
343 path.classname = "path_start";
344 else
345 path.classname = "path_node";
346 }
347
348 return path;
349}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define spawn
prev
Definition all.qh:73
next
Definition all.qh:95
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().