Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 00062 00063 00064 00065 |
//============================================================================== // Roster for single player DM games, Players are selected randomly // Roster consist from unknown players from: Juggs, Mercs and Egypt // // Written by Michiel Hendriks // (c) 2003, Epic Games, Inc. All Rights Reserved //============================================================================== class UT2K4DMRoster extends xDMRoster config; /** To create the same team in the loading screen and actual game */ var config array<string> UsedBots; var array<string> BotList; function PostBeginPlay() { if (UsedBots.Length != 0) RosterNames = UsedBots; Super.PostBeginPlay(); } function PreInitialize(int TeamBots) { local int i; Roster.Length = 0; UsedBots.Length = 0; for (i = 0; i < TeamBots; i++) { AddPlayerFromList(); } SaveConfig(); } function AddPlayerFromList() { local int i, n; rand(BotList.length); // for randomness' sake i = rand(BotList.length); n = roster.length; Roster.Length = n+1; UsedBots.Length = n+1; Roster[n] = class'xRosterEntry'.static.CreateRosterEntryCharacter(BotList[i]); Roster[n].PrecacheRosterFor(self); UsedBots[n] = BotList[i]; BotList.Remove(i, 1); } defaultproperties { TeamName="Death Match" // Juggs BotList(0)="Avalanche" BotList(1)="Sorrow" BotList(2)="Perdition" BotList(3)="Vengeance" // Mercs BotList(4)="Stargazer" BotList(5)="Phantom" BotList(6)="Kain" BotList(7)="Silhouette" // Egypt BotList(8)="Sphinx" BotList(9)="Natron" BotList(10)="Nafiret" BotList(11)="Tranquility" } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |