diff --git a/main_shared/maps/mp/gametypes/_bot.gsc b/main_shared/maps/mp/gametypes/_bot.gsc index cc3510d..531a0f6 100644 --- a/main_shared/maps/mp/gametypes/_bot.gsc +++ b/main_shared/maps/mp/gametypes/_bot.gsc @@ -79,10 +79,8 @@ init() thread fixGamemodes(); thread onPlayerConnect(); - - thread diffBots(); - thread teamBots(); - thread addBots(); + + thread handleBots(); thread doNonDediBots(); } @@ -102,6 +100,21 @@ onPlayerConnect() } } +/* + Starts the threads for bots. +*/ +handleBots() +{ + thread diffBots(); + thread teamBots(); + addBots(); + + while(!level.intermission) + wait 0.05; + + setDvar("bots_manage_add", getBotArray().size); +} + /* When a bot disconnects. */