From d269beebe9c53e436ce318937cd4595cef918228 Mon Sep 17 00:00:00 2001 From: INeedBots Date: Sat, 9 Jan 2021 23:02:10 -0600 Subject: [PATCH] readd bots --- main_shared/maps/mp/gametypes/_bot.gsc | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) 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. */