mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 21:24:27 +00:00
Merge pull request #3 from YGGverse/respawn-bots-configured
respawn configured bots
This commit is contained in:
commit
1ae7735133
@ -1370,7 +1370,14 @@ void StartFrame( void )
|
||||
// then add another bot using the default skill level...
|
||||
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…
x
Reference in New Issue
Block a user