class TeamBlueConfigured extends xTeamRoster; /* this class used for configured instant action or multiplayer games with bots */ var config array Characters; function Initialize(int TeamBots) { local int i; for ( i=0; i Chars) { default.Characters = Chars; } static function AddCharacter(string CharName) { local int i; i = FindCharIndex(CharName); if ( i == -1 ) default.Characters[default.Characters.Length] = CharName; } static function RemoveCharacter(int Index, int Count) { if ( Index < 0 || Index >= default.Characters.Length ) return; if ( Count < 0 ) Count = default.Characters.Length; default.Characters.Remove(Index, Min(Count, default.Characters.Length - Index)); } static function int FindCharIndex(string CharName) { local int i; for ( i = 0; i < default.Characters.Length; i++ ) if ( default.Characters[i] ~= CharName ) return i; return -1; } static function GetAllCharacters(out array Chars) { Chars = default.Characters; } defaultproperties { }