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 00130 00131 00132 00133 00134 00135 00136 00137 00138 00139 00140 |
//============================================================================= // JBAddonCelebration // Copyright 2003 by Wormbo <wormbo@onlinehome.de> // $Id: JBAddonCelebration.uc,v 1.6 2012-11-30 20:09:02 wormbo Exp $ // // The Celebration Screen add-on for Jailbreak. //============================================================================= class JBAddonCelebration extends JBAddon cacheexempt; //============================================================================= // Variables //============================================================================= var() const editconst string Build; var() localized string CapturedOtherMessage[32]; var() localized int NumCapturedOtherMessages; var() localized string CapturedSelfMessage[32]; var() localized int NumCapturedSelfMessages; var() localized string TeamString[2]; //============================================================================= // InitAddon // // Spawns the JBGameRulesCelebration. //============================================================================= simulated function InitAddon() { Super.InitAddon(); if ( Level.Game != None ) Spawn(class'JBGameRulesCelebration'); } //============================================================================= // GetCapturedMessage // // Returns a capture message for the specified player and team. //============================================================================= static function string GetCapturedMessage(PlayerReplicationInfo PRI, TeamInfo Team, int DesiredMessageIndex) { local string CapturedMessage; local string TeamName; if ( PRI.Team == Team ) CapturedMessage = default.CapturedSelfMessage[DesiredMessageIndex % default.NumCapturedSelfMessages]; else CapturedMessage = default.CapturedOtherMessage[DesiredMessageIndex % default.NumCapturedOtherMessages]; TeamName = default.TeamString[Team.TeamIndex]; StaticReplaceText(CapturedMessage, "%t", TeamName); StaticReplaceText(CapturedMessage, "%T", Caps(Left(TeamName, 1)) $ Mid(TeamName, 1)); TeamName = default.TeamString[(Team.TeamIndex + 1) % 2]; StaticReplaceText(CapturedMessage, "%o", TeamName); StaticReplaceText(CapturedMessage, "%O", Caps(Left(TeamName, 1)) $ Mid(TeamName, 1)); StaticReplaceText(CapturedMessage, "%p", PRI.PlayerName); return CapturedMessage; } //============================================================================= // StaticReplaceText // // Static version of Actor.ReplaceText() //============================================================================= static final function StaticReplaceText(out string Text, string Replace, string With) { local int i; local string Input; Input = Text; Text = ""; i = InStr(Input, Replace); while(i != -1) { Text = Text $ Left(Input, i) $ With; Input = Mid(Input, i + Len(Replace)); i = InStr(Input, Replace); } Text = Text $ Input; } //============================================================================= // Default properties //============================================================================= defaultproperties { FriendlyName="Celebration Screen" GroupName="Celebration" Description="Enables the widescreen celebration screen during executions." Build="%%%%-%%-%% %%:%%" bAddToServerPackages=True CapturedOtherMessage(0)="%p captured the last loser on the %t team." CapturedOtherMessage(1)="%p just threw the switch on the %t team." CapturedOtherMessage(2)="%p just sent the %t team to the joint." CapturedOtherMessage(3)="%p just locked down the %t team." CapturedOtherMessage(4)="%p has closed the gates on the %t team." CapturedOtherMessage(5)="%p sent the %t team down the river." CapturedOtherMessage(6)="%p just fitted the %t team for stripes." CapturedOtherMessage(7)="%p sent the %t team to death row." CapturedOtherMessage(8)="%p gave the %t team the chair!" CapturedOtherMessage(9)="%p has passed sentence on the %t team." CapturedOtherMessage(10)="%p sent the %t team up the creek without a paddle." CapturedOtherMessage(11)="%p just revoked the %t team's parole!" CapturedOtherMessage(12)="%p gave the %t team a free trip to the BIG house!" CapturedOtherMessage(13)="%p locked the door on the %t team and threw away the key." CapturedOtherMessage(14)="%p says No Bail! for the %t team." CapturedOtherMessage(15)="%p lays the lockdown on the %t team!" CapturedOtherMessage(16)="%p slammed the door in the %t team's face!" CapturedOtherMessage(17)="%p sentences the %t team to death!" CapturedOtherMessage(18)="%p locks up the %t team and throws away the key!" CapturedOtherMessage(19)="%p says don't do the crime if ya can't do the time..." CapturedOtherMessage(20)="%p caught the %t team red-handed." CapturedOtherMessage(21)="%p successfully tightened security in the house." CapturedOtherMessage(22)="%T is %p's favorite color for decorating jails." CapturedOtherMessage(23)="%p scored for %o. The %t team won't enjoy it, though." NumCapturedOtherMessages=24 CapturedSelfMessage(0)="%p couldn't stand to be alone out of jail anymore." CapturedSelfMessage(1)="A dyed-in-the-wool killer would have asked about that button, %p." CapturedSelfMessage(2)="%p blew it for the %t team." CapturedSelfMessage(3)="%p didn't read the 'aim away from face' label." CapturedSelfMessage(4)="Hey %p, you're on the %t team in case you didn't notice." CapturedSelfMessage(5)="Erm %p, you're supposed to shoot the %o guys, not the %t ones..." NumCapturedSelfMessages=6 TeamString(0)="red" TeamString(1)="blue" } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |