ItsMods

Full Version: Custom playlist problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, im pretty new to black ops modding, i want to create basic private match/combat training playlist mod, and im wondering how to make playlist (aka gamemode) that will be something like mosh pit from mw2/mw3. I mean to make gamemode with specific map rotation, how to do this? I thank you in advance.
You can use a script that is executed right before the next map is launched and use something like this:

Code:
Gametypes = Array( "sd", "dom", "dem", "sab" );
SetDvar( "g_gametype", gametypes[ RandomInt( Gametypes.size ) ] );
ExitLevel( false );

edit: I think blops has an Array() function in utility.gsc .. not sure, if not then use this:
Code:
Gametypes = [];
Gametypes[0] = "sd";
Gametypes[1] = "dom";
Gametypes[2] = "dem";
Gametypes[3] = "sab";