mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 22:05:44 +00:00
use table
This commit is contained in:
parent
85f5d42367
commit
ce58768516
@ -629,18 +629,32 @@ getValidTube()
|
||||
iw5
|
||||
*/
|
||||
allowClassChoiceUtil()
|
||||
{
|
||||
allowed = int( tableLookup( "mp/gametypesTable.csv", 0, level.gameType, 4 ) );
|
||||
|
||||
if ( !isDefined( allowed ) )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return allowed;
|
||||
}
|
||||
|
||||
/*
|
||||
iw5
|
||||
*/
|
||||
allowTeamChoiceUtil()
|
||||
{
|
||||
allowed = int( tableLookup( "mp/gametypesTable.csv", 0, level.gameType, 5 ) );
|
||||
|
||||
if ( !isDefined( allowed ) )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return allowed;
|
||||
}
|
||||
|
||||
/*
|
||||
helper
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user