mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-17 11:00:38 +02:00
Added bot code.
This commit is contained in:
@@ -265,6 +265,19 @@ void Cmd_KillRagdolls_f( const idCmdArgs &args ) {
|
||||
KillEntities( args, idAFEntity_WithAttachedHead::Type );
|
||||
}
|
||||
|
||||
/*
|
||||
===============
|
||||
Cmd_AddBot_f
|
||||
===============
|
||||
*/
|
||||
void Cmd_AddBot_f(const idCmdArgs& args) {
|
||||
if (!gameLocal.isServer) {
|
||||
common->Warning("You can't add a bot because you aren't the server!\n");
|
||||
return;
|
||||
}
|
||||
gameLocal.AddBot();
|
||||
}
|
||||
|
||||
/*
|
||||
==================
|
||||
Cmd_Give_f
|
||||
@@ -2292,6 +2305,7 @@ so it can perform tab completion
|
||||
=================
|
||||
*/
|
||||
void idGameLocal::InitConsoleCommands( void ) {
|
||||
cmdSystem->AddCommand("addbot", Cmd_AddBot_f, CMD_FL_GAME, "adds a bot to the game.");
|
||||
cmdSystem->AddCommand( "game_memory", idClass::DisplayInfo_f, CMD_FL_GAME, "displays game class info" );
|
||||
cmdSystem->AddCommand( "listClasses", idClass::ListClasses_f, CMD_FL_GAME, "lists game classes" );
|
||||
cmdSystem->AddCommand( "listThreads", idThread::ListThreads_f, CMD_FL_GAME|CMD_FL_CHEAT, "lists script threads" );
|
||||
|
||||
Reference in New Issue
Block a user