56 #define navigation_item_initlinks_ifneeded(e) MACRO_BEGIN if (!e.wp00) waypoint_clearlinks(e); MACRO_END // initialize wpXXmincost fields 57 #define navigation_item_getlinknum(to_item, from_wp) waypoint_getlinknum(to_item, from_wp) 58 #define navigation_item_iswalkablelink(to_item, from_wp) (waypoint_get_assigned_link_cost(to_item, from_wp) < 999) 60 #define navigation_item_add_link(from_wp, to_item, walkable) \ 61 waypoint_addlink_customcost(to_item, from_wp, (walkable ? waypoint_getlinkcost(from_wp, to_item) : 999)) 63 #define TELEPORT_USED(pl, tele_wp) \ 64 boxesoverlap(tele_wp.absmin, tele_wp.absmax, pl.lastteleport_origin + STAT(PL_MIN, pl), pl.lastteleport_origin + STAT(PL_MAX, pl)) 100 #define SUBMERGED_UNDEFINED 0 101 #define SUBMERGED_NO 1 102 #define SUBMERGED_YES 2 void botframe_updatedangerousobjects(float maxupdate)
float goalentity_lock_timeout
bool navigation_dynamicgoal
void navigation_poproute(entity this)
void navigation_pushroute(entity this, entity e)
float bot_waypoint_queue_bestgoalrating
entity navigation_findnearestwaypoint(entity ent, float walkfromwp)
void navigation_routerating(entity this, entity e, float f, float rangebias)
entity navigation_bestgoal
float navigation_waypoint_will_link(vector v, vector org, entity ent, vector v2, float v2_height, vector o2, float o2_height, float walkfromwp, float bestdist)
void navigation_markroutes_inverted(entity fixed_source_waypoint)
void navigation_goalrating_end(entity this)
float tracewalk(entity e, vector start, vector m1, vector m2, vector end, float end_height, float movemode)
void navigation_goalrating_start(entity this)
const float DEBUG_NODE_WARNING
entity bot_waypoint_queue_bestgoal
float goalcurrent_distance_z
bool navigation_goalrating_timeout(entity this)
vector lastteleport_origin
vector navigation_jetpack_point
void debugnode(entity this, vector node)
void navigation_dynamicgoal_init(entity this, bool initially_static)
float goalcurrent_distance_time
float goalcurrent_distance_2d
void debuggoalstack(entity this)
float tracewalk_dest_height
void navigation_dynamicgoal_set(entity this, entity dropper)
entity bot_waypoint_queue_goal
void navigation_goalrating_timeout_force(entity this)
void navigation_markroutes(entity this, entity fixed_source_waypoint)
void navigation_goalrating_timeout_set(entity this)
entity bot_waypoint_queue_owner
float navigation_markroutes_nearestwaypoints(entity this, float maxdist)
vector(float skel, float bonenum) _skel_get_boneabs_hidden
float bot_navigation_movemode
void navigation_clearroute(entity this)
entity navigation_jetpack_goal
void navigation_dynamicgoal_unset(entity this)
const float BOT_BUNNYHOP_WP_DETECTION_RANGE
int navigation_poptouchedgoals(entity this)
float navigation_testtracewalk
bool navigation_check_submerged_state(entity ent, vector pos)
bool navigation_shortenpath(entity this)
float nearestwaypointtimeout
void navigation_markroutes_checkwaypoint(entity w, entity wp, float cost2, vector p)
void navigation_unstuck(entity this)
entity bot_waypoint_queue_nextgoal
float navigation_routetogoal(entity this, entity e, vector startposition)
void debugnodestatus(vector position, float status)
bool goalentity_shouldbefrozen
const float DEBUG_NODE_SUCCESS
float navigation_bestrating
const float DEBUG_NODE_FAIL