|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Definition at line 134 of file aim.qc.
References bot_1st_order_aimfilter, bot_2nd_order_aimfilter, bot_3th_order_aimfilter, bot_4th_order_aimfilter, bot_5th_order_aimfilter, bot_aimdir_executed, bot_aimthinktime, bot_badaimtime, bot_firetimer, bot_mouseaim, bot_olddesiredang, bot_prevaimtime, entity(), time, and v_angle.
Referenced by MUTATOR_HOOKFUNCTION(), ons_Teleport(), PutPlayerInServer(), TeleportPlayer(), and WarpZone_TeleportPlayer().
Definition at line 469 of file bot.qc.
Definition at line 331 of file scripting.qc.
References BOT_CMD_AIM, BOT_CMD_AIMTARGET, BOT_CMD_BARRIER, BOT_CMD_CC, BOT_CMD_CONTINUE, BOT_CMD_COUNTER, BOT_CMD_DEBUG_ASSERT_CANFIRE, BOT_CMD_IF, BOT_CMD_MOVETO, BOT_CMD_MOVETOTARGET, BOT_CMD_PARAMETER_FLOAT, BOT_CMD_PARAMETER_STRING, BOT_CMD_PARAMETER_VECTOR, bot_cmd_parm_type, BOT_CMD_PAUSE, BOT_CMD_PRESSKEY, BOT_CMD_RELEASEKEY, BOT_CMD_RESETAIM, BOT_CMD_RESETGOAL, BOT_CMD_SOUND, bot_cmd_string, BOT_CMD_TURN, BOT_CMD_WAIT, BOT_CMD_WAIT_UNTIL, bot_cmds_initialized, bot_commands_init(), and LOG_HELP.
Referenced by GameCommand_bot_cmd().
| void bot_endgame | ( | ) |
Definition at line 412 of file bot.qc.
References bot_list, bot_relinkplayerlist(), entity(), and setcolor.
Referenced by Shutdown().
Definition at line 623 of file bot.qc.
References autocvar_bot_join_empty, autocvar_bot_number, autocvar_bot_vs_human, autocvar_minplayers, autocvar_minplayers_per_team, AVAILABLE_TEAMS, bot_removenewest(), bot_spawn(), botframe_nextthink, bots_would_leave, bprint(), ceil(), currentbots, fabs(), floor(), FOREACH_CLIENT, GetPlayerLimit(), IS_PLAYER, IS_REAL_CLIENT, M_ARGV, max(), maxclients, min(), MUTATOR_CALLHOOK, NULL, teamplay, and time.
Referenced by GameCommand_bot_cmd(), and GameCommand_setbots().
| void bot_list_commands | ( | ) |
Definition at line 444 of file scripting.qc.
References BOT_CMD_COUNTER, BOT_CMD_PARAMETER_FLOAT, BOT_CMD_PARAMETER_STRING, BOT_CMD_PARAMETER_VECTOR, bot_cmd_parm_type, bot_cmd_string, bot_cmds_initialized, bot_commands_init(), and LOG_HELP.
Referenced by GameCommand_bot_cmd().
Definition at line 30 of file scripting.qc.
References buf_create, entity(), precache_sound(), strstrofs, and substring().
Referenced by GameCommand_bot_cmd().
| void bot_relinkplayerlist | ( | ) |
Definition at line 424 of file bot.qc.
References bot_ispaused(), bot_list, bot_strategytoken, bot_strategytoken_taken, currentbots, entity(), FOREACH_CLIENT, IS_BOT_CLIENT, IS_OBSERVER, NULL, and player_count.
Referenced by bot_cmd_continue(), bot_cmd_pause(), ClientConnect(), ClientDisconnect(), MUTATOR_HOOKFUNCTION(), PutClientInServer(), and PutObserverInServer().
| void bot_resetqueues | ( | ) |
Definition at line 1165 of file scripting.qc.
References FOREACH_CLIENT.
Referenced by GameCommand_bot_cmd().
| void bot_serverframe | ( | ) |
Definition at line 689 of file bot.qc.
References autocvar_bot_ai_bunnyhop_skilloffset, autocvar_bot_ai_dangerdetectioninterval, autocvar_bot_ai_dangerdetectionupdates, autocvar_bot_navigation_ignoreplayers, autocvar_g_waypointeditor_auto, autocvar_skill, autocvar_skill_auto, autocvar_waypoint_benchmark, autoskill(), autoskill_nextthink, bot_calculate_stepheightvec(), bot_custom_weapon_priority_setup(), bot_fixcount(), bot_list, bot_navigation_movemode, bot_strategytoken, bot_strategytoken_taken, botframe_autowaypoints(), botframe_cachedwaypointlinks, botframe_loadedforcedlinks, botframe_nextdangertime, botframe_nextthink, botframe_showwaypointlinks(), botframe_spawnedwaypoints, botframe_updatedangerousobjects(), currentbots, entity(), FOREACH_CLIENT, g_waypoints, game_stopped, IL_EACH, intermission_running, IS_BOT_CLIENT, IS_DEAD, IS_REAL_CLIENT, localcmd(), MOVE_NOMONSTERS, MOVE_NORMAL, NULL, skill, STAT, time, waypoint_load_hardwiredlinks(), waypoint_load_links(), waypoint_loadall(), waypoint_updatecost_foralllinks(), and waypointeditor_enabled.
Referenced by StartFrame().
Definition at line 97 of file aim.qc.
References autocvar_bot_ignore_bots, autocvar_bot_typefrag, entity(), FL_NOTARGET, IS_BOT_CLIENT, IS_DEAD, MUTATOR_CALLHOOK, PHYS_INPUT_BUTTON_CHAT, and teamplay.
Referenced by havocbot_chooseenemy(), and havocbot_goalrating_enemyplayers().
Definition at line 62 of file bot.qc.
References AI_STATUS_STUCK, aistatus, angles, autocvar_bot_ai_thinkinterval, autocvar_bot_god, autocvar_g_campaign, bot_aiskill, bot_jump_time, bot_nextthink, bot_pingskill, bot_waypoint_queue_owner, bound(), campaign_bots_may_start, CS(), DEAD_DEAD, DEAD_DYING, deadflag, dmg_inflictor, dmg_save, dmg_take, entity(), fixangle, FL_GODMODE, flags, game_starttime, IS_DEAD, IS_OBSERVER, IS_PLAYER, max(), min(), navigation_goalrating_timeout(), navigation_goalrating_timeout_force(), navigation_unstuck(), NULL, PHYS_INPUT_BUTTON_ATCK, PHYS_INPUT_BUTTON_ATCK2, PHYS_INPUT_BUTTON_CHAT, PHYS_INPUT_BUTTON_CROUCH, PHYS_INPUT_BUTTON_DRAG, PHYS_INPUT_BUTTON_HOOK, PHYS_INPUT_BUTTON_INFO, PHYS_INPUT_BUTTON_JUMP, PHYS_INPUT_BUTTON_USE, PHYS_INPUT_BUTTON_ZOOM, random(), ready, ReadyCount(), skill, SUPERBOT, time, v_angle, and warmup_stage.
Referenced by sys_phys_ai().
Definition at line 235 of file scripting.qc.
References entity(), FOREACH_CLIENT, IS_BOT_CLIENT, name, and NULL.
Referenced by GameCommand_bot_cmd().
Definition at line 246 of file scripting.qc.
References entity(), findchainflags(), FL_CLIENT, flags, IS_BOT_CLIENT, NULL, and number.
Referenced by GameCommand_bot_cmd().
Definition at line 104 of file navigation.qc.
References bound(), dest, entity(), org, and vector.
Referenced by havocbot_ai(), havocbot_bunnyhop(), havocbot_moveto(), and havocbot_movetogoal().
Definition at line 176 of file roles.qc.
Referenced by havocbot_role_generic().
| bool havocbot_goalrating_item_pickable_check_players | ( | entity | this, |
| vector | org, | ||
| entity | item, | ||
| vector | item_org ) |
Definition at line 60 of file roles.qc.
References autocvar_bot_ai_friends_aware_pickup_radius, entity(), FLOAT_MAX, FOREACH_CLIENT, havocbot_goalrating_item_can_be_left_to_teammate(), IS_DEAD, IS_PLAYER, IS_REAL_CLIENT, org, STAT, teamplay, vector, and vlen2.
Referenced by havocbot_goalrating_items(), and navigation_goalrating_timeout_can_be_anticipated().
Definition at line 106 of file roles.qc.
Referenced by havocbot_role_generic().
Definition at line 16 of file roles.qc.
References entity(), g_waypoints, IL_EACH, max(), navigation_bestgoal, org, random(), vdist, vector, and WAYPOINTFLAG_TELEPORT.
Referenced by havocbot_role_dom(), havocbot_role_ft_freeing(), havocbot_role_ft_offense(), havocbot_role_generic(), havocbot_role_ka_carrier(), and havocbot_role_tka_carrier().
Definition at line 77 of file navigation.qc.
References bot_basewaypoint, entity(), navigation_dynamicgoal, nearestwaypoint, nearestwaypointtimeout, and time.
Referenced by ctf_DelayedFlagSetup(), ka_SpawnBalls(), kh_Key_Spawn(), PutPlayerInServer(), tka_SpawnBalls(), and W_ThrowNewWeapon().
Definition at line 87 of file navigation.qc.
References entity(), nearestwaypoint, nearestwaypointtimeout, and time.
Referenced by ctf_Handle_Throw(), ka_DropEvent(), ka_RespawnBall(), kh_Key_Detach(), tka_DropEvent(), and tka_RespawnBall().
Definition at line 96 of file navigation.qc.
References bot_basewaypoint, entity(), nearestwaypoint, and nearestwaypointtimeout.
Referenced by ctf_RespawnFlag(), ka_TouchEvent(), kh_Key_Attach(), and tka_TouchEvent().
Definition at line 1012 of file navigation.qc.
References autocvar_g_waypointeditor_auto, entity(), navigation_findnearestwaypoint_withdist_except(), NULL, and WAYPOINTFLAG_PROTECTED.
Referenced by waypoint_remove_fromeditor(), and waypoint_unreachable().
Definition at line 1846 of file navigation.qc.
References AI_STATUS_STUCK, aistatus, autocvar_bot_wander_enable, boolean, entity(), goalcurrent, goalentity, goalentity_shouldbefrozen, goalstack31, LOG_DEBUG, navigation_bestgoal, navigation_poproute(), navigation_routetogoal(), netname, NULL, origin, and STAT.
Referenced by havocbot_moveto_refresh_route(), havocbot_role_ast_defense(), havocbot_role_ast_offense(), havocbot_role_ctf_carrier(), havocbot_role_ctf_defense(), havocbot_role_ctf_escort(), havocbot_role_ctf_middle(), havocbot_role_ctf_offense(), havocbot_role_ctf_retriever(), havocbot_role_cts(), havocbot_role_dom(), havocbot_role_ft_freeing(), havocbot_role_ft_offense(), havocbot_role_generic(), havocbot_role_ka_carrier(), havocbot_role_ka_collector(), havocbot_role_kh_carrier(), havocbot_role_kh_defense(), havocbot_role_kh_freelancer(), havocbot_role_kh_offense(), havocbot_role_ons_offense(), havocbot_role_race(), havocbot_role_tka_carrier(), and havocbot_role_tka_collector().
Definition at line 1831 of file navigation.qc.
References AI_STATUS_STUCK, aistatus, entity(), goalstack31, navigation_bestgoal, navigation_bestrating, navigation_clearroute(), navigation_get_really_close_waypoint(), navigation_jetpack_goal, navigation_markroutes(), and NULL.
Referenced by havocbot_moveto_refresh_route(), havocbot_role_ast_defense(), havocbot_role_ast_offense(), havocbot_role_ctf_carrier(), havocbot_role_ctf_defense(), havocbot_role_ctf_escort(), havocbot_role_ctf_middle(), havocbot_role_ctf_offense(), havocbot_role_ctf_retriever(), havocbot_role_cts(), havocbot_role_dom(), havocbot_role_ft_freeing(), havocbot_role_ft_offense(), havocbot_role_generic(), havocbot_role_ka_carrier(), havocbot_role_ka_collector(), havocbot_role_kh_carrier(), havocbot_role_kh_defense(), havocbot_role_kh_freelancer(), havocbot_role_kh_offense(), havocbot_role_ons_offense(), havocbot_role_race(), havocbot_role_tka_carrier(), and havocbot_role_tka_collector().
Definition at line 44 of file navigation.qc.
References bot_strategytime, entity(), and time.
Referenced by bot_think(), havocbot_role_ast_defense(), havocbot_role_ast_offense(), havocbot_role_ctf_carrier(), havocbot_role_ctf_defense(), havocbot_role_ctf_escort(), havocbot_role_ctf_middle(), havocbot_role_ctf_offense(), havocbot_role_ctf_retriever(), havocbot_role_cts(), havocbot_role_dom(), havocbot_role_ft_freeing(), havocbot_role_ft_offense(), havocbot_role_generic(), havocbot_role_ka_carrier(), havocbot_role_ka_collector(), havocbot_role_kh_carrier(), havocbot_role_kh_defense(), havocbot_role_kh_freelancer(), havocbot_role_kh_offense(), havocbot_role_ons_offense(), havocbot_role_race(), havocbot_role_tka_carrier(), and havocbot_role_tka_collector().
Definition at line 56 of file navigation.qc.
References autocvar_bot_ai_ignoregoal_timeout, autocvar_sv_maxspeed, bot_strategytime, entity(), goalentity, havocbot_goalrating_item_pickable_check_players(), ignoregoal, ignoregoaltime, IS_MOVABLE, origin, time, vdist, and vector.
Referenced by havocbot_movetogoal().
Definition at line 36 of file navigation.qc.
References bot_strategytime, entity(), and time.
Referenced by havocbot_movetogoal(), havocbot_role_ctf_escort(), havocbot_role_ctf_setrole(), havocbot_role_ka_carrier(), havocbot_role_ka_collector(), havocbot_role_tka_carrier(), havocbot_role_tka_collector(), navigation_goalrating_timeout_force(), and navigation_unstuck().
Definition at line 50 of file navigation.qc.
References bot_strategytime, entity(), max(), and time.
Definition at line 29 of file navigation.qc.
References entity(), and navigation_goalrating_timeout_expire().
Referenced by bot_think(), havocbot_ai(), havocbot_chooserole(), havocbot_movetogoal(), havocbot_role_ctf_retriever(), and havocbot_role_ctf_setrole().
Definition at line 20 of file navigation.qc.
References autocvar_bot_ai_strategyinterval, autocvar_bot_ai_strategyinterval_movingtarget, bot_strategytime, entity(), goalentity, IS_MOVABLE, and time.
Referenced by havocbot_role_ast_defense(), havocbot_role_ast_offense(), havocbot_role_ctf_carrier(), havocbot_role_ctf_defense(), havocbot_role_ctf_escort(), havocbot_role_ctf_middle(), havocbot_role_ctf_offense(), havocbot_role_ctf_retriever(), havocbot_role_cts(), havocbot_role_dom(), havocbot_role_ft_freeing(), havocbot_role_ft_offense(), havocbot_role_generic(), havocbot_role_ka_carrier(), havocbot_role_ka_collector(), havocbot_role_kh_carrier(), havocbot_role_kh_defense(), havocbot_role_kh_freelancer(), havocbot_role_kh_offense(), havocbot_role_ons_offense(), havocbot_role_race(), havocbot_role_tka_carrier(), and havocbot_role_tka_collector().
Definition at line 1082 of file navigation.qc.
References entity(), g_waypoints, IL_EACH, IS_ONGROUND, navigation_markroutes_nearestwaypoints(), NULL, and vector.
Referenced by waypoint_unreachable().
Definition at line 1172 of file navigation.qc.
References entity(), error, g_waypoints, IL_EACH, NULL, and vector.
Referenced by waypoint_unreachable().
Definition at line 1221 of file navigation.qc.
References CONTENT_LAVA, CONTENT_SLIME, CONTENT_SOLID, CONTENT_WATER, entity(), FL_PARTIALGROUND, FLOAT_MAX, g_waypoints, IL_EACH, IS_ONGROUND, IS_PLAYER, NULL, STAT, trace_endpos, tracebox_hits_trigger_hurt(), vdist, WATERLEVEL_WETFEET, waypoint_getlinearcost(), and WAYPOINTFLAG_TELEPORT.
Referenced by havocbot_goalrating_ctf_droppedflags(), havocbot_goalrating_ctf_enemybase(), havocbot_goalrating_ctf_enemyflag(), havocbot_goalrating_ctf_ourbase(), havocbot_goalrating_ctf_ourstolenflag(), havocbot_goalrating_enemyplayers(), havocbot_goalrating_ft_freeplayers(), havocbot_goalrating_items(), havocbot_goalrating_kh(), havocbot_goalrating_ons_controlpoints_attack(), havocbot_goalrating_ons_generator_attack(), havocbot_moveto_refresh_route(), havocbot_role_cts(), and havocbot_role_race().
Definition at line 120 of file navigation.qc.
References bound(), entity(), IS_MONSTER, IS_ONGROUND, IS_PLAYER, MOVE_NORMAL, org, PL_MAX_CONST, PL_MIN_CONST, trace_endpos, trace_startsolid, tracewalk_dest, tracewalk_dest_height, vec2, and vector.
Referenced by havocbot_movetogoal(), navigation_routetogoal(), navigation_shortenpath(), and navigation_unstuck().
Definition at line 178 of file navigation.qc.
References bound(), entity(), org, tracewalk_dest, tracewalk_dest_height, and vector.
Referenced by waypoint_think().
| STATIC_INIT | ( | botapi | ) |
Definition at line 151 of file api.qh.
References g_bot_dodge, g_bot_targets, g_waypoints, and IL_NEW.
| bool tracewalk | ( | entity | e, |
| vector | start, | ||
| vector | m1, | ||
| vector | m2, | ||
| vector | end, | ||
| float | end_height, | ||
| float | movemode ) |
Definition at line 274 of file navigation.qc.
References autocvar_bot_debug_tracewalk, bound(), DEBUG_NODE_FAIL, DEBUG_NODE_SUCCESS, DEBUG_NODE_WARNING, debugnode(), debugnodestatus(), debugresetnodes(), entity(), eZ, IN_LAVA, jumpheight_vec, jumpstepheightvec, MOVE_NOMONSTERS, NAV_SWIM_ONWATER, NAV_SWIM_UNDERWATER, NAV_WALK, navigation_checkladders(), normalize(), org, RESURFACE_LIMITED, stepheightvec, SUBMERGED, trace_endpos, trace_ent, trace_fraction, trace_startsolid, vec2, vector, vlen(), and WETFEET.
Referenced by GameCommand_trace(), havocbot_movetogoal(), navigation_routetogoal(), and waypoint_think().
Definition at line 137 of file waypoints.qc.
References argv(), cvar_set(), cvar_string(), entity(), fabs(), ftos(), sprint(), stov(), strcat(), and vector.
Referenced by ClientCommand_wpeditor().
Definition at line 169 of file waypoints.qc.
References argv(), cvar_set(), cvar_string(), entity(), fabs(), ftos(), havocbot_middlepoint, havocbot_middlepoint_radius, org, sprint(), stov(), strcat(), vec2, and vector.
Referenced by ClientCommand_wpeditor().
Definition at line 270 of file waypoints.qc.
References crosshair_trace_waypoints(), entity(), and trace_ent.
Referenced by ClientCommand_wpeditor().
Definition at line 819 of file waypoints.qc.
References entity(), g_waypoints, IL_EACH, NULL, waypoint_is_hardwiredlink(), waypoint_islinked(), waypoint_removelink(), waypoint_schedulerelink(), and waypoint_unmark_hardwiredlink().
Referenced by havocbot_moveto().
Definition at line 838 of file waypoints.qc.
References autocvar_g_waypointeditor_symmetrical, autocvar_g_waypointeditor_symmetrical_order, entity(), FOREACH_ENTITY_CLASS, havocbot_symmetry_origin_order, LABEL, LOG_INFO, LOG_INFOF, navigation_findnearestwaypoint(), NULL, org, start_wp_is_spawned, vector, waypoint_clear_start_wp_globals(), waypoint_getSymmetricalPoint(), waypoint_has_hardwiredlinks(), WAYPOINT_VERSION, waypoint_version_loaded, and WAYPOINTFLAG_GENERATED.
Referenced by ClientCommand_wpeditor().
| void waypoint_saveall | ( | ) |
Definition at line 1755 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.
Referenced by ClientCommand_wpeditor().
Definition at line 1273 of file waypoints.qc.
References EF_LOWPRECISION, entity(), NULL, setthink, time, vdist, waypoint_clearlinks(), waypoint_setupmodel(), waypoint_think(), WAYPOINTFLAG_PERSONAL, and WPFLAGMASK_NORELINK.
| void waypoint_schedulerelinkall | ( | ) |
Definition at line 1304 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 ClientCommand_wpeditor().
Definition at line 433 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, move_out_of_solid, NULL, PL_CROUCH_MAX_CONST, PL_CROUCH_MIN_CONST, PL_MAX_CONST, PL_MIN_CONST, SOLID_TRIGGER, time, vector, vtos(), waypoint_clearlinks(), waypoint_get(), waypoint_setupmodel(), WAYPOINTFLAG_CROUCH, WAYPOINTFLAG_GENERATED, WAYPOINTFLAG_PERSONAL, and WPFLAGMASK_NORELINK.
Referenced by botframe_autowaypoints_createwp().
| 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.
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, org, PHYS_INPUT_BUTTON_CROUCH, PL_MAX_CONST, PL_MIN_CONST, 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 ClientCommand_wpeditor().
Definition at line 2002 of file waypoints.qc.
References bot_waypoints_for_items, entity(), and waypoint_spawnforitem_force().
Referenced by dom_controlpoint_setup(), and StartItem().
Definition at line 1973 of file waypoints.qc.
References boxesoverlap(), entity(), g_waypoints, IL_EACH, NULL, org, vdist, vector, waypoint_fixorigin, waypoint_spawn(), WAYPOINTFLAG_GENERATED, and WAYPOINTFLAG_ITEM.
Referenced by ctf_DelayedFlagSetup(), ons_DelayedGeneratorSetup(), spawnfunc(), and target_checkpoint_setup().
| void waypoint_spawnforteleporter | ( | entity | e, |
| vector | destination, | ||
| float | timetaken, | ||
| entity | tracetest_ent ) |
Definition at line 2064 of file waypoints.qc.
References entity(), PL_MAX_CONST, PL_MIN_CONST, vector, waypoint_fixorigin, waypoint_spawnforteleporter_boxes(), and WAYPOINTFLAG_TELEPORT.
Referenced by teleport_findtarget(), and trigger_push_test().
Definition at line 2026 of file waypoints.qc.
References dest, entity(), makevectors, v_forward, v_right, v_up, vector, waypoint_fixorigin_down_dir(), waypoint_spawnforteleporter_boxes(), WAYPOINTFLAG_JUMP, and WAYPOINTFLAG_TELEPORT.
Referenced by WarpZone_PostInitialize_Callback().
Definition at line 532 of file waypoints.qc.
References crosshair_trace_waypoints(), entity(), err, LOG_INFO, LOG_INFOF, start_wp_is_hardwired, start_wp_is_spawned, start_wp_origin, trace_ent, vtos(), and WPFLAGMASK_NORELINK.
Referenced by ClientCommand_wpeditor().
Definition at line 28 of file waypoints.qc.
References EF_BLUE, EF_NODEPTHTEST, EF_RED, entity(), etos(), eZ, g_items, g_spawnpoints, g_waypoints, IL_EACH, LOG_INFO, LOG_INFOF, MOVE_NOMONSTERS, navigation_findnearestwaypoint(), navigation_markroutes(), navigation_markroutes_inverted(), NULL, org, PL_MAX_CONST, PL_MIN_CONST, SOLID_TRIGGER, spawnpointmodel, trace_endpos, vector, and vtos().
Referenced by ClientCommand_wpeditor().
| bool autocvar_g_waypoints_for_items |
Definition at line 8 of file api.qh.
Referenced by spawnfunc().
| float bot_attack |
Definition at line 38 of file api.qh.
Referenced by fd_secret_use(), func_breakable_behave_destroyed(), func_breakable_behave_restore(), func_breakable_setup(), Monster_Spawn(), ons_GeneratorReset(), PutObserverInServer(), PutPlayerInServer(), turret_initialize(), vehicle_initialize(), and vehicles_spawn().
| entity bot_basewaypoint |
Definition at line 106 of file api.qh.
Referenced by navigation_dynamicgoal_init(), navigation_dynamicgoal_unset(), and ons_DelayedGeneratorSetup().
| float bot_custom_weapon |
Definition at line 31 of file api.qh.
Referenced by bot_custom_weapon_priority_setup(), and havocbot_chooseweapon().
| float bot_dodge |
Definition at line 40 of file api.qh.
Referenced by havocbot_dodge(), W_Electro_Orb_Stick(), and W_MineLayer_Stick().
| float bot_dodgerating |
Definition at line 39 of file api.qh.
Referenced by W_Electro_Orb_Stick(), and W_MineLayer_Stick().
| float bot_forced_team |
Definition at line 41 of file api.qh.
Referenced by bot_setnameandstuff(), and PutPlayerInServer().
| float bot_moveskill |
Definition at line 42 of file api.qh.
Referenced by bot_setnameandstuff(), havocbot_keyboard_movement(), and havocbot_movetogoal().
| float bot_pickup |
Definition at line 43 of file api.qh.
Referenced by buff_Init(), func_ladder_init(), and StartItem().
| float bot_tracewalk_time |
Definition at line 37 of file api.qh.
Referenced by havocbot_movetogoal(), and navigation_shortenpath().
| bool bot_waypoints_for_items |
Definition at line 9 of file api.qh.
Referenced by spawnfunc(), and waypoint_spawnforitem().
| float bot_weapons_close[REGISTRY_MAX(Weapons)] |
Definition at line 32 of file api.qh.
Referenced by havocbot_chooseweapon().
| float bot_weapons_far[REGISTRY_MAX(Weapons)] |
Definition at line 33 of file api.qh.
Referenced by havocbot_chooseweapon().
| float bot_weapons_mid[REGISTRY_MAX(Weapons)] |
Definition at line 34 of file api.qh.
Referenced by havocbot_chooseweapon().
| int bots_would_leave |
how many bots would leave so humans can replace them
Definition at line 101 of file api.qh.
Referenced by bot_fixcount(), nJoinAllowed(), TeamBalance_AreEqual(), TeamBalance_CompareTeamsInternal(), and TeamBalance_QueuedPlayersTagIn().
| string cleanname |
Definition at line 45 of file api.qh.
Referenced by bot_clientdisconnect(), and bot_setnameandstuff().
| int currentbots |
Definition at line 104 of file api.qh.
Referenced by bot_fixcount(), bot_relinkplayerlist(), bot_serverframe(), bot_spawn(), DoNextMapOverride(), and MapHasRightSize().
| IntrusiveList g_bot_dodge |
Definition at line 150 of file api.qh.
Referenced by botframe_updatedangerousobjects(), FireGrapplingHook(), M_Golem_Attack_Lightning(), M_Mage_Attack_Spike(), M_Spider_Attack_Web(), nade_napalm_ball(), nade_napalm_boom(), STATIC_INIT(), toss_nade(), turret_projectile(), vehicles_projectile(), W_Arc_Attack_Bolt(), W_Arc_Beam(), W_Blaster_Attack(), W_Crylink_Attack(), W_Crylink_Attack2(), W_Devastator_Attack(), W_Electro_Attack_Bolt(), W_Electro_Attack_Orb(), W_Electro_Orb_Stick(), W_Fireball_Attack1(), W_Fireball_Attack2(), W_Hagar_Attack(), W_Hagar_Attack2(), W_Hagar_Attack2_Load_Release(), W_HLAC_Attack(), W_HLAC_Attack2(), W_Hook_Attack2(), W_MineLayer_Attack(), W_MineLayer_Stick(), W_Mortar_Attack(), W_Mortar_Attack2(), W_Nexball_Attack2(), W_OverkillRocketPropelledChainsaw_Attack(), W_Porto_Attack(), W_RocketMinsta_Attack(), W_Seeker_Fire_Flac(), W_Seeker_Fire_Missile(), W_Seeker_Fire_Tag(), and walker_fire_rocket().
| IntrusiveList g_bot_targets |
Definition at line 149 of file api.qh.
Referenced by fd_secret_use(), freezetag_Freeze(), freezetag_Unfreeze(), func_breakable_behave_destroyed(), func_breakable_behave_restore(), havocbot_chooseenemy(), Monster_Spawn(), MUTATOR_HOOKFUNCTION(), ons_ControlPoint_Icon_Spawn(), ons_GeneratorReset(), ons_GeneratorSetup(), onslaught_updatelinks(), PutObserverInServer(), PutPlayerInServer(), race_SendTime(), STATIC_INIT(), turret_initialize(), vehicle_initialize(), and vehicles_spawn().
| IntrusiveList g_waypoints |
Definition at line 148 of file api.qh.
Referenced by bot_serverframe(), botframe_autowaypoints_createwp(), botframe_autowaypoints_fix_from(), botframe_deleteuselesswaypoints(), botframe_updatedangerousobjects(), crosshair_trace_waypoints(), havocbot_ai(), havocbot_goalrating_ons_controlpoints_attack(), havocbot_goalrating_ons_generator_attack(), havocbot_goalrating_waypoints(), havocbot_movetogoal(), navigation_findnearestwaypoint_withdist_except(), navigation_get_really_close_waypoint(), navigation_markroutes(), navigation_markroutes_inverted(), navigation_markroutes_nearestwaypoints(), navigation_routerating(), navigation_unstuck(), pathlib_waypointpath(), spawnfunc(), STATIC_INIT(), waypoint_get(), waypoint_load_links(), waypoint_remove(), waypoint_save_hardwiredlinks(), waypoint_save_links(), waypoint_saveall(), waypoint_schedulerelinkall(), waypoint_showlinks_to(), waypoint_spawn(), waypoint_spawn_fromeditor(), waypoint_spawnforitem_force(), waypoint_think(), waypoint_unreachable(), and waypoint_updatecost_foralllinks().
| float goalentity_lock_timeout |
Definition at line 97 of file api.qh.
Referenced by havocbot_movetogoal(), havocbot_role_ctf_carrier(), havocbot_role_ctf_middle(), navigation_clearroute(), and navigation_poproute().
| vector havocbot_middlepoint |
Definition at line 91 of file api.qh.
Referenced by havocbot_ctf_calculate_middlepoint(), havocbot_ctf_reset_role(), havocbot_role_ctf_middle(), waypoint_getSymmetricalOrigin_cmd(), and waypoint_getSymmetricalPoint().
| float havocbot_middlepoint_radius |
Definition at line 92 of file api.qh.
Referenced by havocbot_ctf_calculate_middlepoint(), havocbot_ctf_reset_role(), havocbot_role_ctf_carrier(), havocbot_role_ctf_defense(), havocbot_role_ctf_middle(), havocbot_role_ctf_retriever(), and waypoint_getSymmetricalOrigin_cmd().
| float havocbot_role_timeout |
Definition at line 46 of file api.qh.
Referenced by havocbot_ctf_reset_role(), havocbot_role_ast_defense(), havocbot_role_ast_offense(), havocbot_role_ast_setrole(), havocbot_role_ctf_defense(), havocbot_role_ctf_escort(), havocbot_role_ctf_middle(), havocbot_role_ctf_offense(), havocbot_role_ctf_retriever(), havocbot_role_ft_freeing(), havocbot_role_ft_offense(), havocbot_role_kh_carrier(), havocbot_role_kh_defense(), havocbot_role_kh_freelancer(), havocbot_role_kh_offense(), havocbot_role_ons_offense(), and havocbot_role_ons_setrole().
| float havocbot_symmetry_axis_m |
Definition at line 93 of file api.qh.
Referenced by havocbot_ctf_calculate_middlepoint(), and waypoint_getSymmetricalPoint().
| float havocbot_symmetry_axis_q |
Definition at line 94 of file api.qh.
Referenced by havocbot_ctf_calculate_middlepoint(), and waypoint_getSymmetricalPoint().
| float havocbot_symmetry_origin_order |
Definition at line 95 of file api.qh.
Referenced by havocbot_ctf_calculate_middlepoint(), waypoint_remove_fromeditor(), and waypoint_spawn_fromeditor().
| entity ignoregoal |
Definition at line 99 of file api.qh.
Referenced by havocbot_goalrating_items(), havocbot_movetogoal(), and navigation_goalrating_timeout_can_be_anticipated().
| float ignoregoaltime |
Definition at line 98 of file api.qh.
Referenced by havocbot_goalrating_items(), havocbot_movetogoal(), and navigation_goalrating_timeout_can_be_anticipated().
| float isbot |
Definition at line 49 of file api.qh.
Referenced by bot_clientconnect().
| float lastteleporttime |
Definition at line 50 of file api.qh.
Referenced by havocbot_ai(), havocbot_moveto(), navigation_clearroute(), and navigation_poptouchedgoals().
| bool navigation_dynamicgoal |
Definition at line 107 of file api.qh.
Referenced by navigation_dynamicgoal_init().
| entity nearestwaypoint |
Definition at line 54 of file api.qh.
Referenced by navigation_dynamicgoal_init(), navigation_dynamicgoal_set(), navigation_dynamicgoal_unset(), and ons_DelayedGeneratorSetup().
| float nearestwaypointtimeout |
Definition at line 53 of file api.qh.
Referenced by navigation_dynamicgoal_init(), navigation_dynamicgoal_set(), navigation_dynamicgoal_unset(), ons_DelayedGeneratorSetup(), spawnfunc(), and target_checkpoint_setup().
| int player_count |
Definition at line 103 of file api.qh.
Referenced by bot_relinkplayerlist(), CheckRules_World(), ClientConnect(), ClientDisconnect(), DoNextMapOverride(), kh_WaitForPlayers(), MapHasRightSize(), MapVote_Think(), NextLevel(), Pause_TryPause_Dedicated(), spawnfunc(), and WinningConditionHelper().
| float skill |
Definition at line 35 of file api.qh.
Referenced by bot_aim(), bot_aimdir(), bot_serverframe(), bot_think(), havocbot_ai(), havocbot_chooseweapon(), havocbot_chooseweapon_checkreload(), havocbot_goalrating_enemyplayers(), havocbot_keyboard_movement(), havocbot_movetogoal(), PlayerDamage(), PlayerStats_GameReport_AddPlayer(), PlayerStats_PlayerBasic_Handler(), and waypoint_getlinearcost().
Definition at line 22 of file api.qh.
Referenced by havocbot_movetogoal(), waypoint_get_type_name(), waypoint_gettravelcost(), waypoint_setupmodel(), waypoint_spawn(), waypoint_spawn_fromeditor(), and waypoint_think().
Definition at line 21 of file api.qh.
Referenced by waypoint_get_type_name(), waypoint_load_links(), waypoint_save_hardwiredlinks(), waypoint_save_links(), waypoint_setupmodel(), waypoint_showlink(), and waypoint_spawn_fromeditor().
Definition at line 18 of file api.qh.
Referenced by botframe_deleteuselesswaypoints().
Definition at line 11 of file api.qh.
Referenced by havocbot_goalrating_ast_targets(), navigation_unstuck(), waypoint_remove_fromeditor(), waypoint_saveall(), waypoint_setupmodel(), waypoint_spawn(), waypoint_spawnforitem_force(), waypoint_spawnforteleporter_boxes(), and waypoint_spawnpersonal().
Definition at line 12 of file api.qh.
Referenced by botframe_deleteuselesswaypoints(), waypoint_get_type_name(), waypoint_load_links(), waypoint_setupmodel(), and waypoint_spawnforitem_force().
Definition at line 20 of file api.qh.
Referenced by havocbot_ai(), havocbot_bunnyhop(), havocbot_checkdanger(), havocbot_movetogoal(), navigation_findnearestwaypoint_withdist_except(), navigation_get_really_close_waypoint(), navigation_poptouchedgoals(), navigation_shortenpath(), waypoint_addlink(), waypoint_addlink_customcost(), waypoint_get_type_name(), waypoint_gettravelcost(), waypoint_load_hardwiredlinks(), waypoint_removelink(), waypoint_save_hardwiredlinks(), waypoint_save_links(), waypoint_setupmodel(), waypoint_showlink(), waypoint_spawn_fromeditor(), waypoint_spawnforteleporter_wz(), and waypoint_think().
Definition at line 19 of file api.qh.
Referenced by botframe_deleteuselesswaypoints(), func_ladder_init(), havocbot_movetogoal(), waypoint_get_type_name(), and waypoint_setupmodel().
Definition at line 28 of file api.qh.
Referenced by waypoint_loadall().
Definition at line 15 of file api.qh.
Referenced by botframe_deleteuselesswaypoints(), navigation_poptouchedgoals(), navigation_routetogoal(), waypoint_schedulerelink(), waypoint_spawn(), and waypoint_spawnpersonal().
Definition at line 16 of file api.qh.
Referenced by botframe_autowaypoints_fix(), botframe_deleteuselesswaypoints(), and navigation_findnearestwaypoint().
Definition at line 23 of file api.qh.
Referenced by waypoint_addlink(), waypoint_addlink_customcost(), waypoint_get_type_name(), waypoint_load_hardwiredlinks(), waypoint_removelink(), waypoint_save_hardwiredlinks(), waypoint_save_links(), waypoint_setupmodel(), waypoint_showlink(), waypoint_spawn_fromeditor(), and waypoint_think().
Definition at line 13 of file api.qh.
Referenced by botframe_deleteuselesswaypoints(), havocbot_bunnyhop(), havocbot_goalrating_waypoints(), havocbot_moveto(), havocbot_movetogoal(), navigation_findnearestwaypoint_withdist_except(), navigation_get_really_close_waypoint(), navigation_markroutes_checkwaypoint(), navigation_poptouchedgoals(), navigation_routerating(), navigation_routetogoal(), navigation_shortenpath(), waypoint_get_type_name(), waypoint_load_hardwiredlinks(), waypoint_setupmodel(), waypoint_spawn_fromeditor(), waypoint_spawnforteleporter(), waypoint_spawnforteleporter_wz(), and waypoint_updatecost_foralllinks().
Definition at line 17 of file api.qh.
Referenced by botframe_deleteuselesswaypoints().
| const int WPFLAGMASK_NORELINK = (WAYPOINTFLAG_TELEPORT | WAYPOINTFLAG_LADDER | WAYPOINTFLAG_JUMP | WAYPOINTFLAG_CUSTOM_JP | WAYPOINTFLAG_SUPPORT) |
Definition at line 29 of file api.qh.
Referenced by botframe_autowaypoints_fix_from(), navigation_routetogoal(), waypoint_addlink(), waypoint_addlink_customcost(), waypoint_load_hardwiredlinks(), waypoint_removelink(), waypoint_schedulerelink(), waypoint_spawn(), waypoint_spawn_fromeditor(), waypoint_start_hardwiredlink(), and waypoint_think().
| int wpflags |
Definition at line 64 of file api.qh.
Referenced by waypoint_think().