Browse Source

respawn configured bots (#422)

Co-authored-by: ghost <localhost>
bot10
d47081 11 months ago committed by GitHub
parent
commit
6d2f4bc58f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      dlls/client.cpp

9
dlls/client.cpp

@ -1370,7 +1370,14 @@ void StartFrame( void )
// then add another bot using the default skill level... // then add another bot using the default skill level...
if( count < max_bots ) if( count < max_bots )
{ {
BotCreate( NULL, NULL, NULL ); for( i = 0; i < 32; i++ )
{
if( !bot_respawn[i].is_used && bot_respawn[i].state == BOT_IDLE)
{
BotCreate( bot_respawn[i].skin, bot_respawn[i].name, bot_respawn[i].skill );
break;
}
}
} }
} }

Loading…
Cancel
Save