mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 13:55:43 +00:00
use table
This commit is contained in:
parent
85f5d42367
commit
ce58768516
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user