Core.Object | +--Engine.Actor | +--Engine.Info | +--Engine.LocalMessage | +--Botpack.LocalMessagePlus | +--Botpack.CriticalEventPlus | +--Botpack.TimeMessage
string
TimeMessage[16]
Sound
TimeSound[16]
simulated
ClientReceive(PlayerPawn P, optional int, optional PlayerReplicationInfo, optional PlayerReplicationInfo, optional Object)
GetString(optional int, optional PlayerReplicationInfo, optional PlayerReplicationInfo, optional Object)
00001 class TimeMessage extends CriticalEventPlus; 00002 00003 var localized string TimeMessage[16]; 00004 var Sound TimeSound[16]; 00005 00006 static function string GetString( 00007 optional int Switch, 00008 optional PlayerReplicationInfo RelatedPRI_1, 00009 optional PlayerReplicationInfo RelatedPRI_2, 00010 optional Object OptionalObject 00011 ) 00012 { 00013 return Default.TimeMessage[Switch]; 00014 } 00015 00016 static simulated function ClientReceive( 00017 PlayerPawn P, 00018 optional int Switch, 00019 optional PlayerReplicationInfo RelatedPRI_1, 00020 optional PlayerReplicationInfo RelatedPRI_2, 00021 optional Object OptionalObject 00022 ) 00023 { 00024 Super.ClientReceive(P, Switch, RelatedPRI_1, RelatedPRI_2, OptionalObject); 00025 00026 if ( P.ViewTarget != None ) 00027 P.ViewTarget.PlaySound(Default.TimeSound[Switch],,4.0); 00028 else 00029 P.PlaySound(Default.TimeSound[Switch],,4.0); 00030 } 00031 00032 defaultproperties 00033 { 00034 TimeMessage(0)="5 minutes left in the game!" 00035 TimeMessage(2)="3 minutes left in the game!" 00036 TimeMessage(3)="2 minutes left in the game!" 00037 TimeMessage(4)="1 minute left in the game!" 00038 TimeMessage(5)="30 seconds left!" 00039 TimeMessage(6)="10 seconds left!" 00040 TimeMessage(7)="9..." 00041 TimeMessage(8)="8..." 00042 TimeMessage(9)="7..." 00043 TimeMessage(10)="6..." 00044 TimeMessage(11)="5 seconds and counting..." 00045 TimeMessage(12)="4..." 00046 TimeMessage(13)="3..." 00047 TimeMessage(14)="2..." 00048 TimeMessage(15)="1..." 00049 TimeSound(0)=Sound'Announcer.(All).cd5min' 00050 TimeSound(2)=Sound'Announcer.(All).cd3min' 00051 TimeSound(4)=Sound'Announcer.(All).cd1min' 00052 TimeSound(6)=Sound'Announcer.(All).cd10' 00053 TimeSound(7)=Sound'Announcer.(All).cd9' 00054 TimeSound(8)=Sound'Announcer.(All).cd8' 00055 TimeSound(9)=Sound'Announcer.(All).cd7' 00056 TimeSound(10)=Sound'Announcer.(All).cd6' 00057 TimeSound(11)=Sound'Announcer.(All).cd5' 00058 TimeSound(12)=Sound'Announcer.(All).cd4' 00059 TimeSound(13)=Sound'Announcer.(All).cd3' 00060 TimeSound(14)=Sound'Announcer.(All).cd2' 00061 TimeSound(15)=Sound'Announcer.(All).cd1' 00062 bBeep=False 00063 }