Xonotic
|
Go to the source code of this file.
Macros | |
#define | BOT_EXEC_STATUS_IDLE 0 |
#define | BOT_EXEC_STATUS_PAUSED 1 |
#define | BOT_EXEC_STATUS_WAITING 2 |
#define | CMD_STATUS_ERROR 2 |
#define | CMD_STATUS_EXECUTING 0 |
#define | CMD_STATUS_FINISHED 1 |
Functions | |
void | bot_cmdhelp (string scmd) |
float | bot_execute_commands (entity this) |
bool | bot_ispaused (entity this) |
void | bot_list_commands () |
void | bot_queuecommand (entity bot, string cmdstring) |
void | bot_resetqueues () |
entity | find_bot_by_name (string name) |
entity | find_bot_by_number (float number) |
float (entity, vector) cmd_moveto | |
float (entity) cmd_resetgoal | |
#define BOT_EXEC_STATUS_IDLE 0 |
Definition at line 3 of file scripting.qh.
#define BOT_EXEC_STATUS_PAUSED 1 |
Definition at line 4 of file scripting.qh.
Referenced by bot_cmd_continue(), bot_cmd_pause(), bot_execute_commands_once(), and bot_ispaused().
#define BOT_EXEC_STATUS_WAITING 2 |
Definition at line 5 of file scripting.qh.
Referenced by bot_cmd_wait(), and bot_cmd_wait_until().
#define CMD_STATUS_ERROR 2 |
Definition at line 9 of file scripting.qh.
Referenced by bot_cmd_aim(), bot_cmd_aimtarget(), bot_cmd_if(), bot_cmd_movetotarget(), bot_cmd_select_weapon(), bot_execute_commands_once(), and havocbot_moveto().
#define CMD_STATUS_EXECUTING 0 |
Definition at line 7 of file scripting.qh.
Referenced by bot_cmd_aim(), bot_cmd_aimtarget(), bot_cmd_wait(), bot_cmd_wait_until(), bot_execute_commands_once(), and havocbot_moveto().
#define CMD_STATUS_FINISHED 1 |
Definition at line 8 of file scripting.qh.
Referenced by bot_cmd_aim(), bot_cmd_aimtarget(), bot_cmd_barrier(), bot_cmd_cc(), bot_cmd_continue(), bot_cmd_debug_assert_canfire(), bot_cmd_else(), bot_cmd_fi(), bot_cmd_if(), bot_cmd_impulse(), bot_cmd_keypress_handler(), bot_cmd_pause(), bot_cmd_presskey(), bot_cmd_resetaim(), bot_cmd_select_weapon(), bot_cmd_sound(), bot_cmd_turn(), bot_cmd_wait(), bot_cmd_wait_until(), bot_execute_commands_once(), havocbot_moveto(), and havocbot_resetgoal().
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.
Definition at line 1350 of file scripting.qc.
References bot_execute_commands_once().
Referenced by havocbot_ai().
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.
Definition at line 30 of file scripting.qc.
References buf_create, precache_sound(), strstrofs, and substring().
void bot_resetqueues | ( | ) |
Definition at line 235 of file scripting.qc.
References FOREACH_CLIENT, IS_BOT_CLIENT, and NULL.
Definition at line 246 of file scripting.qc.
References entity(), findchainflags(), FL_CLIENT, flags, IS_BOT_CLIENT, and NULL.
float | ( | entity | ) |
float bot_barrier |
Definition at line 69 of file scripting.qh.
Referenced by bot_cmd_barrier().
float bot_barriertime |
Definition at line 68 of file scripting.qh.
Referenced by bot_cmd_barrier(), and bot_cmd_wait_until().
entity bot_cmd |
Definition at line 59 of file scripting.qh.
Referenced by bot_cmd_aim(), bot_cmd_aimtarget(), bot_cmd_cc(), bot_cmd_debug_assert_canfire(), bot_cmd_if(), bot_cmd_impulse(), bot_cmd_moveto(), bot_cmd_movetotarget(), bot_cmd_presskey(), bot_cmd_releasekey(), bot_cmd_select_weapon(), bot_cmd_sound(), bot_cmd_turn(), bot_cmd_wait(), bot_cmd_wait_until(), bot_command_executed(), bot_decodecommand(), bot_execute_commands_once(), and bot_setcurrentcommand().
const int BOT_CMD_AIM = 12 |
Definition at line 25 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_commands_init(), and bot_execute_commands_once().
const int BOT_CMD_AIMTARGET = 19 |
Definition at line 32 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_commands_init(), and bot_execute_commands_once().
const int BOT_CMD_BARRIER = 20 |
Definition at line 33 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_commands_init(), and bot_execute_commands_once().
const int BOT_CMD_CC = 7 |
Definition at line 20 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_commands_init(), and bot_execute_commands_once().
const int BOT_CMD_CONSOLE = 21 |
Definition at line 34 of file scripting.qh.
Referenced by bot_commands_init(), and bot_execute_commands_once().
const int BOT_CMD_CONTINUE = 2 |
Definition at line 15 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_commands_init(), and bot_execute_commands_once().
const int BOT_CMD_COUNTER = 24 |
Definition at line 41 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_decodecommand(), and bot_list_commands().
entity bot_cmd_current |
Definition at line 60 of file scripting.qh.
Referenced by bot_clientdisconnect(), and bot_setcurrentcommand().
const int BOT_CMD_DEBUG_ASSERT_CANFIRE = 23 |
Definition at line 36 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_commands_init(), and bot_execute_commands_once().
const int BOT_CMD_ELSE = 9 |
Definition at line 22 of file scripting.qh.
Referenced by bot_commands_init(), and bot_execute_commands_once().
float bot_cmd_execution_index |
Definition at line 71 of file scripting.qh.
Referenced by bot_command_executed(), and bot_setcurrentcommand().
const int BOT_CMD_FI = 10 |
Definition at line 23 of file scripting.qh.
Referenced by bot_commands_init(), and bot_execute_commands_once().
const int BOT_CMD_IF = 8 |
Definition at line 21 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_commands_init(), and bot_execute_commands_once().
const int BOT_CMD_IMPULSE = 16 |
Definition at line 29 of file scripting.qh.
Referenced by bot_commands_init(), and bot_execute_commands_once().
float bot_cmd_index |
Definition at line 62 of file scripting.qh.
const int BOT_CMD_MOVETO = 5 |
Definition at line 18 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_commands_init(), and bot_execute_commands_once().
const int BOT_CMD_MOVETOTARGET = 18 |
Definition at line 31 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_commands_init(), and bot_execute_commands_once().
const int BOT_CMD_NULL = 0 |
Definition at line 13 of file scripting.qh.
Referenced by bot_commands_init(), and bot_execute_commands_once().
const int BOT_CMD_PARAMETER_FLOAT = 1 |
Definition at line 50 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_commands_init(), bot_decodecommand(), bot_execute_commands_once(), and bot_list_commands().
const int BOT_CMD_PARAMETER_NONE = 0 |
Definition at line 49 of file scripting.qh.
Referenced by bot_commands_init(), and bot_decodecommand().
const int BOT_CMD_PARAMETER_STRING = 2 |
Definition at line 51 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_commands_init(), bot_decodecommand(), bot_execute_commands_once(), and bot_list_commands().
const int BOT_CMD_PARAMETER_VECTOR = 3 |
Definition at line 52 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_commands_init(), bot_decodecommand(), bot_execute_commands_once(), and bot_list_commands().
float bot_cmd_parm_float |
Definition at line 64 of file scripting.qh.
string bot_cmd_parm_string |
Definition at line 65 of file scripting.qh.
int bot_cmd_parm_type[BOT_CMD_COUNTER] |
Definition at line 55 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_commands_init(), bot_decodecommand(), bot_execute_commands_once(), and bot_list_commands().
vector bot_cmd_parm_vector |
Definition at line 66 of file scripting.qh.
const int BOT_CMD_PAUSE = 1 |
Definition at line 14 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_commands_init(), and bot_execute_commands_once().
const int BOT_CMD_PRESSKEY = 13 |
Definition at line 26 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_commands_init(), and bot_execute_commands_once().
const int BOT_CMD_RELEASEKEY = 14 |
Definition at line 27 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_commands_init(), and bot_execute_commands_once().
const int BOT_CMD_RESETAIM = 11 |
Definition at line 24 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_commands_init(), and bot_execute_commands_once().
const int BOT_CMD_RESETGOAL = 6 |
Definition at line 19 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_commands_init(), and bot_execute_commands_once().
const int BOT_CMD_SELECTWEAPON = 15 |
Definition at line 28 of file scripting.qh.
Referenced by bot_commands_init(), and bot_execute_commands_once().
const int BOT_CMD_SOUND = 22 |
Definition at line 35 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_commands_init(), and bot_execute_commands_once().
string bot_cmd_string[BOT_CMD_COUNTER] |
Definition at line 56 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_commands_init(), bot_decodecommand(), bot_execute_commands_once(), and bot_list_commands().
const int BOT_CMD_TURN = 4 |
Definition at line 17 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_commands_init(), and bot_execute_commands_once().
int bot_cmd_type |
Definition at line 63 of file scripting.qh.
const int BOT_CMD_WAIT = 3 |
Definition at line 16 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_commands_init(), and bot_execute_commands_once().
const int BOT_CMD_WAIT_UNTIL = 17 |
Definition at line 30 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_commands_init(), and bot_execute_commands_once().
float bot_cmds_initialized |
Definition at line 54 of file scripting.qh.
Referenced by bot_cmdhelp(), bot_commands_init(), bot_decodecommand(), and bot_list_commands().