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 |
/****************************************************************************** Copyright (c) 2005-2007 by Wormbo <wormbo@online.de> $Id$ Handler for CTF4. ******************************************************************************/ class WIR_GameHandler_OLCTF extends WIR_GameHandler_CTF; //== CriticalPlayer =========================================================== /** Called when the match starts. */ //============================================================================= function bool CriticalPlayer(Controller Player) { return Super.CriticalPlayer(Player) || OLTeamGame(Level.Game) != None && OLTeamGame(Level.Game).CriticalPlayer(Player); } //== HandleKill =============================================================== /** Return True if the handler wants to override the mutator's default behavior. */ //============================================================================= function bool HandleKill(out Controller Killer, out Controller Killed, out class<DamageType> DamageType, out string MsgSuffix) { local array<string> Flags; local int i; if ( Killed != None && OLTeamsPlayerReplicationInfo(Killed.PlayerReplicationInfo) != None ) { for (i = 0; i < OLTeamsPlayerReplicationInfo(Killed.PlayerReplicationInfo).HasFlags.Length; ++i) if ( CTFFlag(OLTeamsPlayerReplicationInfo(Killed.PlayerReplicationInfo).HasFlags[i]) != None ) { LastDropped[LastDropped.Length] = CTFFlag(OLTeamsPlayerReplicationInfo(Killed.PlayerReplicationInfo).HasFlags[i]); Flags[Flags.Length] = GetObjectName(CTFFlag(OLTeamsPlayerReplicationInfo(Killed.PlayerReplicationInfo).HasFlags[i]), True); } if ( Flags.Length > 0 ) MsgSuffix = Repl(StringFlagDropped, "%o", class'WIR_Util'.static.ConcatWithSeparator(Flags), True); return Super(WIR_GameHandler).HandleKill(Killer, Killed, DamageType, MsgSuffix); } return Super.HandleKill(Killer, Killed, DamageType, MsgSuffix); } //============================================================================= // Default properties //============================================================================= defaultproperties { HandlerGroup = "Wormbot (CTF4)" } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |