Bot autoconnect
- wait on host before spawning bots
This commit is contained in:
parent
8d595ab150
commit
ebd3998d75
@ -109,7 +109,7 @@ function init()
|
||||
|
||||
level.botSoak = is_bot_soak();
|
||||
|
||||
if ( ( level.rankedMatch && !level.botSoak ) || !init_bot_gametype() )
|
||||
if( !init_bot_gametype() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -124,21 +124,13 @@ function init()
|
||||
|
||||
function is_bot_soak()
|
||||
{
|
||||
/*
|
||||
return GetDvarInt( "sv_botsoak", 0 );
|
||||
*/
|
||||
return IsDedicated() && GetDvarInt( "sv_botsoak", 0 );
|
||||
}
|
||||
|
||||
function wait_for_host()
|
||||
{
|
||||
level endon( "game_ended" );
|
||||
|
||||
if ( level.botSoak )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
host = util::getHostPlayerForBots();
|
||||
|
||||
while ( !isdefined( host ) )
|
||||
|
Loading…
Reference in New Issue
Block a user