|
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 | SUPPORT_WP goalentity |
| #define SUPPORT_WP goalentity |
Definition at line 54 of file waypoints.qh.
| void botframe_autowaypoints | ( | ) |
Definition at line 2467 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 2151 of file waypoints.qc.
References autocvar_sv_maxspeed, botframe_waypointeditorlightningtime, entity(), FOREACH_CLIENT, if(), IS_PLAYER, NULL, time, vdist, and vec2.
Referenced by bot_serverframe().
| spawnfunc | ( | waypoint | ) |
Definition at line 1292 of file waypoints.qc.
References g_waypoints, IL_PUSH(), origin, and waypoint_clearlinks().
Definition at line 1133 of file waypoints.qc.
References entity(), 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(), waypoint_spawn_fromeditor(), and waypoint_think().
Definition at line 1088 of file waypoints.qc.
References entity(), waypoint_getlinkcost(), waypoint_islinked(), WAYPOINTFLAG_JUMP, WAYPOINTFLAG_SUPPORT, and WPFLAGMASK_NORELINK.
Referenced by waypoint_addlink().
Definition at line 1253 of file waypoints.qc.
References entity(), and NULL.
Referenced by spawnfunc(), waypoint_schedulerelink(), and waypoint_spawn().
Definition at line 1960 of file waypoints.qc.
References entity(), MOVE_NOMONSTERS, PL_MAX_CONST, PL_MIN_CONST, trace_endpos, trace_fraction, trace_startsolid, and vector.
Referenced by waypoint_spawnforteleporter_wz().
Definition at line 1581 of file waypoints.qc.
References entity().
Definition at line 1010 of file waypoints.qc.
References autocvar_bot_ai_bunnyhop_skilloffset, autocvar_sv_maxspeed, and skill.
Referenced by func_ladder_init(), navigation_routerating(), and waypoint_gettravelcost().
Definition at line 1065 of file waypoints.qc.
References bound(), entity(), vector, and waypoint_gettravelcost().
Referenced by waypoint_addlink_customcost().
Definition at line 953 of file waypoints.qc.
References entity().
Referenced by waypoint_islinked(), and waypoint_removelink().
Definition at line 1028 of file waypoints.qc.
References autocvar_sv_gravity, entity(), height, jumpheight_time, jumpheight_vec, navigation_check_submerged_state(), sqrt(), vec2, vector, vlen(), waypoint_getlinearcost(), waypoint_getlinearcost_crouched(), waypoint_getlinearcost_underwater(), WAYPOINTFLAG_CROUCH, and WAYPOINTFLAG_JUMP.
Referenced by navigation_markroutes_checkwaypoint(), and waypoint_getlinkcost().
Definition at line 276 of file waypoints.qc.
References entity(), and NULL.
Referenced by waypoint_get_type_name(), waypoint_remove_fromeditor(), waypoint_save_hardwiredlinks(), and waypoint_setupmodel().
Definition at line 283 of file waypoints.qc.
References entity().
Referenced by havocbot_checkdanger(), havocbot_movetogoal(), waypoint_remove(), waypoint_save_hardwiredlinks(), waypoint_showlink(), and waypoint_spawn_fromeditor().
Definition at line 966 of file waypoints.qc.
References entity(), and waypoint_getlinknum().
Referenced by waypoint_addlink_customcost(), waypoint_remove(), waypoint_showlinks_to(), and waypoint_spawn_fromeditor().
| void waypoint_load_hardwiredlinks | ( | ) |
Definition at line 1465 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 1317 of file waypoints.qc.
References argv(), 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 1837 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 301 of file waypoints.qc.
References entity(), and waypoint_setupmodel().
Referenced by waypoint_load_hardwiredlinks(), and waypoint_spawn_fromeditor().
Definition at line 819 of file waypoints.qc.
Referenced by waypoint_spawn_fromeditor().
Definition at line 838 of file waypoints.qc.
Definition at line 905 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 1716 of file waypoints.qc.
References 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 1755 of file waypoints.qc.
Definition at line 1273 of file waypoints.qc.
Referenced by botframe_autowaypoints_createwp(), waypoint_remove(), waypoint_removelink(), waypoint_schedulerelinkall(), waypoint_spawn_fromeditor(), and waypoint_spawnpersonal().
| void waypoint_schedulerelinkall | ( | ) |
Definition at line 1304 of file waypoints.qc.
Referenced by waypoint_load_links().
Definition at line 433 of file waypoints.qc.
Referenced by 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 568 of file waypoints.qc.
Referenced by waypoint_spawn_fromeditor().
Definition at line 2002 of file waypoints.qc.
Definition at line 1973 of file waypoints.qc.
Referenced by waypoint_spawnforitem().
| void waypoint_spawnforteleporter | ( | entity | e, |
| vector | destination, | ||
| float | timetaken, | ||
| entity | tracetest_ent ) |
Definition at line 2064 of file waypoints.qc.
Definition at line 2026 of file waypoints.qc.
Definition at line 2070 of file waypoints.qc.
References entity(), NULL, vector, waypoint_fixorigin, waypoint_schedulerelink(), waypoint_spawn(), WAYPOINTFLAG_GENERATED, and WAYPOINTFLAG_PERSONAL.
Referenced by havocbot_moveto().
Definition at line 1147 of file waypoints.qc.
References absmax, absmin, autocvar_bot_navigation_ignoreplayers, bot_calculate_stepheightvec(), bot_navigation_movemode, boxesoverlap(), checkpvs(), DPCONTENTS_BODY, DPCONTENTS_BOTCLIP, DPCONTENTS_PLAYERCLIP, DPCONTENTS_SOLID, dphitcontentsmask, entity(), func_null(), g_waypoints, IL_EACH, MOVE_NOMONSTERS, MOVE_NORMAL, navigation_testtracewalk, nextthink, origin, PL_CROUCH_MAX_CONST, PL_CROUCH_MIN_CONST, PL_MAX_CONST, PL_MIN_CONST, relink_lengthculled, relink_pvsculled, relink_total, relink_walkculled, set_tracewalk_dest_2(), setthink, tracewalk(), tracewalk_dest, tracewalk_dest_height, vdist, vector, waypoint_addlink(), waypoint_restore_hardwiredlinks(), WAYPOINTFLAG_CROUCH, WAYPOINTFLAG_JUMP, WAYPOINTFLAG_SUPPORT, WPFLAGMASK_NORELINK, wpflags, wpisbox, and wplinked.
Referenced by waypoint_schedulerelink().
Definition at line 318 of file waypoints.qc.
References entity(), NULL, and waypoint_setupmodel().
Referenced by waypoint_remove(), and waypoint_spawn_fromeditor().
Definition at line 28 of file waypoints.qc.
| void waypoint_updatecost_foralllinks | ( | ) |
Definition at line 971 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().
| 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(), and waypoint_think().
| float relink_total |
Definition at line 20 of file waypoints.qh.
Referenced by waypoint_schedulerelinkall(), and waypoint_think().
| float relink_walkculled |
Definition at line 20 of file waypoints.qh.
Referenced by waypoint_schedulerelinkall(), and waypoint_think().
| 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(), ClientConnect(), navigation_findnearestwaypoint_withdist_except(), navigation_routetogoal(), show_entnum(), STATIC_INIT(), waypoint_loadall(), and waypoint_setupmodel().
| 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.
Referenced by show_entnum().
| 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.