|
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 | IN_LAVA(pos) |
| #define | IN_LIQUID(pos) |
| #define | SUBMERGED(pos) |
| #define | SUPERBOT (skill > 100) |
| #define | WETFEET(pos) |
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 | ) |
Definition at line 84 of file bot.qh.
Referenced by havocbot_goalrating_items(), and tracewalk().
| #define IN_LIQUID | ( | pos | ) |
| #define SUBMERGED | ( | pos | ) |
Definition at line 86 of file bot.qh.
Referenced by navigation_check_submerged_state(), and tracewalk().
| #define SUPERBOT (skill > 100) |
Definition at line 23 of file bot.qh.
Referenced by bot_aimdir(), bot_setnameandstuff(), bot_think(), havocbot_chooseenemy(), havocbot_dodge(), and havocbot_movetogoal().
| #define WETFEET | ( | pos | ) |
Definition at line 569 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 615 of file bot.qc.
References autocvar_sv_gravity, autocvar_sv_jumpvelocity, autocvar_sv_stepheight, jumpheight_time, jumpheight_vec, jumpstepheightvec, and stepheightvec.
Referenced by bot_serverframe(), STATIC_INIT(), and waypoint_think().
Definition at line 469 of file bot.qc.
| void bot_custom_weapon_priority_setup | ( | ) |
Definition at line 351 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 412 of file bot.qc.
Definition at line 623 of file bot.qc.
Referenced by bot_serverframe().
| void bot_relinkplayerlist | ( | ) |
Definition at line 424 of file bot.qc.
Referenced by bot_endgame().
| void bot_removefromlargestteam | ( | ) |
Definition at line 486 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 533 of file bot.qc.
References best, bot_removefromlargestteam(), entity(), FOREACH_CLIENT, NULL, and teamplay.
Referenced by bot_fixcount().
| void bot_serverframe | ( | ) |
Definition at line 689 of file bot.qc.
Definition at line 163 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, AVAILABLE_TEAMS, 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(), SUPERBOT, team, 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 45 of file bot.qc.
References bot_setclientfields(), bot_setnameandstuff(), ClientConnect, currentbots, entity(), NULL, PutClientInServer, Send_Notification(), setItemGroupCount(), and teamplay.
Referenced by bot_fixcount().
Definition at line 62 of file bot.qc.
References entity(), and havocbot_setupbot().
Definition at line 7 of file bot.qh.
Referenced by havocbot_ai(), havocbot_bunnyhop(), and havocbot_movetogoal().
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_checkdanger().
Definition at line 8 of file bot.qh.
Referenced by havocbot_bunnyhop(), havocbot_checkdanger(), 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_checkdanger(), 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 25 of file bot.qh.
Referenced by bot_serverframe().
| float bot_aggresskill |
Definition at line 34 of file bot.qh.
Referenced by bot_aimdir(), and bot_setnameandstuff().
| float bot_aimskill |
Definition at line 37 of file bot.qh.
Referenced by bot_aim(), bot_aimdir(), and bot_setnameandstuff().
| float bot_aiskill |
Definition at line 42 of file bot.qh.
Referenced by bot_setnameandstuff(), and bot_think().
| float bot_config_loaded |
Definition at line 74 of file bot.qh.
Referenced by bot_clientconnect(), and bot_setnameandstuff().
| float bot_distance_close |
Definition at line 48 of file bot.qh.
Referenced by bot_custom_weapon_priority_setup(), and havocbot_chooseweapon().
| float bot_distance_far |
Definition at line 47 of file bot.qh.
Referenced by bot_custom_weapon_priority_setup(), and havocbot_chooseweapon().
| float bot_dodgeskill |
Definition at line 29 of file bot.qh.
Referenced by bot_setnameandstuff(), and havocbot_movetogoal().
| float bot_jump_time |
Definition at line 71 of file bot.qh.
Referenced by bot_think(), havocbot_bunnyhop(), and havocbot_movetogoal().
| entity bot_list |
Definition at line 50 of file bot.qh.
Referenced by bot_endgame(), bot_relinkplayerlist(), and bot_serverframe().
| float bot_mouseskill |
Definition at line 39 of file bot.qh.
Referenced by bot_aimdir(), and bot_setnameandstuff().
| float bot_nextthink |
Definition at line 59 of file bot.qh.
Referenced by bot_clientconnect(), and bot_think().
| float bot_offsetskill |
Definition at line 38 of file bot.qh.
Referenced by bot_aimdir(), and bot_setnameandstuff().
| float bot_pickupbasevalue |
Definition at line 68 of file bot.qh.
Referenced by buff_Init(), and StartItem().
| float bot_pingskill |
Definition at line 31 of file bot.qh.
Referenced by bot_setnameandstuff(), and bot_think().
| float bot_preferredcolors |
Definition at line 62 of file bot.qh.
Referenced by bot_clientconnect(), and bot_setnameandstuff().
| float bot_rangepreference |
Definition at line 35 of file bot.qh.
Referenced by bot_setnameandstuff(), and havocbot_chooseweapon().
| float bot_strategytime |
Definition at line 70 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 77 of file bot.qh.
Referenced by bot_relinkplayerlist(), bot_serverframe(), havocbot_ai(), and navigation_unstuck().
| float bot_strategytoken_taken |
Definition at line 76 of file bot.qh.
Referenced by bot_relinkplayerlist(), bot_serverframe(), havocbot_ai(), and havocbot_moveto().
| float bot_thinkskill |
Definition at line 41 of file bot.qh.
Referenced by bot_aimdir(), and bot_setnameandstuff().
| float bot_weaponskill |
Definition at line 33 of file bot.qh.
Referenced by bot_setnameandstuff(), and havocbot_chooseweapon().
| float botframe_nextdangertime |
Definition at line 81 of file bot.qh.
Referenced by bot_serverframe().
| float botframe_nextthink |
Definition at line 80 of file bot.qh.
Referenced by bot_fixcount(), and bot_serverframe().
| float botframe_spawnedwaypoints |
Definition at line 79 of file bot.qh.
Referenced by bot_serverframe().
| float createdtime |
Definition at line 61 of file bot.qh.
Referenced by bot_clientconnect().
| string netname_freeme |
Definition at line 55 of file bot.qh.
Referenced by bot_clientdisconnect(), and bot_setnameandstuff().
| string playermodel_freeme |
Definition at line 56 of file bot.qh.
Referenced by bot_clientdisconnect(), and bot_setnameandstuff().
| string playerskin_freeme |
Definition at line 57 of file bot.qh.
Referenced by bot_clientdisconnect(), and bot_setnameandstuff().