Xonotic
|
Go to the source code of this file.
Macros | |
#define | SUPPORT_WP goalentity |
#define SUPPORT_WP goalentity |
Definition at line 54 of file waypoints.qh.
void botframe_autowaypoints | ( | ) |
Definition at line 2472 of file waypoints.qc.
References autocvar_g_waypointeditor_auto, botframe_autowaypoints_fix(), botframe_autowaypoints_lastwp1, botframe_deleteuselesswaypoints(), FOREACH_CLIENT, IS_DEAD, IS_PLAYER, and IS_REAL_CLIENT.
Referenced by bot_serverframe().
void botframe_showwaypointlinks | ( | ) |
Definition at line 2156 of file waypoints.qc.
References botframe_waypointeditorlightningtime, entity(), FOREACH_CLIENT, if(), IS_PLAYER, NULL, time, vdist, and vec2.
Referenced by bot_serverframe().
spawnfunc | ( | waypoint | ) |
Definition at line 1294 of file waypoints.qc.
References g_waypoints, IL_PUSH(), make_pure, origin, setorigin(), waypoint_clearlinks(), and waypointeditor_enabled.
Definition at line 1135 of file waypoints.qc.
References waypoint_addlink_customcost(), waypoint_addlink_for_custom_jumppad(), WAYPOINTFLAG_JUMP, WAYPOINTFLAG_SUPPORT, and WPFLAGMASK_NORELINK.
Referenced by waypoint_load_hardwiredlinks(), waypoint_load_links(), waypoint_restore_hardwiredlinks(), and waypoint_spawn_fromeditor().
Definition at line 1090 of file waypoints.qc.
References to, waypoint_getlinkcost(), waypoint_islinked(), WAYPOINTFLAG_JUMP, WAYPOINTFLAG_SUPPORT, and WPFLAGMASK_NORELINK.
Referenced by waypoint_addlink().
Definition at line 1255 of file waypoints.qc.
References NULL.
Referenced by spawnfunc(), waypoint_schedulerelink(), and waypoint_spawn().
Definition at line 1965 of file waypoints.qc.
References MOVE_NOMONSTERS, trace_endpos, trace_fraction, trace_startsolid, and vector().
Referenced by waypoint_spawnforteleporter_wz().
Definition at line 1586 of file waypoints.qc.
Definition at line 1012 of file waypoints.qc.
References autocvar_bot_ai_bunnyhop_skilloffset, and skill.
Referenced by func_ladder_think(), navigation_routerating(), and waypoint_gettravelcost().
Definition at line 1067 of file waypoints.qc.
References bound(), vector(), and waypoint_gettravelcost().
Referenced by waypoint_addlink_customcost().
Definition at line 955 of file waypoints.qc.
Referenced by waypoint_islinked(), and waypoint_removelink().
Definition at line 1030 of file waypoints.qc.
References height, jumpheight_time, jumpheight_vec, navigation_check_submerged_state(), sqrt(), vec2, vlen(), waypoint_getlinearcost(), waypoint_getlinearcost_crouched(), waypoint_getlinearcost_underwater(), WAYPOINTFLAG_CROUCH, and WAYPOINTFLAG_JUMP.
Referenced by navigation_markroutes_checkwaypoint(), navigation_routerating(), and waypoint_getlinkcost().
Definition at line 274 of file waypoints.qc.
References NULL.
Referenced by waypoint_get_type_name(), waypoint_remove_fromeditor(), waypoint_save_hardwiredlinks(), and waypoint_setupmodel().
Definition at line 281 of file waypoints.qc.
References entity(), and waypoint_setupmodel().
Referenced by havocbot_movetogoal(), waypoint_remove(), waypoint_save_hardwiredlinks(), waypoint_showlink(), and waypoint_spawn_fromeditor().
Definition at line 968 of file waypoints.qc.
References waypoint_getlinknum().
Referenced by waypoint_addlink_customcost(), waypoint_remove(), waypoint_showlinks_to(), and waypoint_spawn_fromeditor().
void waypoint_load_hardwiredlinks | ( | ) |
Definition at line 1470 of file waypoints.qc.
References argv(), botframe_loadedforcedlinks, entity(), fclose(), fgets(), FILE_READ, fopen(), ftos(), GET_GAMETYPE_EXTENSION, LOG_INFO, LOG_TRACE, mapname, NULL, stov(), strcat(), substring(), tokenizebyseparator, vdist, vector(), waypoint_addlink(), waypoint_mark_hardwiredlink(), WAYPOINTFLAG_JUMP, WAYPOINTFLAG_SUPPORT, WAYPOINTFLAG_TELEPORT, and WPFLAGMASK_NORELINK.
Referenced by bot_serverframe(), and waypoint_schedulerelinkall().
bool waypoint_load_links | ( | ) |
Definition at line 1322 of file waypoints.qc.
References argv(), botframe_cachedwaypointlinks, entity(), fclose(), fgets(), FILE_READ, fopen(), ftos(), g_assault, g_waypoints, GET_GAMETYPE_EXTENSION, IL_EACH, LOG_TRACE, mapname, NULL, stof(), stov(), strcat(), string_null, substring(), tokenizebyseparator, vdist, vector(), vtos(), waypoint_addlink(), waypoint_schedulerelinkall(), waypoint_time, WAYPOINT_VERSION, WAYPOINTFLAG_CUSTOM_JP, and WAYPOINTFLAG_ITEM.
Referenced by bot_serverframe().
float waypoint_loadall | ( | ) |
Definition at line 1842 of file waypoints.qc.
References argv(), autocvar_g_waypointeditor_symmetrical_allowload, cons(), cvar_set(), cvar_string(), fclose(), fgets(), FILE_READ, floor(), fopen(), ftos(), GET_GAMETYPE_EXTENSION, LOG_INFO, LOG_INFOF, LOG_TRACE, mapname, stof(), stov(), strcat(), strcpy, substring(), tokenizebyseparator, vector(), waypoint_spawn(), waypoint_time, WAYPOINT_VERSION, waypoint_version_loaded, waypointeditor_enabled, and WAYPOINTFLAG_NORELINK__DEPRECATED.
Referenced by bot_serverframe().
Definition at line 299 of file waypoints.qc.
References waypoint_setupmodel().
Referenced by waypoint_load_hardwiredlinks(), and waypoint_spawn_fromeditor().
Definition at line 821 of file waypoints.qc.
References g_waypoints, if(), IL_EACH, waypoint_is_hardwiredlink(), waypoint_islinked(), waypoint_removelink(), and waypoint_unmark_hardwiredlink().
Referenced by waypoint_remove_fromeditor(), and waypoint_spawn_fromeditor().
Definition at line 840 of file waypoints.qc.
References autocvar_g_waypointeditor_symmetrical, autocvar_g_waypointeditor_symmetrical_order, bprint(), entity(), FOREACH_ENTITY_CLASS, havocbot_symmetry_origin_order, LABEL, LOG_INFO, LOG_INFOF, navigation_findnearestwaypoint(), NULL, start_wp_is_spawned, strcat(), vector(), vtos(), waypoint_clear_start_wp_globals(), waypoint_getSymmetricalPoint(), waypoint_has_hardwiredlinks(), waypoint_remove(), WAYPOINT_VERSION, waypoint_version_loaded, and WAYPOINTFLAG_GENERATED.
Definition at line 907 of file waypoints.qc.
References entity(), NULL, waypoint_getlinknum(), waypoint_schedulerelink(), WAYPOINTFLAG_JUMP, WAYPOINTFLAG_SUPPORT, and WPFLAGMASK_NORELINK.
Referenced by waypoint_remove(), and waypoint_spawn_fromeditor().
void waypoint_save_links | ( | ) |
Definition at line 1721 of file waypoints.qc.
References botframe_cachedwaypointlinks, fclose(), FILE_WRITE, fopen(), fputs(), ftos_decimals(), g_waypoints, GET_GAMETYPE_EXTENSION, IL_EACH, LOG_INFOF, mapname, strcat(), waypoint_time, WAYPOINT_VERSION, WAYPOINTFLAG_CUSTOM_JP, WAYPOINTFLAG_JUMP, and WAYPOINTFLAG_SUPPORT.
Referenced by waypoint_saveall().
void waypoint_saveall | ( | ) |
Definition at line 1760 of file waypoints.qc.
References autocvar_g_waypointeditor_symmetrical, autocvar_g_waypointeditor_symmetrical_axis, autocvar_g_waypointeditor_symmetrical_order, autocvar_g_waypointeditor_symmetrical_origin, botframe_loadedforcedlinks, cons(), fclose(), FILE_WRITE, fopen(), fputs(), ftos(), ftos_decimals(), g_waypoints, GET_GAMETYPE_EXTENSION, IL_EACH, LOG_INFOF, mapname, strcat(), strcpy, vtos(), waypoint_save_hardwiredlinks(), waypoint_save_links(), waypoint_time, WAYPOINT_VERSION, waypoint_version_loaded, and WAYPOINTFLAG_GENERATED.
Definition at line 1275 of file waypoints.qc.
References EF_LOWPRECISION, NULL, setthink, time, vdist, waypoint_clearlinks(), waypoint_setupmodel(), waypoint_think(), WAYPOINTFLAG_PERSONAL, and WPFLAGMASK_NORELINK.
Referenced by botframe_autowaypoints_createwp(), waypoint_removelink(), waypoint_schedulerelinkall(), waypoint_spawn_fromeditor(), and waypoint_spawnpersonal().
void waypoint_schedulerelinkall | ( | ) |
Definition at line 1309 of file waypoints.qc.
References g_waypoints, IL_EACH, relink_lengthculled, relink_pvsculled, relink_total, relink_walkculled, waypoint_load_hardwiredlinks(), and waypoint_schedulerelink().
Referenced by waypoint_load_links().
Definition at line 431 of file waypoints.qc.
References autocvar_developer, backtrace, boxesoverlap(), DPCONTENTS_BODY, DPCONTENTS_BOTCLIP, DPCONTENTS_PLAYERCLIP, DPCONTENTS_SOLID, entity(), g_waypoints, IL_EACH, IL_PUSH(), LOG_INFO, LOG_TRACE, make_pure, move_out_of_solid, NULL, setorigin(), SOLID_TRIGGER, time, trigger_push_get_push_time(), vector(), vtos(), waypoint_clearlinks(), waypoint_get(), waypoint_setupmodel(), waypointeditor_enabled, WAYPOINTFLAG_CROUCH, WAYPOINTFLAG_GENERATED, WAYPOINTFLAG_PERSONAL, and WPFLAGMASK_NORELINK.
Referenced by botframe_autowaypoints_createwp(), waypoint_loadall(), waypoint_spawn_fromeditor(), waypoint_spawnforitem_force(), waypoint_spawnforteleporter_boxes(), and waypoint_spawnpersonal().
void waypoint_spawn_fromeditor | ( | entity | pl, |
bool | at_crosshair, | ||
bool | is_jump_wp, | ||
bool | is_crouch_wp, | ||
bool | is_support_wp | ||
) |
Definition at line 570 of file waypoints.qc.
References autocvar_g_waypointeditor_symmetrical, autocvar_g_waypointeditor_symmetrical_order, boxesoverlap(), bprint(), crosshair_trace_waypoints(), entity(), g_items, g_jumppads, g_waypoints, havocbot_symmetry_origin_order, IL_EACH, LABEL, LOG_INFO, LOG_INFOF, NULL, PHYS_INPUT_BUTTON_CROUCH, start_wp_is_hardwired, start_wp_is_spawned, start_wp_is_support, start_wp_origin, strcat(), time, trace_endpos, trace_ent, vdist, vector(), vlen(), vtos(), waypoint_addlink(), waypoint_clear_start_wp_globals(), waypoint_get(), waypoint_get_type_name(), waypoint_getSymmetricalPoint(), waypoint_is_hardwiredlink(), waypoint_islinked(), waypoint_mark_hardwiredlink(), waypoint_remove(), waypoint_removelink(), waypoint_schedulerelink(), waypoint_spawn(), waypoint_spawn_fromeditor(), waypoint_unmark_hardwiredlink(), WAYPOINT_VERSION, waypoint_version_loaded, WAYPOINTFLAG_CROUCH, WAYPOINTFLAG_CUSTOM_JP, WAYPOINTFLAG_JUMP, WAYPOINTFLAG_SUPPORT, WAYPOINTFLAG_TELEPORT, and WPFLAGMASK_NORELINK.
Referenced by waypoint_spawn_fromeditor().
Definition at line 2007 of file waypoints.qc.
References bot_waypoints_for_items, and waypoint_spawnforitem_force().
Definition at line 1978 of file waypoints.qc.
References g_waypoints, IL_EACH, NULL, vdist, waypoint_fixorigin, waypoint_spawn(), WAYPOINTFLAG_GENERATED, and WAYPOINTFLAG_ITEM.
Referenced by waypoint_spawnforitem().
void waypoint_spawnforteleporter | ( | entity | e, |
vector | destination, | ||
float | timetaken, | ||
entity | tracetest_ent | ||
) |
Definition at line 2069 of file waypoints.qc.
References waypoint_fixorigin, waypoint_spawnforteleporter_boxes(), and WAYPOINTFLAG_TELEPORT.
Definition at line 2031 of file waypoints.qc.
References dest, makevectors, v_forward, v_right, v_up, vector(), waypoint_fixorigin_down_dir(), waypoint_spawnforteleporter_boxes(), WAYPOINTFLAG_JUMP, and WAYPOINTFLAG_TELEPORT.
Definition at line 2075 of file waypoints.qc.
References entity(), NULL, waypoint_fixorigin, waypoint_schedulerelink(), waypoint_spawn(), WAYPOINTFLAG_GENERATED, and WAYPOINTFLAG_PERSONAL.
Referenced by havocbot_moveto().
Definition at line 1149 of file waypoints.qc.
References absmax, absmin, autocvar_bot_navigation_ignoreplayers, bot_calculate_stepheightvec(), bot_navigation_movemode, boxesoverlap(), DPCONTENTS_BODY, DPCONTENTS_BOTCLIP, DPCONTENTS_PLAYERCLIP, DPCONTENTS_SOLID, dphitcontentsmask, func_null(), g_waypoints, if(), IL_EACH, MOVE_NOMONSTERS, MOVE_NORMAL, navigation_testtracewalk, nextthink, origin, relink_lengthculled, set_tracewalk_dest_2(), setthink, tracewalk_dest, tracewalk_dest_height, vdist, vector(), waypoint_restore_hardwiredlinks(), WAYPOINTFLAG_CROUCH, WAYPOINTFLAG_JUMP, WAYPOINTFLAG_SUPPORT, wpflags, wpisbox, and wplinked.
Referenced by waypoint_schedulerelink().
Definition at line 316 of file waypoints.qc.
References NULL, and waypoint_setupmodel().
Referenced by waypoint_remove(), and waypoint_spawn_fromeditor().
Definition at line 28 of file waypoints.qc.
References EF_BLUE, EF_NODEPTHTEST, EF_RED, entity(), etos(), g_items, g_spawnpoints, g_waypoints, IL_EACH, LOG_INFO, LOG_INFOF, navigation_findnearestwaypoint(), navigation_markroutes(), navigation_markroutes_inverted(), and vtos().
void waypoint_updatecost_foralllinks | ( | ) |
Definition at line 973 of file waypoints.qc.
References g_waypoints, IL_EACH, and WAYPOINTFLAG_TELEPORT.
Referenced by bot_serverframe().
bool autocvar_g_waypointeditor |
Definition at line 5 of file waypoints.qh.
Referenced by STATIC_INIT().
bool autocvar_g_waypointeditor_symmetrical |
Definition at line 6 of file waypoints.qh.
Referenced by waypoint_getSymmetricalPoint(), waypoint_remove_fromeditor(), waypoint_saveall(), and waypoint_spawn_fromeditor().
Definition at line 7 of file waypoints.qh.
Referenced by waypoint_loadall().
vector autocvar_g_waypointeditor_symmetrical_axis |
Definition at line 10 of file waypoints.qh.
Referenced by waypoint_getSymmetricalPoint(), and waypoint_saveall().
int autocvar_g_waypointeditor_symmetrical_order |
Definition at line 9 of file waypoints.qh.
Referenced by waypoint_remove_fromeditor(), waypoint_saveall(), and waypoint_spawn_fromeditor().
vector autocvar_g_waypointeditor_symmetrical_origin |
Definition at line 8 of file waypoints.qh.
Referenced by waypoint_getSymmetricalPoint(), and waypoint_saveall().
float botframe_cachedwaypointlinks |
Definition at line 24 of file waypoints.qh.
Referenced by bot_serverframe(), waypoint_load_links(), and waypoint_save_links().
float botframe_loadedforcedlinks |
Definition at line 23 of file waypoints.qh.
Referenced by bot_serverframe(), waypoint_load_hardwiredlinks(), and waypoint_saveall().
float botframe_waypointeditorlightningtime |
Definition at line 22 of file waypoints.qh.
Referenced by botframe_showwaypointlinks().
entity goalentity |
Definition at line 53 of file waypoints.qh.
float relink_lengthculled |
Definition at line 20 of file waypoints.qh.
Referenced by waypoint_schedulerelinkall(), and waypoint_think().
float relink_pvsculled |
Definition at line 20 of file waypoints.qh.
Referenced by waypoint_schedulerelinkall().
float relink_total |
Definition at line 20 of file waypoints.qh.
Referenced by waypoint_schedulerelinkall().
float relink_walkculled |
Definition at line 20 of file waypoints.qh.
Referenced by waypoint_schedulerelinkall().
string waypoint_time |
Definition at line 17 of file waypoints.qh.
Referenced by waypoint_load_links(), waypoint_loadall(), waypoint_save_links(), and waypoint_saveall().
const float WAYPOINT_VERSION = 1.04 |
Definition at line 15 of file waypoints.qh.
Referenced by waypoint_load_links(), waypoint_loadall(), waypoint_remove_fromeditor(), waypoint_save_links(), waypoint_saveall(), and waypoint_spawn_fromeditor().
float waypoint_version_loaded |
Definition at line 16 of file waypoints.qh.
Referenced by waypoint_loadall(), waypoint_remove_fromeditor(), waypoint_saveall(), and waypoint_spawn_fromeditor().
bool waypointeditor_enabled |
Definition at line 3 of file waypoints.qh.
Referenced by bot_serverframe(), ClientCommand_wpeditor(), navigation_findnearestwaypoint_withdist_except(), navigation_routerating(), navigation_routetogoal(), spawnfunc(), STATIC_INIT(), waypoint_loadall(), waypoint_setupmodel(), and waypoint_spawn().
entity wp00 |
Definition at line 28 of file waypoints.qh.
entity wp00_original |
Definition at line 32 of file waypoints.qh.
float wp00mincost |
Definition at line 34 of file waypoints.qh.
entity wp01 |
Definition at line 28 of file waypoints.qh.
float wp01mincost |
Definition at line 34 of file waypoints.qh.
entity wp02 |
Definition at line 28 of file waypoints.qh.
float wp02mincost |
Definition at line 34 of file waypoints.qh.
entity wp03 |
Definition at line 28 of file waypoints.qh.
float wp03mincost |
Definition at line 34 of file waypoints.qh.
entity wp04 |
Definition at line 28 of file waypoints.qh.
float wp04mincost |
Definition at line 34 of file waypoints.qh.
entity wp05 |
Definition at line 28 of file waypoints.qh.
float wp05mincost |
Definition at line 34 of file waypoints.qh.
entity wp06 |
Definition at line 28 of file waypoints.qh.
float wp06mincost |
Definition at line 34 of file waypoints.qh.
entity wp07 |
Definition at line 28 of file waypoints.qh.
float wp07mincost |
Definition at line 34 of file waypoints.qh.
entity wp08 |
Definition at line 28 of file waypoints.qh.
float wp08mincost |
Definition at line 35 of file waypoints.qh.
entity wp09 |
Definition at line 28 of file waypoints.qh.
float wp09mincost |
Definition at line 35 of file waypoints.qh.
entity wp10 |
Definition at line 28 of file waypoints.qh.
float wp10mincost |
Definition at line 35 of file waypoints.qh.
entity wp11 |
Definition at line 28 of file waypoints.qh.
float wp11mincost |
Definition at line 35 of file waypoints.qh.
entity wp12 |
Definition at line 28 of file waypoints.qh.
float wp12mincost |
Definition at line 35 of file waypoints.qh.
entity wp13 |
Definition at line 28 of file waypoints.qh.
float wp13mincost |
Definition at line 35 of file waypoints.qh.
entity wp14 |
Definition at line 28 of file waypoints.qh.
float wp14mincost |
Definition at line 35 of file waypoints.qh.
entity wp15 |
Definition at line 28 of file waypoints.qh.
float wp15mincost |
Definition at line 35 of file waypoints.qh.
entity wp16 |
Definition at line 29 of file waypoints.qh.
float wp16mincost |
Definition at line 36 of file waypoints.qh.
entity wp17 |
Definition at line 29 of file waypoints.qh.
float wp17mincost |
Definition at line 36 of file waypoints.qh.
entity wp18 |
Definition at line 29 of file waypoints.qh.
float wp18mincost |
Definition at line 36 of file waypoints.qh.
entity wp19 |
Definition at line 29 of file waypoints.qh.
float wp19mincost |
Definition at line 36 of file waypoints.qh.
entity wp20 |
Definition at line 29 of file waypoints.qh.
float wp20mincost |
Definition at line 36 of file waypoints.qh.
entity wp21 |
Definition at line 29 of file waypoints.qh.
float wp21mincost |
Definition at line 36 of file waypoints.qh.
entity wp22 |
Definition at line 29 of file waypoints.qh.
float wp22mincost |
Definition at line 36 of file waypoints.qh.
entity wp23 |
Definition at line 29 of file waypoints.qh.
float wp23mincost |
Definition at line 36 of file waypoints.qh.
entity wp24 |
Definition at line 29 of file waypoints.qh.
float wp24mincost |
Definition at line 37 of file waypoints.qh.
entity wp25 |
Definition at line 29 of file waypoints.qh.
float wp25mincost |
Definition at line 37 of file waypoints.qh.
entity wp26 |
Definition at line 29 of file waypoints.qh.
float wp26mincost |
Definition at line 37 of file waypoints.qh.
entity wp27 |
Definition at line 29 of file waypoints.qh.
float wp27mincost |
Definition at line 37 of file waypoints.qh.
entity wp28 |
Definition at line 29 of file waypoints.qh.
float wp28mincost |
Definition at line 37 of file waypoints.qh.
entity wp29 |
Definition at line 29 of file waypoints.qh.
float wp29mincost |
Definition at line 37 of file waypoints.qh.
entity wp30 |
Definition at line 29 of file waypoints.qh.
float wp30mincost |
Definition at line 37 of file waypoints.qh.
entity wp31 |
Definition at line 29 of file waypoints.qh.
float wp31mincost |
Definition at line 37 of file waypoints.qh.
entity wp_aimed |
Definition at line 47 of file waypoints.qh.
entity wp_locked |
Definition at line 48 of file waypoints.qh.
int wpconsidered |
Definition at line 45 of file waypoints.qh.
float wpcost |
Definition at line 44 of file waypoints.qh.
int wpfire |
Definition at line 45 of file waypoints.qh.
int wpflags |
Definition at line 46 of file waypoints.qh.
entity wphw00 |
Definition at line 42 of file waypoints.qh.
entity wphw01 |
Definition at line 42 of file waypoints.qh.
entity wphw02 |
Definition at line 42 of file waypoints.qh.
entity wphw03 |
Definition at line 42 of file waypoints.qh.
entity wphw04 |
Definition at line 42 of file waypoints.qh.
entity wphw05 |
Definition at line 42 of file waypoints.qh.
entity wphw06 |
Definition at line 42 of file waypoints.qh.
entity wphw07 |
Definition at line 42 of file waypoints.qh.
int wpisbox |
Definition at line 45 of file waypoints.qh.
Referenced by waypoint_think().
int wplinked |
Definition at line 45 of file waypoints.qh.
Referenced by waypoint_think().
vector wpnearestpoint |
Definition at line 50 of file waypoints.qh.