My hope was to create a mututor that group online human players all on the read team during tdm/ctf/etc play, just like in campaign. But I am getting lost in the code. Is there a easy way around this?
Got this from Rattlesnake, but it override the number of bots i had set in the options screen. So was 1 vs 1 when I started the game.
I want to create a mut that adds bots to the blue team automatically. Ex 8 vs 16 in a ctf game or really any team based game. In reality to use the "Card" based system already in game but during the non campaign gametypes. Ie using the 'IronGuard' card in a mutator to add 2 (config) specific bots to the opposing team.
Got this from Rattlesnake, but it override the number of bots i had set in the options screen. So was 1 vs 1 when I started the game.
Code:
function InitMutator(..) { local UTGame G; G = UTGame(WorldInfo.Game); if (G != none) { G.bPlayersVsBots = true; G.bCustomBots= true; } }
Code:
if ( GameModifierCard == 'IronGuard' ) { if ( Profile.HasPersistentKey( class'UTGameModifierCard'.static.GetAltKey(GameModifierCard)) ) { i = CardCharacters.Length; CardCharacters.Length = i + 2; CardCharacters[i] = "Lauren"; j = Rand(IronGuardEnhancedPool.Length); CardCharacters[i+1] = IronGuardEnhancedPool[j]; } else { i = CardCharacters.Length; CardCharacters.Length = i + 2; for (j=0;j<2;j++) { r = Rand(IronGuardPool.Length); CardCharacters[i+j] = IronGuardPool[r]; IronGuardPool.Remove(r,1); } } }
Comment