Xonotic
|
#include "scripting.qh"
#include <common/gamemodes/gamemode/ctf/sv_ctf.qh>
#include <common/physics/player.qh>
#include <common/state.qh>
#include <common/stats.qh>
#include <common/weapons/_all.qh>
#include <common/wepent.qh>
#include <server/bot/default/bot.qh>
#include <server/bot/default/cvars.qh>
#include <server/weapons/selection.qh>
#include <server/weapons/weaponsystem.qh>
Go to the source code of this file.
Definition at line 21 of file scripting.qc.
References LOG_TRACE.
Referenced by bot_clientdisconnect(), bot_cmd_if(), and bot_dequeuecommand().
Definition at line 730 of file scripting.qc.
References argv(), bot_cmd, bot_cmd_aim_begin, bot_cmd_aim_begintime, bot_cmd_aim_end, bot_cmd_aim_endtime, CMD_STATUS_ERROR, CMD_STATUS_EXECUTING, CMD_STATUS_FINISHED, min(), stof(), time, tokenizebyseparator, and v_angle.
Referenced by bot_cmd_aimtarget(), and bot_execute_commands_once().
Definition at line 781 of file scripting.qc.
References argv(), bot_cmd, bot_cmd_aim(), bot_cmd_aim_begin, bot_cmd_aim_begintime, bot_cmd_aim_end, bot_cmd_aim_endtime, bot_getplace(), CMD_STATUS_ERROR, CMD_STATUS_EXECUTING, CMD_STATUS_FINISHED, entity(), origin, stof(), time, tokenizebyseparator, v, v_angle, vectoangles(), vector(), and view_ofs.
Referenced by bot_execute_commands_once().
Definition at line 531 of file scripting.qc.
References bot_barrier, bot_barriertime, CMD_STATUS_FINISHED, FOREACH_CLIENT, and time.
Referenced by bot_execute_commands_once().
Definition at line 482 of file scripting.qc.
References bot_cmd, CMD_STATUS_FINISHED, and SV_ParseClientCommand().
Referenced by bot_execute_commands_once().
Definition at line 494 of file scripting.qc.
References bot_exec_status, BOT_EXEC_STATUS_PAUSED, bot_relinkplayerlist(), and CMD_STATUS_FINISHED.
Referenced by bot_execute_commands_once().
Definition at line 1075 of file scripting.qc.
References ATTACK_FINISHED, bot_cmd, CMD_STATUS_FINISHED, colormod, ftos(), LOG_INFO, netname, state, time, tuba_note, weaponentities, and WS_READY.
Referenced by bot_execute_commands_once().
Definition at line 706 of file scripting.qc.
References bot_cmd_condition_status, CMD_CONDITION_false_BLOCK, CMD_CONDITION_true_BLOCK, and CMD_STATUS_FINISHED.
Referenced by bot_execute_commands_once().
Definition at line 609 of file scripting.qc.
References cvar(), flagcarried, GetResource(), IS_DIGIT, LOG_INFO, NULL, RES_HEALTH, stof(), strlen(), substring(), velocity, and vlen().
Referenced by bot_cmd_if().
Definition at line 713 of file scripting.qc.
References bot_cmd_condition_status, CMD_CONDITION_NONE, and CMD_STATUS_FINISHED.
Referenced by bot_execute_commands_once().
Definition at line 635 of file scripting.qc.
References bot_clearqueue(), bot_cmd, bot_cmd_condition_status, bot_cmd_eval(), CMD_CONDITION_false, CMD_CONDITION_NONE, CMD_CONDITION_true, CMD_CONDITION_true_BLOCK, CMD_STATUS_ERROR, CMD_STATUS_FINISHED, LOG_INFO, strlen(), strstrofs, and substring().
Referenced by bot_execute_commands_once().
Definition at line 488 of file scripting.qc.
References bot_cmd, CMD_STATUS_FINISHED, and CS().
Referenced by bot_execute_commands_once().
Definition at line 889 of file scripting.qc.
References BOT_CMD_KEY_ATTACK1, BOT_CMD_KEY_ATTACK2, BOT_CMD_KEY_BACKWARD, BOT_CMD_KEY_CHAT, BOT_CMD_KEY_CROUCH, BOT_CMD_KEY_FORWARD, BOT_CMD_KEY_HOOK, BOT_CMD_KEY_JUMP, BOT_CMD_KEY_LEFT, BOT_CMD_KEY_NONE, BOT_CMD_KEY_RIGHT, BOT_CMD_KEY_USE, bot_cmd_keys, and CMD_STATUS_FINISHED.
Referenced by bot_cmd_presskey(), and bot_cmd_releasekey().
Definition at line 1027 of file scripting.qc.
References bot_cmd.
Referenced by bot_execute_commands_once().
Definition at line 1032 of file scripting.qc.
References bot_cmd, bot_getplace(), CMD_STATUS_ERROR, and entity().
Referenced by bot_execute_commands_once().
Definition at line 1008 of file scripting.qc.
References BOT_CMD_KEY_NONE, bot_cmd_keys, bot_exec_status, BOT_EXEC_STATUS_PAUSED, bot_relinkplayerlist(), CMD_STATUS_FINISHED, CS(), 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_JUMP, and PHYS_INPUT_BUTTON_USE.
Referenced by bot_execute_commands_once().
Definition at line 983 of file scripting.qc.
References bot_cmd, bot_cmd_keypress_handler(), and CMD_STATUS_FINISHED.
Referenced by bot_execute_commands_once().
Definition at line 994 of file scripting.qc.
References bot_cmd, and bot_cmd_keypress_handler().
Referenced by bot_execute_commands_once().
Definition at line 719 of file scripting.qc.
References CMD_STATUS_FINISHED, and v_angle.
Referenced by bot_execute_commands_once().
Definition at line 1041 of file scripting.qc.
Referenced by bot_execute_commands_once().
Definition at line 573 of file scripting.qc.
References bot_cmd, client_hasweapon(), CMD_STATUS_ERROR, CMD_STATUS_FINISHED, MAX_WEAPONSLOTS, REGISTRY_GET, weaponentities, and WEP_LAST.
Referenced by bot_execute_commands_once().
Definition at line 1047 of file scripting.qc.
References _sound, argv(), atten, ATTEN_MIN, bot_cmd, CH_WEAPON_B, CMD_STATUS_FINISHED, precache_sound(), stof(), tokenizebyseparator, and VOL_BASE.
Referenced by bot_execute_commands_once().
Definition at line 566 of file scripting.qc.
References bot_cmd, CMD_STATUS_FINISHED, floor(), and v_angle.
Referenced by bot_execute_commands_once().
Definition at line 502 of file scripting.qc.
References bot_cmd, bot_cmd_wait_time, bot_exec_status, BOT_EXEC_STATUS_WAITING, CMD_STATUS_EXECUTING, CMD_STATUS_FINISHED, and time.
Referenced by bot_execute_commands_once().
Definition at line 520 of file scripting.qc.
References bot_barriertime, bot_cmd, bot_exec_status, BOT_EXEC_STATUS_WAITING, CMD_STATUS_EXECUTING, CMD_STATUS_FINISHED, and time.
Referenced by bot_execute_commands_once().
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().
Definition at line 1119 of file scripting.qc.
References bot_cmd, bot_cmd_execution_index, bot_dequeuecommand(), cmd(), and entity().
Referenced by bot_execute_commands_once().
void bot_commands_init | ( | ) |
Definition at line 157 of file scripting.qc.
References BOT_CMD_AIM, BOT_CMD_AIMTARGET, BOT_CMD_BARRIER, BOT_CMD_CC, BOT_CMD_CONSOLE, BOT_CMD_CONTINUE, BOT_CMD_DEBUG_ASSERT_CANFIRE, BOT_CMD_ELSE, BOT_CMD_FI, BOT_CMD_IF, BOT_CMD_IMPULSE, BOT_CMD_MOVETO, BOT_CMD_MOVETOTARGET, BOT_CMD_NULL, BOT_CMD_PARAMETER_FLOAT, BOT_CMD_PARAMETER_NONE, 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_SELECTWEAPON, BOT_CMD_SOUND, bot_cmd_string, BOT_CMD_TURN, BOT_CMD_WAIT, BOT_CMD_WAIT_UNTIL, and bot_cmds_initialized.
Referenced by bot_cmdhelp(), bot_decodecommand(), and bot_list_commands().
Definition at line 268 of file scripting.qc.
References bot_cmd, BOT_CMD_COUNTER, BOT_CMD_PARAMETER_FLOAT, BOT_CMD_PARAMETER_NONE, BOT_CMD_PARAMETER_STRING, BOT_CMD_PARAMETER_VECTOR, bot_cmd_parm_type, bot_cmd_string, bot_cmds_initialized, bot_commands_init(), LOG_INFO, LOG_INFOF, stof(), stov(), strcpy, strstrofs, and substring().
Referenced by bot_setcurrentcommand().
Definition at line 72 of file scripting.qc.
References bot_clearqueue(), and error().
Referenced by bot_command_executed(), and bot_setcurrentcommand().
Definition at line 1350 of file scripting.qc.
References bot_execute_commands_once().
Referenced by havocbot_ai().
Definition at line 1184 of file scripting.qc.
References autocvar_g_debug_bot_commands, boolean, bot_cmd, BOT_CMD_AIM, bot_cmd_aim(), BOT_CMD_AIMTARGET, bot_cmd_aimtarget(), BOT_CMD_BARRIER, bot_cmd_barrier(), BOT_CMD_CC, bot_cmd_cc(), bot_cmd_condition_status, BOT_CMD_CONSOLE, BOT_CMD_CONTINUE, bot_cmd_continue(), BOT_CMD_DEBUG_ASSERT_CANFIRE, bot_cmd_debug_assert_canfire(), BOT_CMD_ELSE, bot_cmd_else(), BOT_CMD_FI, bot_cmd_fi(), BOT_CMD_IF, bot_cmd_if(), BOT_CMD_IMPULSE, bot_cmd_impulse(), BOT_CMD_MOVETO, bot_cmd_moveto(), BOT_CMD_MOVETOTARGET, bot_cmd_movetotarget(), BOT_CMD_NULL, BOT_CMD_PARAMETER_FLOAT, BOT_CMD_PARAMETER_STRING, BOT_CMD_PARAMETER_VECTOR, bot_cmd_parm_type, BOT_CMD_PAUSE, bot_cmd_pause(), BOT_CMD_PRESSKEY, bot_cmd_presskey(), BOT_CMD_RELEASEKEY, bot_cmd_releasekey(), BOT_CMD_RESETAIM, bot_cmd_resetaim(), BOT_CMD_RESETGOAL, bot_cmd_resetgoal(), bot_cmd_select_weapon(), BOT_CMD_SELECTWEAPON, BOT_CMD_SOUND, bot_cmd_sound(), bot_cmd_string, BOT_CMD_TURN, bot_cmd_turn(), BOT_CMD_WAIT, bot_cmd_wait(), BOT_CMD_WAIT_UNTIL, bot_cmd_wait_until(), bot_command_executed(), bot_exec_status, BOT_EXEC_STATUS_PAUSED, bot_presskeys(), bot_setcurrentcommand(), clientcommand(), CMD_CONDITION_false, CMD_CONDITION_false_BLOCK, CMD_CONDITION_true, CMD_CONDITION_true_BLOCK, CMD_STATUS_ERROR, CMD_STATUS_EXECUTING, CMD_STATUS_FINISHED, ftos(), localcmd, LOG_INFO, LOG_INFOF, strcat(), vtos(), and world.
Referenced by bot_execute_commands().
Definition at line 113 of file scripting.qc.
References bot_placenames, bot_places, bot_places_count, cvar_set(), cvar_string(), entity(), find(), LOG_INFO, MAX_BOT_PLACES, NULL, s2, strcat(), strstrofs, strzone(), substring(), and targetname.
Referenced by bot_cmd_aimtarget(), and bot_cmd_movetotarget().
Definition at line 98 of file scripting.qc.
References bot_cmdqueuebuf_allocated, bot_cmdqueuebuf_end, and bot_cmdqueuebuf_start.
Referenced by bot_setcurrentcommand().
Definition at line 1003 of file scripting.qc.
References bot_exec_status, and BOT_EXEC_STATUS_PAUSED.
Referenced by bot_relinkplayerlist(), and havocbot_ai().
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 840 of file scripting.qc.
References BOT_CMD_KEY_ATTACK1, BOT_CMD_KEY_ATTACK2, BOT_CMD_KEY_BACKWARD, BOT_CMD_KEY_CHAT, BOT_CMD_KEY_CROUCH, BOT_CMD_KEY_FORWARD, BOT_CMD_KEY_HOOK, BOT_CMD_KEY_JUMP, BOT_CMD_KEY_LEFT, BOT_CMD_KEY_NONE, BOT_CMD_KEY_RIGHT, BOT_CMD_KEY_USE, bot_cmd_keys, CS(), PHYS_INPUT_BUTTON_ATCK, PHYS_INPUT_BUTTON_ATCK2, PHYS_INPUT_BUTTON_CHAT, PHYS_INPUT_BUTTON_CROUCH, PHYS_INPUT_BUTTON_HOOK, PHYS_INPUT_BUTTON_JUMP, and PHYS_INPUT_BUTTON_USE.
Referenced by bot_execute_commands_once().
Definition at line 30 of file scripting.qc.
References buf_create, precache_sound(), strstrofs, and substring().
Referenced by GameCommand_bot_cmd().
Definition at line 87 of file scripting.qc.
References error().
Referenced by bot_setcurrentcommand().
void bot_resetqueues | ( | ) |
Definition at line 1165 of file scripting.qc.
References FOREACH_CLIENT.
Referenced by GameCommand_bot_cmd().
Definition at line 1131 of file scripting.qc.
References bot_cmd, bot_cmd_current, bot_cmd_execution_index, bot_decodecommand(), bot_dequeuecommand(), bot_havecommand(), bot_readcommand(), new_pure, and NULL.
Referenced by bot_execute_commands_once().
Definition at line 235 of file scripting.qc.
References FOREACH_CLIENT, IS_BOT_CLIENT, and NULL.
Referenced by GameCommand_bot_cmd().
Definition at line 246 of file scripting.qc.
References entity(), findchainflags(), FL_CLIENT, flags, IS_BOT_CLIENT, and NULL.
Referenced by GameCommand_bot_cmd().
vector bot_cmd_aim_begin |
Definition at line 727 of file scripting.qc.
Referenced by bot_cmd_aim(), and bot_cmd_aimtarget().
float bot_cmd_aim_begintime |
Definition at line 725 of file scripting.qc.
Referenced by bot_cmd_aim(), and bot_cmd_aimtarget().
vector bot_cmd_aim_end |
Definition at line 728 of file scripting.qc.
Referenced by bot_cmd_aim(), and bot_cmd_aimtarget().
float bot_cmd_aim_endtime |
Definition at line 726 of file scripting.qc.
Referenced by bot_cmd_aim(), and bot_cmd_aimtarget().
int bot_cmd_condition_status |
Definition at line 601 of file scripting.qc.
Referenced by bot_cmd_else(), bot_cmd_fi(), bot_cmd_if(), and bot_execute_commands_once().
Definition at line 833 of file scripting.qc.
Referenced by bot_cmd_keypress_handler(), and bot_presskeys().
Definition at line 834 of file scripting.qc.
Referenced by bot_cmd_keypress_handler(), and bot_presskeys().
Definition at line 829 of file scripting.qc.
Referenced by bot_cmd_keypress_handler(), and bot_presskeys().
Definition at line 838 of file scripting.qc.
Referenced by bot_cmd_keypress_handler(), and bot_presskeys().
Definition at line 837 of file scripting.qc.
Referenced by bot_cmd_keypress_handler(), and bot_presskeys().
Definition at line 828 of file scripting.qc.
Referenced by bot_cmd_keypress_handler(), and bot_presskeys().
Definition at line 836 of file scripting.qc.
Referenced by bot_cmd_keypress_handler(), and bot_presskeys().
Definition at line 832 of file scripting.qc.
Referenced by bot_cmd_keypress_handler(), and bot_presskeys().
Definition at line 831 of file scripting.qc.
Referenced by bot_cmd_keypress_handler(), and bot_presskeys().
const int BOT_CMD_KEY_NONE = 0 |
Definition at line 827 of file scripting.qc.
Referenced by bot_cmd_keypress_handler(), bot_cmd_pause(), and bot_presskeys().
Definition at line 830 of file scripting.qc.
Referenced by bot_cmd_keypress_handler(), and bot_presskeys().
Definition at line 835 of file scripting.qc.
Referenced by bot_cmd_keypress_handler(), and bot_presskeys().
int bot_cmd_keys |
Definition at line 825 of file scripting.qc.
Referenced by bot_cmd_keypress_handler(), bot_cmd_pause(), and bot_presskeys().
float bot_cmd_wait_time |
Definition at line 501 of file scripting.qc.
Referenced by bot_cmd_wait().
float bot_cmdqueuebuf |
Definition at line 17 of file scripting.qc.
float bot_cmdqueuebuf_allocated |
Definition at line 16 of file scripting.qc.
Referenced by bot_havecommand().
float bot_cmdqueuebuf_end |
Definition at line 19 of file scripting.qc.
Referenced by bot_havecommand().
float bot_cmdqueuebuf_start |
Definition at line 18 of file scripting.qc.
Referenced by bot_havecommand().
int bot_exec_status |
Definition at line 480 of file scripting.qc.
Referenced by bot_cmd_continue(), bot_cmd_pause(), bot_cmd_wait(), bot_cmd_wait_until(), bot_execute_commands_once(), and bot_ispaused().
string bot_placenames[MAX_BOT_PLACES] |
Definition at line 112 of file scripting.qc.
Referenced by bot_getplace().
entity bot_places[MAX_BOT_PLACES] |
Definition at line 111 of file scripting.qc.
Referenced by bot_getplace().
float bot_places_count |
Definition at line 110 of file scripting.qc.
Referenced by bot_getplace().
const int CMD_CONDITION_false = 2 |
Definition at line 605 of file scripting.qc.
Referenced by bot_cmd_if(), and bot_execute_commands_once().
const int CMD_CONDITION_false_BLOCK = 8 |
Definition at line 607 of file scripting.qc.
Referenced by bot_cmd_else(), and bot_execute_commands_once().
const int CMD_CONDITION_NONE = 0 |
Definition at line 603 of file scripting.qc.
Referenced by bot_cmd_fi(), and bot_cmd_if().
const int CMD_CONDITION_true = 1 |
Definition at line 604 of file scripting.qc.
Referenced by bot_cmd_if(), and bot_execute_commands_once().
const int CMD_CONDITION_true_BLOCK = 4 |
Definition at line 606 of file scripting.qc.
Referenced by bot_cmd_else(), bot_cmd_if(), and bot_execute_commands_once().
const int MAX_BOT_PLACES = 4 |
Definition at line 109 of file scripting.qc.
Referenced by bot_getplace().
int state |
Definition at line 14 of file scripting.qc.
Referenced by bot_cmd_debug_assert_canfire().
entity tuba_note |
Definition at line 1074 of file scripting.qc.
Referenced by bot_cmd_debug_assert_canfire().