From ce5876851608c43cee725015f97d339df0930d02 Mon Sep 17 00:00:00 2001 From: ineed bots Date: Sat, 16 Dec 2023 13:15:38 -0600 Subject: [PATCH] use table --- maps/mp/bots/_bot_utility.gsc | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/maps/mp/bots/_bot_utility.gsc b/maps/mp/bots/_bot_utility.gsc index 9276678..b1ccea4 100644 --- a/maps/mp/bots/_bot_utility.gsc +++ b/maps/mp/bots/_bot_utility.gsc @@ -630,7 +630,14 @@ getValidTube() */ allowClassChoiceUtil() { - return true; + allowed = int( tableLookup( "mp/gametypesTable.csv", 0, level.gameType, 4 ) ); + + if ( !isDefined( allowed ) ) + { + return true; + } + + return allowed; } /* @@ -638,7 +645,14 @@ allowClassChoiceUtil() */ allowTeamChoiceUtil() { - return true; + allowed = int( tableLookup( "mp/gametypesTable.csv", 0, level.gameType, 5 ) ); + + if ( !isDefined( allowed ) ) + { + return true; + } + + return allowed; } /*