|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Macros | |
| #define | navigation_item_add_link(from_wp, to_item, walkable) |
| #define | navigation_item_getlinknum(to_item, from_wp) |
| #define | navigation_item_initlinks_ifneeded(e) |
| #define | navigation_item_iswalkablelink(to_item, from_wp) |
| #define | SUBMERGED_NO 1 |
| #define | SUBMERGED_UNDEFINED 0 |
| #define | SUBMERGED_YES 2 |
| #define | TELEPORT_USED(pl, tele_wp) |
| #define navigation_item_add_link | ( | from_wp, | |
| to_item, | |||
| walkable ) |
Definition at line 60 of file navigation.qh.
Referenced by navigation_routetogoal().
| #define navigation_item_getlinknum | ( | to_item, | |
| from_wp ) |
Definition at line 57 of file navigation.qh.
Referenced by navigation_routetogoal().
| #define navigation_item_initlinks_ifneeded | ( | e | ) |
| #define navigation_item_iswalkablelink | ( | to_item, | |
| from_wp ) |
Definition at line 58 of file navigation.qh.
Referenced by navigation_routetogoal().
| #define SUBMERGED_NO 1 |
Definition at line 101 of file navigation.qh.
Referenced by navigation_check_submerged_state().
| #define SUBMERGED_UNDEFINED 0 |
Definition at line 100 of file navigation.qh.
Referenced by navigation_check_submerged_state().
| #define SUBMERGED_YES 2 |
Definition at line 102 of file navigation.qh.
Referenced by navigation_check_submerged_state().
| #define TELEPORT_USED | ( | pl, | |
| tele_wp ) |
Definition at line 63 of file navigation.qh.
Referenced by navigation_poptouchedgoals().
Definition at line 1874 of file navigation.qc.
References entity(), g_bot_dodge, g_waypoints, IL_EACH, and vector.
Referenced by bot_serverframe().
Definition at line 2062 of file navigation.qc.
References entity(), goalcounter, goalcurrent, goalstack01, goalstack02, goalstack03, goalstack04, goalstack05, goalstack06, goalstack07, goalstack08, goalstack09, goalstack10, goalstack11, goalstack12, goalstack13, goalstack14, goalstack15, goalstack16, goalstack17, goalstack18, goalstack19, goalstack20, goalstack21, goalstack22, goalstack23, goalstack24, goalstack25, goalstack26, goalstack27, goalstack28, goalstack29, goalstack30, goalstack31, lastposition, NULL, org, origin, and vector.
Referenced by havocbot_moveto(), and havocbot_movetogoal().
Definition at line 2019 of file navigation.qc.
References debuglastnode, entity(), IS_PLAYER, NULL, and vector.
Referenced by tracewalk().
Definition at line 2034 of file navigation.qc.
References DEBUG_NODE_FAIL, DEBUG_NODE_SUCCESS, DEBUG_NODE_WARNING, and vector.
Referenced by tracewalk().
| void debugresetnodes | ( | ) |
Definition at line 204 of file navigation.qc.
References entity(), IS_PLAYER, SUBMERGED, SUBMERGED_NO, SUBMERGED_UNDEFINED, SUBMERGED_YES, vector, and WATERLEVEL_SUBMERGED.
Referenced by waypoint_gettravelcost().
Definition at line 751 of file navigation.qc.
References entity(), FLOAT_MAX, goalcurrent, goalcurrent_distance_2d, goalcurrent_distance_time, goalcurrent_distance_z, goalcurrent_prev, goalentity, goalentity_lock_timeout, goalentity_shouldbefrozen, goalstack01, goalstack02, goalstack03, goalstack04, goalstack05, goalstack06, goalstack07, goalstack08, goalstack09, goalstack10, goalstack11, goalstack12, goalstack13, goalstack14, goalstack15, goalstack16, goalstack17, goalstack18, goalstack19, goalstack20, goalstack21, goalstack22, goalstack23, goalstack24, goalstack25, goalstack26, goalstack27, goalstack28, goalstack29, goalstack30, goalstack31, lastteleporttime, and NULL.
Referenced by havocbot_ai(), havocbot_movetogoal(), havocbot_resetgoal(), navigation_goalrating_start(), and navigation_unstuck().
Definition at line 77 of file navigation.qc.
Definition at line 87 of file navigation.qc.
Definition at line 96 of file navigation.qc.
Definition at line 1012 of file navigation.qc.
Definition at line 1846 of file navigation.qc.
Definition at line 1831 of file navigation.qc.
Definition at line 44 of file navigation.qc.
Definition at line 29 of file navigation.qc.
Definition at line 20 of file navigation.qc.
Referenced by navigation_unstuck().
Definition at line 1082 of file navigation.qc.
Referenced by navigation_goalrating_start().
Definition at line 1054 of file navigation.qc.
References bound(), entity(), vector, waypoint_gettravelcost(), and WAYPOINTFLAG_TELEPORT.
Definition at line 1172 of file navigation.qc.
Definition at line 1025 of file navigation.qc.
References entity(), g_waypoints, and IL_EACH.
Referenced by navigation_markroutes().
Definition at line 847 of file navigation.qc.
References entity(), FLOAT_MAX, goalcurrent, goalcurrent_distance_2d, goalcurrent_distance_time, goalcurrent_distance_z, goalcurrent_prev, goalentity, goalentity_lock_timeout, goalstack01, goalstack02, goalstack03, goalstack04, goalstack05, goalstack06, goalstack07, goalstack08, goalstack09, goalstack10, goalstack11, goalstack12, goalstack13, goalstack14, goalstack15, goalstack16, goalstack17, goalstack18, goalstack19, goalstack20, goalstack21, goalstack22, goalstack23, goalstack24, goalstack25, goalstack26, goalstack27, goalstack28, goalstack29, goalstack30, goalstack31, and NULL.
Referenced by navigation_goalrating_end(), navigation_poptouchedgoals(), and navigation_shortenpath().
Definition at line 1630 of file navigation.qc.
References absmax, absmin, AI_STATUS_RUNNING, AI_STATUS_WAYPOINT_PERSONAL_GOING, AI_STATUS_WAYPOINT_PERSONAL_REACHED, aistatus, autocvar_sv_maxspeed, BOT_BUNNYHOP_WP_DETECTION_RANGE, boxesoverlap(), entity(), eZ, goalcurrent, goalstack01, goalstack02, goalstack03, IS_PLAYER, jumpheight_vec, jumppadcount, ladder_entity, lastteleporttime, navigation_poproute(), NULL, origin, random(), STAT, TELEPORT_USED, time, trace_fraction, vdist, vec2, vector, velocity, view_ofs, vlen2, WAYPOINTFLAG_JUMP, WAYPOINTFLAG_PERSONAL, and WAYPOINTFLAG_TELEPORT.
Referenced by havocbot_movetogoal().
Definition at line 801 of file navigation.qc.
References entity(), FLOAT_MAX, goalcurrent, goalcurrent_distance_2d, goalcurrent_distance_time, goalcurrent_distance_z, goalcurrent_prev, goalentity, goalstack01, goalstack02, goalstack03, goalstack04, goalstack05, goalstack06, goalstack07, goalstack08, goalstack09, goalstack10, goalstack11, goalstack12, goalstack13, goalstack14, goalstack15, goalstack16, goalstack17, goalstack18, goalstack19, goalstack20, goalstack21, goalstack22, goalstack23, goalstack24, goalstack25, goalstack26, goalstack27, goalstack28, goalstack29, goalstack30, goalstack31, and NULL.
Referenced by havocbot_ai(), havocbot_movetogoal(), and navigation_routetogoal().
Definition at line 1221 of file navigation.qc.
Definition at line 1430 of file navigation.qc.
References autocvar_bot_ai_strategyinterval_movingtarget, bot_navigation_movemode, checkpvs(), entity(), goalcurrent, goalentity, IS_MOVABLE, IT_JETPACK, items, MAX_CHASE_DISTANCE, navigation_item_add_link, navigation_item_getlinknum, navigation_item_initlinks_ifneeded, navigation_item_iswalkablelink, navigation_jetpack_goal, navigation_pushroute(), NULL, origin, PL_MAX_CONST, PL_MIN_CONST, set_tracewalk_dest(), STAT, trace_ent, tracewalk(), tracewalk_dest, tracewalk_dest_height, vdist, vec2, vector, vlen2, waypointeditor_enabled, WAYPOINTFLAG_PERSONAL, WAYPOINTFLAG_TELEPORT, wp_goal_prev0, wp_goal_prev1, and WPFLAGMASK_NORELINK.
Referenced by havocbot_movetogoal(), navigation_goalrating_end(), and navigation_unstuck().
Definition at line 1555 of file navigation.qc.
References bot_navigation_movemode, bot_tracewalk_time, checkpvs(), entity(), fabs(), goalcurrent, goalentity, goalstack01, IS_MOVABLE, LOG_DEBUG, max(), MAX_CHASE_DISTANCE, maxs, mins, navigation_poproute(), netname, next, origin, set_tracewalk_dest(), time, trace_ent, tracewalk(), tracewalk_dest, tracewalk_dest_height, vdist, vectoangles(), vector, view_ofs, vlen2, WAYPOINTFLAG_JUMP, and WAYPOINTFLAG_TELEPORT.
Referenced by havocbot_movetogoal().
Definition at line 1908 of file navigation.qc.
References AI_STATUS_STUCK, aistatus, autocvar_bot_wander_enable, bot_navigation_movemode, bot_strategytoken, bot_waypoint_queue_bestgoal, bot_waypoint_queue_bestgoalrating, bot_waypoint_queue_goal, bot_waypoint_queue_owner, entity(), FOREACH_ENTITY_RADIUS, ftos(), g_waypoints, goalentity, IL_EACH, LOG_DEBUG, navigation_clearroute(), navigation_goalrating_timeout_expire(), navigation_goalrating_timeout_set(), navigation_routetogoal(), netname, NULL, origin, random(), set_tracewalk_dest(), STAT, tracewalk(), tracewalk_dest, tracewalk_dest_height, vlen2, and WAYPOINTFLAG_GENERATED.
Referenced by bot_think().
| 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 ) |
Definition at line 896 of file navigation.qc.
References bot_navigation_movemode, entity(), org, PL_MAX_CONST, PL_MIN_CONST, trace_fraction, tracewalk(), vdist, and vector.
Referenced by botframe_autowaypoints_fix_from().
| float tracewalk | ( | entity | e, |
| vector | start, | ||
| vector | m1, | ||
| vector | m2, | ||
| vector | end, | ||
| float | end_height, | ||
| float | movemode ) |
Definition at line 274 of file navigation.qc.
Referenced by navigation_routetogoal(), navigation_shortenpath(), navigation_unstuck(), and navigation_waypoint_will_link().
| float blacklisted |
Definition at line 75 of file navigation.qh.
| entity bot_basewaypoint |
Definition at line 93 of file navigation.qh.
| const float BOT_BUNNYHOP_WP_DETECTION_RANGE = 100 |
Definition at line 91 of file navigation.qh.
Referenced by navigation_get_really_close_waypoint(), and navigation_poptouchedgoals().
| float bot_navigation_movemode |
Definition at line 7 of file navigation.qh.
Referenced by bot_serverframe(), havocbot_movetogoal(), navigation_routetogoal(), navigation_shortenpath(), navigation_unstuck(), navigation_waypoint_will_link(), and waypoint_think().
| entity bot_waypoint_queue_bestgoal |
Definition at line 88 of file navigation.qh.
Referenced by navigation_unstuck().
| float bot_waypoint_queue_bestgoalrating |
Definition at line 89 of file navigation.qh.
Referenced by navigation_unstuck().
| entity bot_waypoint_queue_goal |
Definition at line 86 of file navigation.qh.
Referenced by navigation_unstuck().
| entity bot_waypoint_queue_nextgoal |
Definition at line 87 of file navigation.qh.
| entity bot_waypoint_queue_owner |
Definition at line 85 of file navigation.qh.
Referenced by bot_clientdisconnect(), bot_think(), and navigation_unstuck().
| const float DEBUG_NODE_FAIL = 3 |
Definition at line 82 of file navigation.qh.
Referenced by debugnodestatus(), and tracewalk().
| const float DEBUG_NODE_SUCCESS = 1 |
Definition at line 80 of file navigation.qh.
Referenced by debugnodestatus(), and tracewalk().
| const float DEBUG_NODE_WARNING = 2 |
Definition at line 81 of file navigation.qh.
Referenced by debugnodestatus(), and tracewalk().
| vector debuglastnode |
Definition at line 83 of file navigation.qh.
Referenced by debugnode(), and debugresetnodes().
| entity goalcurrent |
Definition at line 19 of file navigation.qh.
Referenced by debuggoalstack(), havocbot_ai(), havocbot_bunnyhop(), havocbot_checkdanger(), havocbot_moveto(), havocbot_movetogoal(), navigation_clearroute(), navigation_get_really_close_waypoint(), navigation_goalrating_end(), navigation_poproute(), navigation_poptouchedgoals(), navigation_pushroute(), navigation_routetogoal(), and navigation_shortenpath().
| float goalcurrent_distance_2d |
Definition at line 30 of file navigation.qh.
Referenced by havocbot_checkgoaldistance(), havocbot_movetogoal(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| float goalcurrent_distance_time |
Definition at line 31 of file navigation.qh.
Referenced by havocbot_checkgoaldistance(), havocbot_movetogoal(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| float goalcurrent_distance_z |
Definition at line 29 of file navigation.qh.
Referenced by havocbot_checkgoaldistance(), havocbot_movetogoal(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalcurrent_prev |
Definition at line 28 of file navigation.qh.
Referenced by havocbot_ai(), havocbot_bunnyhop(), havocbot_checkdanger(), havocbot_movetogoal(), navigation_clearroute(), navigation_get_really_close_waypoint(), navigation_poproute(), and navigation_pushroute().
| entity goalentity |
Definition at line 34 of file navigation.qh.
| float goalentity_lock_timeout |
Definition at line 35 of file navigation.qh.
| bool goalentity_shouldbefrozen |
Definition at line 36 of file navigation.qh.
Referenced by havocbot_movetogoal(), navigation_clearroute(), and navigation_goalrating_end().
| entity goalstack01 |
Definition at line 19 of file navigation.qh.
Referenced by debuggoalstack(), havocbot_bunnyhop(), havocbot_movetogoal(), navigation_clearroute(), navigation_poproute(), navigation_poptouchedgoals(), navigation_pushroute(), and navigation_shortenpath().
| entity goalstack02 |
Definition at line 19 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), navigation_poptouchedgoals(), and navigation_pushroute().
| entity goalstack03 |
Definition at line 19 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), navigation_poptouchedgoals(), and navigation_pushroute().
| entity goalstack04 |
Definition at line 20 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack05 |
Definition at line 20 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack06 |
Definition at line 20 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack07 |
Definition at line 20 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack08 |
Definition at line 21 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack09 |
Definition at line 21 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack10 |
Definition at line 21 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack11 |
Definition at line 21 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack12 |
Definition at line 22 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack13 |
Definition at line 22 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack14 |
Definition at line 22 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack15 |
Definition at line 22 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack16 |
Definition at line 23 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack17 |
Definition at line 23 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack18 |
Definition at line 23 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack19 |
Definition at line 23 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack20 |
Definition at line 24 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack21 |
Definition at line 24 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack22 |
Definition at line 24 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack23 |
Definition at line 24 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack24 |
Definition at line 25 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack25 |
Definition at line 25 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack26 |
Definition at line 25 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack27 |
Definition at line 25 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack28 |
Definition at line 26 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack29 |
Definition at line 26 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack30 |
Definition at line 26 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_poproute(), and navigation_pushroute().
| entity goalstack31 |
Definition at line 26 of file navigation.qh.
Referenced by debuggoalstack(), navigation_clearroute(), navigation_goalrating_end(), navigation_goalrating_start(), navigation_poproute(), and navigation_pushroute().
| float jumpheight_time |
Definition at line 13 of file navigation.qh.
Referenced by bot_calculate_stepheightvec(), and waypoint_gettravelcost().
| vector jumpheight_vec |
Definition at line 12 of file navigation.qh.
Referenced by bot_calculate_stepheightvec(), havocbot_movetogoal(), navigation_poptouchedgoals(), tracewalk(), and waypoint_gettravelcost().
| vector jumpstepheightvec |
Definition at line 10 of file navigation.qh.
Referenced by bot_calculate_stepheightvec(), func_ladder_init(), havocbot_movetogoal(), and tracewalk().
| vector lastteleport_origin |
Definition at line 73 of file navigation.qh.
| float lastteleporttime |
Definition at line 72 of file navigation.qh.
| int nav_submerged_state |
Definition at line 99 of file navigation.qh.
| entity navigation_bestgoal |
Definition at line 15 of file navigation.qh.
Referenced by havocbot_goalrating_waypoints(), navigation_goalrating_end(), and navigation_goalrating_start().
| float navigation_bestrating |
Definition at line 6 of file navigation.qh.
Referenced by navigation_goalrating_start().
| bool navigation_dynamicgoal |
Definition at line 94 of file navigation.qh.
| entity navigation_jetpack_goal |
Definition at line 77 of file navigation.qh.
Referenced by havocbot_movetogoal(), navigation_goalrating_start(), and navigation_routetogoal().
| vector navigation_jetpack_point |
Definition at line 78 of file navigation.qh.
Referenced by havocbot_movetogoal().
| float navigation_testtracewalk |
Definition at line 8 of file navigation.qh.
Referenced by waypoint_think().
| entity nearestwaypoint |
Definition at line 38 of file navigation.qh.
| float nearestwaypointtimeout |
Definition at line 39 of file navigation.qh.
| vector stepheightvec |
Definition at line 11 of file navigation.qh.
Referenced by bot_calculate_stepheightvec(), func_ladder_init(), havocbot_movetogoal(), tracewalk(), and trigger_push_testorigin().
| vector tracewalk_dest |
Definition at line 66 of file navigation.qh.
Referenced by havocbot_movetogoal(), navigation_routetogoal(), navigation_shortenpath(), navigation_unstuck(), set_tracewalk_dest(), set_tracewalk_dest_2(), and waypoint_think().
| float tracewalk_dest_height |
Definition at line 67 of file navigation.qh.
Referenced by havocbot_movetogoal(), navigation_routetogoal(), navigation_shortenpath(), navigation_unstuck(), set_tracewalk_dest(), set_tracewalk_dest_2(), and waypoint_think().
| entity wp_goal_prev0 |
Definition at line 69 of file navigation.qh.
Referenced by navigation_routetogoal().
| entity wp_goal_prev1 |
Definition at line 70 of file navigation.qh.
Referenced by navigation_routetogoal().