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 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098 00099 00100 00101 00102 00103 00104 00105 00106 00107 00108 00109 00110 00111 00112 00113 00114 00115 00116 00117 00118 00119 00120 00121 00122 00123 00124 00125 00126 00127 00128 00129 |
// ============================================================================ // JBAddonOvertimeLockdown - original by _Lynx // Copyright 2006 by Jrubzjeknf <rrvanolst@hotmail.com> // $Id: JBAddonOvertimeLockdown.uc,v 1.4 2007-07-02 13:07:53 jrubzjeknf Exp $ // // When in overtime starts, the releases will be jammed. Once you're jailed, // there's no getting out any more. Last chance to score a point! // ============================================================================ class JBAddonOvertimeLockdown extends JBAddon config cacheexempt; //============================================================================= // Configuration //============================================================================= var config bool bNoArenaInOvertime; var config bool bNoEscapeInOvertime; var config byte LockdownDelay; // in minutes //============================================================================= // Localization //============================================================================= var localized string NoArenaInOvertimeText, NoArenaInOvertimeDesc; var localized string NoEscapeInOvertimeText, NoEscapeInOvertimeDesc; var localized string LockdownDelayText, LockdownDelayDesc; //============================================================================= // Variables //============================================================================= var() const editconst string Build; var JBGameRulesOvertimeLockdown OvertimeLockdownRules; // ============================================================================ // PostBeginPlay // // Registers the addon's GameRules. // ============================================================================ function PostBeginPlay() { Super.PostBeginPlay(); OvertimeLockdownRules = Spawn(Class'JBGameRulesOvertimeLockdown'); if(OvertimeLockdownRules != None) { if(Level.Game.GameRulesModifiers == None) Level.Game.GameRulesModifiers = OvertimeLockdownRules; else Level.Game.GameRulesModifiers.AddGameRules(OvertimeLockdownRules); // Copy variables to Gamerules. OvertimeLockdownRules.bNoArenaInOvertime = bNoArenaInOvertime; OvertimeLockdownRules.bNoEscapeInOvertime = bNoEscapeInOvertime; OvertimeLockdownRules.LockdownDelay = LockdownDelay; } else { LOG("!!!!!"@name$".PostBeginPlay() : Fail to register the JBGameRulesOvertimeLockdown !!!!!"); Destroy(); } } //============================================================================= // FillPlayInfo // // Adds configurable ArenaLockdown properties to the web admin interface. //============================================================================= static function FillPlayInfo(PlayInfo PlayInfo) { // add current class to stack PlayInfo.AddClass(default.Class); // now register any mutator settings PlayInfo.AddSetting(PlayInfoGroup(), "bNoArenaInOvertime", default.NoArenaInOvertimeText, 0, 1, "Check"); PlayInfo.AddSetting(PlayInfoGroup(), "bNoEscapeInOvertime", default.NoEscapeInOvertimeText, 0, 2, "Check"); PlayInfo.AddSetting(PlayInfoGroup(), "LockdownDelay", default.LockdownDelayText, 0, 3, "Text", "3;0:150"); // remove mutator class from class stack PlayInfo.PopClass(); } //============================================================================= // GetDescriptionText // // Returns a description text for the specified property. //============================================================================= static event string GetDescriptionText(string PropName) { switch (PropName) { case "bNoArenaInOvertime": return default.NoArenaInOvertimeDesc; case "bNoEscapeInOvertime": return default.NoEscapeInOvertimeDesc; case "LockdownDelay": return default.LockdownDelayDesc; } } // ============================================================================ // Default properties // ============================================================================ defaultproperties { bNoArenaInOvertime = True bNoEscapeInOvertime = True LockdownDelay = 3 NoArenaInOvertimeText = "No arena matches in Overtime" NoArenaInOvertimeDesc = "No arena matches will start when the game goes into overtime. Pending matches will be cancelled." NoEscapeInOvertimeText = "No escapes in Overtime" NoEscapeInOvertimeDesc = "Players who try to get out of jail during the Lockdown, will be killed." LockdownDelayText = "Lockdown delay" LockdownDelayDesc = "How long normal overtime should last before before the lockdown kicks in." Build = "%%%%-%%-%% %%:%%"; FriendlyName = "Overtime Lockdown" Description = "If the match goes into overtime, the release switches are jammed and nobody can be released any more. Last chance to win the game!" ConfigMenuClassName = "JBAddonOvertimeLockdown.JBGUIPanelConfigOvertimeLockdown" } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |