Skip to content

Commit

Permalink
Added bot_disablenodes cvar
Browse files Browse the repository at this point in the history
  • Loading branch information
Evghenii committed May 17, 2024
1 parent ec6c95b commit dabfedd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bots.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ static const char *g_pszEventNames[NUM_BOTEVENTS] =
// CONSOLE VARIABLES

CVAR( Bool, bot_allowchat, true, CVAR_ARCHIVE );
CVAR( Bool, bot_disablenodes, false, CVAR_ARCHIVE|CVAR_GAMEMODESETTING );
CVAR( Int, botdebug_statechanges, 0, CVAR_ARCHIVE );
CVAR( Int, botdebug_states, 0, CVAR_ARCHIVE );
CVAR( Int, botdebug_commands, 0, CVAR_ARCHIVE );
Expand Down Expand Up @@ -1587,7 +1588,7 @@ CSkullBot::CSkullBot( char *pszName, char *pszTeamName, ULONG ulPlayerNum )
g_bBotIsInitialized[ulPlayerNum] = false;

// [BB/K6] Make sure that the bot nodes are initialized.
if ( ASTAR_IsInitialized( ) == false )
if ( ASTAR_IsInitialized( ) == false && !bot_disablenodes )
ASTAR_BuildNodes( );

// First, initialize all variables.
Expand Down

0 comments on commit dabfedd

Please sign in to comment.