Xonotic
|
Go to the source code of this file.
Macros | |
#define | IN_LAVA(pos) (_content_type = pointcontents(pos), (_content_type == CONTENT_LAVA || _content_type == CONTENT_SLIME)) |
#define | IN_LIQUID(pos) (_content_type = pointcontents(pos), (_content_type == CONTENT_WATER || _content_type == CONTENT_LAVA || _content_type == CONTENT_SLIME)) |
#define | SUBMERGED(pos) IN_LIQUID(pos + autocvar_sv_player_viewoffset) |
#define | WETFEET(pos) IN_LIQUID(pos + eZ * (m1.z + 1)) |
Functions | |
void | autoskill (float factor) |
void | bot_calculate_stepheightvec () |
void | bot_clientconnect (entity this) |
void | bot_clientdisconnect (entity this) |
void | bot_custom_weapon_priority_setup () |
void | bot_endgame () |
bool | bot_fixcount (bool multiple_per_frame) |
void | bot_relinkplayerlist () |
void | bot_removefromlargestteam () |
void | bot_removenewest () |
void | bot_serverframe () |
void | bot_setnameandstuff (entity this) |
entity | bot_spawn () |
void | bot_think (entity this) |
float (entity player, entity item) bot_pickupevalfunc | |
void (entity this) bot_ai | |
#define IN_LAVA | ( | pos | ) | (_content_type = pointcontents(pos), (_content_type == CONTENT_LAVA || _content_type == CONTENT_SLIME)) |
Definition at line 83 of file bot.qh.
Referenced by havocbot_goalrating_items(), and tracewalk().
#define IN_LIQUID | ( | pos | ) | (_content_type = pointcontents(pos), (_content_type == CONTENT_WATER || _content_type == CONTENT_LAVA || _content_type == CONTENT_SLIME)) |
#define SUBMERGED | ( | pos | ) | IN_LIQUID(pos + autocvar_sv_player_viewoffset) |
Definition at line 85 of file bot.qh.
Referenced by navigation_check_submerged_state(), and tracewalk().
Definition at line 86 of file bot.qh.
Referenced by resurface_limited(), and tracewalk().
Definition at line 537 of file bot.qc.
References autocvar_skill, bprint(), cvar_set(), FOREACH_CLIENT, ftos(), IS_PLAYER, IS_REAL_CLIENT, LOG_DEBUG, max(), and strcat().
Referenced by bot_serverframe().
void bot_calculate_stepheightvec | ( | ) |
Definition at line 583 of file bot.qc.
References jumpheight_time, jumpheight_vec, jumpstepheightvec, and stepheightvec.
Referenced by bot_serverframe(), STATIC_INIT(), and waypoint_think().
Definition at line 426 of file bot.qc.
References bot_config_loaded, bot_forced_team, bot_lagfunc(), bot_nextthink, bot_preferredcolors, bot_setclientfields(), bot_setnameandstuff(), clientcolors, createdtime, havocbot_setupbot(), IS_BOT_CLIENT, isbot, random(), SetPlayerTeam(), TEAM_CHANGE_MANUAL, Team_IsValidIndex(), TeamBalance_JoinBestTeam(), teamplay, and time.
Definition at line 411 of file bot.qc.
References bot_clearqueue(), bot_cmd_current, bot_waypoint_queue_owner, cleanname, IS_BOT_CLIENT, netname_freeme, NULL, playermodel_freeme, playerskin_freeme, and strfree.
void bot_custom_weapon_priority_setup | ( | ) |
Definition at line 308 of file bot.qc.
References argv(), autocvar_bot_ai_custom_weapon_priority_close, autocvar_bot_ai_custom_weapon_priority_distances, autocvar_bot_ai_custom_weapon_priority_far, autocvar_bot_ai_custom_weapon_priority_mid, bot_custom_weapon, bot_distance_close, bot_distance_far, PARSE_WEAPON_PRIORITIES, stof(), strcpy, and tokenizebyseparator.
Referenced by bot_serverframe().
void bot_endgame | ( | ) |
Definition at line 591 of file bot.qc.
References autocvar_bot_join_empty, autocvar_bot_number, autocvar_bot_vs_human, autocvar_minplayers, autocvar_minplayers_per_team, AvailableTeams(), 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 bot_serverframe().
void bot_relinkplayerlist | ( | ) |
Definition at line 381 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_endgame().
void bot_removefromlargestteam | ( | ) |
Definition at line 454 of file bot.qc.
References best, entity(), FOREACH_CLIENT, if(), NULL, Team_IsValidTeam(), TeamBalance_CheckAllowedTeams(), and TeamBalance_GetTeamCounts().
Referenced by bot_removenewest().
void bot_removenewest | ( | ) |
Definition at line 501 of file bot.qc.
References best, bot_removefromlargestteam(), currentbots, entity(), FOREACH_CLIENT, NULL, and teamplay.
Referenced by bot_fixcount().
void bot_serverframe | ( | ) |
Definition at line 658 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, IL_EACH, intermission_running, IS_BOT_CLIENT, IS_DEAD, IS_REAL_CLIENT, localcmd, MOVE_NOMONSTERS, MOVE_NORMAL, NULL, skill, time, waypoint_load_hardwiredlinks(), waypoint_load_links(), waypoint_loadall(), waypoint_updatecost_foralllinks(), and waypointeditor_enabled.
Definition at line 143 of file bot.qc.
References argv(), autocvar_bot_config_file, autocvar_bot_prefix, autocvar_bot_suffix, autocvar_bot_usemodelnames, autocvar_bot_vs_human, autocvar_g_campaign, AvailableTeams(), bot_aggresskill, bot_aimskill, bot_aiskill, bot_config_loaded, bot_dodgeskill, bot_forced_team, bot_mouseskill, bot_moveskill, bot_offsetskill, bot_pingskill, bot_preferredcolors, bot_rangepreference, bot_thinkskill, bot_weaponskill, cleanname, clientcolors, count, entity(), etof(), fclose(), fgets(), FILE_READ, floor(), fopen(), FOREACH_CLIENT, ftos(), havocbot_keyboardskill, IS_BOT_CLIENT, LOG_INFOF, name, netname, netname_freeme, NULL, playermodel, playermodel_freeme, playerskin, playerskin_freeme, random(), RandomSelection_AddString, RandomSelection_chosen_string, RandomSelection_Init(), READSKILL, setcolor, stof(), strcat(), strzone(), substring(), Team_IsValidIndex(), TeamBalance_CheckAllowedTeams(), TeamBalance_Destroy(), TeamBalance_GetNumberOfPlayers(), TeamBalance_GetTeamCounts(), teamplay, and tokenizebyseparator.
Referenced by bot_clientconnect(), and bot_spawn().
entity bot_spawn | ( | ) |
Definition at line 42 of file bot.qc.
References bot_setclientfields(), bot_setnameandstuff(), ClientConnect(), currentbots, entity(), PutClientInServer(), and setItemGroupCount().
Referenced by bot_fixcount().
Definition at line 57 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, fixangle, FL_GODMODE, flags, 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(), skill, time, and v_angle.
void | ( | entity | this | ) |
Definition at line 7 of file bot.qh.
Referenced by havocbot_ai(), and havocbot_bunnyhop().
Definition at line 9 of file bot.qh.
Referenced by havocbot_bunnyhop(), and havocbot_movetogoal().
Definition at line 15 of file bot.qh.
Referenced by havocbot_movetogoal().
Definition at line 16 of file bot.qh.
Referenced by havocbot_movetogoal().
Definition at line 10 of file bot.qh.
Referenced by havocbot_movetogoal().
Definition at line 11 of file bot.qh.
Referenced by havocbot_ai(), and havocbot_movetogoal().
Definition at line 6 of file bot.qh.
Referenced by havocbot_ai(), and havocbot_movetogoal().
Definition at line 8 of file bot.qh.
Referenced by havocbot_bunnyhop(), havocbot_movetogoal(), navigation_get_really_close_waypoint(), and navigation_poptouchedgoals().
Definition at line 17 of file bot.qh.
Referenced by bot_think(), navigation_goalrating_end(), navigation_goalrating_start(), and navigation_unstuck().
Definition at line 13 of file bot.qh.
Referenced by havocbot_moveto(), and navigation_poptouchedgoals().
Definition at line 12 of file bot.qh.
Referenced by havocbot_moveto().
Definition at line 14 of file bot.qh.
Referenced by havocbot_moveto(), and navigation_poptouchedgoals().
int aistatus |
Definition at line 20 of file bot.qh.
Referenced by bot_think(), havocbot_ai(), havocbot_bunnyhop(), havocbot_moveto(), havocbot_movetogoal(), navigation_get_really_close_waypoint(), navigation_goalrating_end(), navigation_goalrating_start(), navigation_poptouchedgoals(), and navigation_unstuck().
float autoskill_nextthink |
Definition at line 23 of file bot.qh.
Referenced by bot_serverframe().
float bot_aggresskill |
Definition at line 32 of file bot.qh.
Referenced by bot_aimdir(), and bot_setnameandstuff().
float bot_aimskill |
Definition at line 35 of file bot.qh.
Referenced by bot_aimdir(), and bot_setnameandstuff().
float bot_aiskill |
Definition at line 40 of file bot.qh.
Referenced by bot_setnameandstuff(), and bot_think().
float bot_canfire |
Definition at line 68 of file bot.qh.
Referenced by bot_lagfunc().
float bot_config_loaded |
Definition at line 73 of file bot.qh.
Referenced by bot_clientconnect(), and bot_setnameandstuff().
float bot_distance_close |
Definition at line 46 of file bot.qh.
Referenced by bot_custom_weapon_priority_setup(), and havocbot_chooseweapon().
float bot_distance_far |
Definition at line 45 of file bot.qh.
Referenced by bot_custom_weapon_priority_setup(), and havocbot_chooseweapon().
float bot_dodgeskill |
Definition at line 27 of file bot.qh.
Referenced by bot_setnameandstuff(), and havocbot_movetogoal().
float bot_jump_time |
Definition at line 70 of file bot.qh.
Referenced by bot_think(), havocbot_bunnyhop(), and havocbot_movetogoal().
entity bot_list |
Definition at line 48 of file bot.qh.
Referenced by bot_endgame(), bot_relinkplayerlist(), and bot_serverframe().
float bot_mouseskill |
Definition at line 37 of file bot.qh.
Referenced by bot_aimdir(), and bot_setnameandstuff().
float bot_nextthink |
Definition at line 57 of file bot.qh.
Referenced by bot_clientconnect(), and bot_think().
float bot_offsetskill |
Definition at line 36 of file bot.qh.
Referenced by bot_aimdir(), and bot_setnameandstuff().
float bot_pickupbasevalue |
Definition at line 66 of file bot.qh.
Referenced by _StartItem(), and buff_Init().
float bot_pingskill |
Definition at line 29 of file bot.qh.
Referenced by bot_setnameandstuff(), and bot_think().
float bot_preferredcolors |
Definition at line 60 of file bot.qh.
Referenced by bot_clientconnect(), and bot_setnameandstuff().
float bot_rangepreference |
Definition at line 33 of file bot.qh.
Referenced by bot_setnameandstuff(), and havocbot_chooseweapon().
float bot_strategytime |
Definition at line 69 of file bot.qh.
Referenced by navigation_goalrating_timeout(), navigation_goalrating_timeout_can_be_anticipated(), navigation_goalrating_timeout_expire(), navigation_goalrating_timeout_extend_if_needed(), and navigation_goalrating_timeout_set().
entity bot_strategytoken |
Definition at line 76 of file bot.qh.
Referenced by bot_relinkplayerlist(), bot_serverframe(), havocbot_ai(), and navigation_unstuck().
float bot_strategytoken_taken |
Definition at line 75 of file bot.qh.
Referenced by bot_relinkplayerlist(), bot_serverframe(), havocbot_ai(), and havocbot_moveto().
float bot_thinkskill |
Definition at line 39 of file bot.qh.
Referenced by bot_aimdir(), and bot_setnameandstuff().
float bot_weaponskill |
Definition at line 31 of file bot.qh.
Referenced by bot_setnameandstuff(), and havocbot_chooseweapon().
float botframe_nextdangertime |
Definition at line 80 of file bot.qh.
Referenced by bot_serverframe().
float botframe_nextthink |
Definition at line 79 of file bot.qh.
Referenced by bot_fixcount(), and bot_serverframe().
float botframe_spawnedwaypoints |
Definition at line 78 of file bot.qh.
Referenced by bot_serverframe().
float createdtime |
Definition at line 59 of file bot.qh.
Referenced by bot_clientconnect().
string netname_freeme |
Definition at line 53 of file bot.qh.
Referenced by bot_clientdisconnect(), and bot_setnameandstuff().
string playermodel_freeme |
Definition at line 54 of file bot.qh.
Referenced by bot_clientdisconnect(), and bot_setnameandstuff().
string playerskin_freeme |
Definition at line 55 of file bot.qh.
Referenced by bot_clientdisconnect(), and bot_setnameandstuff().