| Home Page | Recent Changes

CommandLineParams

00001  //-----------------------------------------------------------
00002  //  Ladder.CommandLineParams
00003  //
00004  //  This class is used to simplify adding command line parameters to Ladder Profiles
00005  //-----------------------------------------------------------
00006  class CommandLineParams extends Info
00007      config
00008      abstract
00009      notplaceable;
00010  
00011  var bool                bRejectPlayInfo;
00012  var string              TeamSymbolData;
00013  var array<string>       TeamSymbols;
00014  var array<string>       TeamAIClasses;
00015  
00016  var private config string   AdminUserName, AdminPassword, AccessControl, GameRules;
00017  var private config string   RedTeamAI, BlueTeamAI, RedTeamSymbol, BlueTeamSymbol;
00018  var private config bool     GameStats, DemoRec, bAutoNumBots, QuickStart;
00019  
00020  var localized string    DisplayText[8];
00021  var localized string    Extra;
00022  
00023  static event bool AcceptPlayInfoProperty(string PropertyName)
00024  {
00025      return !default.bRejectPlayInfo;
00026  }
00027  
00028  static function FillPlayInfo(PlayInfo PI)
00029  {
00030      local int i;
00031  
00032      Super.FillPlayInfo(PI);
00033      GenerateTeamSymbolExtras();
00034  
00035      PI.AddSetting("Command Line", "GameRules",      default.DisplayText[i],   1, i++, "Text", "16","Mu|L|Lm");
00036      PI.AddSetting("Command Line", "DemoRec",        default.DisplayText[i], 100, i++, "Check",,"L|Lm");
00037      PI.AddSetting("Command Line", "bAutoNumBots",   default.DisplayText[i],   2, i++, "Check",,"L|Lm|Ms");
00038      PI.AddSetting("Command Line", "QuickStart",     default.DisplayText[i],   2, i++, "Check",,"L|Lm|Mb");
00039      PI.AddSetting("Command Line", "RedTeamSymbol",  default.DisplayText[i],   1, i++, "Select", default.TeamSymbolData, "L|Lm");
00040      PI.AddSetting("Command Line", "BlueTeamSymbol", default.DisplayText[i],   1,   i, "Select", default.TeamSymbolData, "L|Lm");
00041  }
00042  
00043  static function GenerateTeamSymbolExtras()
00044  {
00045      local int i;
00046      local array<string> Ar;
00047      local string S;
00048  
00049      Ar = default.TeamSymbols;
00050      for (i = 0; i < Ar.Length; i++)
00051      {
00052          Ar[i] = Ar[i] $ ";" $ ItemName(Ar[i]);
00053          if (S != "") S = S $ ";";
00054          S = S $ Ar[i];
00055      }
00056  
00057      default.TeamSymbolData = S;
00058  }
00059  
00060  // Same as Actor.GetItemName()  (why didn't they make that function static?)
00061  static function string ItemName(string FullName)
00062  {
00063      local int pos;
00064  
00065      pos = InStr(FullName, ".");
00066      While ( pos != -1 )
00067      {
00068          FullName = Right(FullName, Len(FullName) - pos - 1);
00069          pos = InStr(FullName, ".");
00070      }
00071  
00072      return FullName;
00073  }
00074  
00075  DefaultProperties
00076  {
00077      Extra="UnrealGame.TeamAI;Default AI;UnrealGame.CTFTeamAI;CTF Team AI;UnrealGame.BombingRunTeamAI;BR Team AI;UnrealGame.DOMTeamAI;DOM Team AI;SkaarjPack.InvasionTeamAI;Invasion Team AI"
00078      TeamSymbols[0]="TeamSymbols_UT2003.sym02"
00079      TeamSymbols[1]="TeamSymbols_UT2003.sym01"
00080      TeamSymbols[2]="TeamSymbols_UT2003.Apocalypse"
00081      TeamSymbols[3]="TeamSymbols_UT2003.BlackLegion"
00082      TeamSymbols[4]="TeamSymbols_UT2003.BoneCrushers"
00083      TeamSymbols[5]="TeamSymbols_UT2003.CampingWhores"
00084      TeamSymbols[6]="TeamSymbols_UT2003.ChildrenoftheSun"
00085      TeamSymbols[7]="TeamSymbols_UT2003.Crusaders"
00086      TeamSymbols[8]="TeamSymbols_UT2003.DarkProvince"
00087      TeamSymbols[9]="TeamSymbols_UT2003.Demolition"
00088      TeamSymbols[10]="TeamSymbols_UT2003.DrunkenMasters"
00089      TeamSymbols[11]="TeamSymbols_UT2003.DuneRiders"
00090      TeamSymbols[12]="TeamSymbols_UT2003.GearHeads"
00091      TeamSymbols[13]="TeamSymbols_UT2003.HappyDead"
00092      TeamSymbols[14]="TeamSymbols_UT2003.HappySmooth"
00093      TeamSymbols[15]="TeamSymbols_UT2003.HotDog"
00094      TeamSymbols[16]="TeamSymbols_UT2003.IronGuard"
00095      TeamSymbols[17]="TeamSymbols_UT2003.IronSkull"
00096      TeamSymbols[18]="TeamSymbols_UT2003.LordsOfPain"
00097      TeamSymbols[19]="TeamSymbols_UT2003.NightStalkers"
00098      TeamSymbols[20]="TeamSymbols_UT2003.PainMachine"
00099      TeamSymbols[21]="TeamSymbols_UT2003.Roswell"
00100      TeamSymbols[22]="TeamSymbols_UT2003.StrangeLove"
00101      TeamSymbols[23]="TeamSymbols_UT2003.SunBlades"
00102      TeamSymbols[24]="TeamSymbols_UT2003.SuperNova"
00103      TeamSymbols[25]="TeamSymbols_UT2003.Turtle"
00104      TeamSymbols[26]="TeamSymbols_UT2003.Venom"
00105      TeamSymbols[27]="TeamSymbols_UT2003.WrathofGod"
00106      TeamSymbols[28]="TeamSymbols_UT2003.Poo"
00107      TeamSymbols[29]="TeamSymbols_UT2003.ProfessorDeath"
00108      TeamSymbols[30]="TeamSymbols_UT2003.PeePee"
00109      TeamSymbols[31]="TeamSymbols_UT2003.PillPoppers"
00110      TeamSymbols[32]="TeamSymbols_UT2003.LANplay"
00111      TeamSymbols[33]="TeamSymbols_UT2003.sym05"
00112      TeamSymbols[34]="TeamSymbols_UT2003.sym06"
00113      TeamSymbols[35]="TeamSymbols_UT2003.sym08"
00114      TeamSymbols[36]="TeamSymbols_UT2003.sym07"
00115      TeamSymbols[37]="TeamSymbols_UT2003.sym03"
00116      TeamSymbols[38]="TeamSymbols_UT2003.sym09"
00117      TeamSymbols[39]="TeamSymbols_UT2003.sym04"
00118      TeamSymbols[40]="TeamSymbols_UT2003.sym10"
00119      TeamSymbols[41]="TeamSymbols_UT2003.sym11"
00120      TeamSymbols[42]="TeamSymbols_UT2003.sym12"
00121      TeamSymbols[43]="TeamSymbols_UT2003.sym13"
00122      TeamSymbols[44]="TeamSymbols_UT2003.sym14"
00123      TeamSymbols[45]="TeamSymbols_UT2003.sym16"
00124      TeamSymbols[46]="TeamSymbols_UT2003.sym15"
00125      TeamSymbols[47]="TeamSymbols_UT2003.Warcry"
00126      TeamSymbols[48]="TeamSymbols_UT2003.BloodFists"
00127      TeamSymbols[49]="TeamSymbols_UT2003.DragonBreath"
00128      TeamSymbols[50]="TeamSymbols_UT2003.ColdSteel"
00129      TeamSymbols[51]="TeamSymbols_UT2003.sym18"
00130      TeamSymbols[52]="TeamSymbols_UT2003.sym17"
00131      TeamSymbols[53]="TeamSymbols_UT2003.sym19"
00132      TeamSymbols[54]="TeamSymbols_UT2003.ZPenguin"
00133      TeamSymbols[55]="TeamSymbols.LinkBeaconT"
00134      TeamSymbols[56]="TeamSymbols.TeamBeaconT"
00135      DisplayText(0)="Game Rule Mutators"
00136      DisplayText(1)="Enable Server Demos"
00137      DisplayText(2)="Per-map minimum players"
00138      DisplayText(3)="Allow bots to begin match"
00139      DisplayText(4)="AI for Red team"
00140      DisplayText(5)="AI for Blue team"
00141      DisplayText(6)="Red Team Symbol"
00142      DisplayText(7)="Blue Team Symbol"
00143  }

Tarquin: What is this page about?

The Unreal Engine Documentation Site

Wiki Community

Topic Categories

Recent Changes

Offline Wiki

Unreal Engine

Console Commands

Terminology

FAQs

Help Desk

Mapping Topics

Mapping Lessons

UnrealEd Interface

UnrealScript Topics

UnrealScript Lessons

Making Mods

Class Tree

Modeling Topics

Chongqing Page

Log In