Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

WormbotHandler3SPNv3.WIR_GameHandler_Freon


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
/******************************************************************************
Copyright (c) 2005-2007 by Wormbo <wormbo@online.de>
$Id$

Handler for Freon.
******************************************************************************/


class WIR_GameHandler_Freon extends WIR_GameHandler_TAMv3;


//=============================================================================
// Localization
//=============================================================================

var localized string MsgPlayerThawed;


//== HandleLocalizedMessage ===================================================
/**
Format "thawed" messages.
*/
//=============================================================================

function bool HandleLocalizedMessage(class<LocalMessage> Message, int Switch, PlayerReplicationInfo RelatedPRI_1, PlayerReplicationInfo RelatedPRI_2, Object OptionalObject)
{
  local string Msg;
  
  if ( MyMutator != None && MyMutator.ReportConnection != None ) {
    if ( Message.Name == 'Freon_ThawMessage' ) {
      Msg = Repl(MsgPlayerThawed, "%r", GetRemainingTime(), True);
      Msg = Repl(Msg, "%p", FormatPlayerName(RelatedPRI_1), True);
      MyMutator.ReportConnection.SendMessage(Msg);
      
      return true;
    }
  }
  
  return Super.HandleLocalizedMessage(Message, Switch, RelatedPRI_1, RelatedPRI_2, OptionalObject);
}


//=============================================================================
// Default properties
//=============================================================================

defaultproperties
{
  HandlerGroup = "Wormbot (Freon)"
  MsgPlayerThawed = "[%r] - %p[^O] has been thawed"
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Mo 12.3.2007 10:46:18.000 - Creation time: Do 14.8.2014 09:58:55.546 - Created with UnCodeX