From ebd3998d756d05d0e03b1693dec152cdf39a6616 Mon Sep 17 00:00:00 2001 From: WantedDV <122710241+WantedDV@users.noreply.github.com> Date: Thu, 20 Apr 2023 23:57:23 -0230 Subject: [PATCH] Bot autoconnect - wait on host before spawning bots --- data/scripts/mp/bots/_bot.gsc_raw | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/data/scripts/mp/bots/_bot.gsc_raw b/data/scripts/mp/bots/_bot.gsc_raw index 68a07246..8ffc052c 100644 --- a/data/scripts/mp/bots/_bot.gsc_raw +++ b/data/scripts/mp/bots/_bot.gsc_raw @@ -108,8 +108,8 @@ function init() level endon( "game_ended" ); 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 ); + return GetDvarInt( "sv_botsoak", 0 ); } function wait_for_host() { level endon( "game_ended" ); - if ( level.botSoak ) - { - return; - } - host = util::getHostPlayerForBots(); while ( !isdefined( host ) )