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

WormbotReporter.WIR_GameHandler_Onslaught

Extends
WIR_GameHandler

Copyright (c) 2005-2007 by Wormbo $Id$

Core.Object
|   
+-- Engine.Actor
   |   
   +-- Engine.Info
      |   
      +-- WormbotReporter.WIR_ModHandler
         |   
         +-- WormbotReporter.WIR_GameHandler
            |   
            +-- WormbotReporter.WIR_GameHandler_Onslaught

Constants Summary
CORESTAGE_ACTIVE=0
CORESTAGE_CONSTRUCTING=2
CORESTAGE_DESTROYED=1
CORESTAGE_DISABLED=255
CORESTAGE_NEUTRAL=4
CORESTAGE_RECONSTITUTION=5
CORESTAGE_RESET=3
NUM_DIRECTIONS=16

Variables Summary
boolbReportNodeLocations
boolbReportNodesInScores
intCoreAttackReportInterval
array<float>CoreAttackTime
intCoreHealthReportInterval
stringCurrentSetupName
stringdescCoreAttackReportInterval
stringdescCoreHealthReportInterval
stringdescReportNodeLocations
stringdescReportNodesInScores
array<int>LastCoreHealth
stringlblCoreAttackReportInterval
stringlblCoreHealthReportInterval
stringlblReportNodeLocations
stringlblReportNodesInScores
stringMsgListCoreHealth
stringMsgListPowercores
stringMsgListPowernodes
stringMsgPowerCoreUnderAttack
stringMsgPowernodeConstructing
stringMsgPowernodeConstructingPlayer
stringMsgPowernodeConstructionFinished
stringMsgPowernodeDestroyed
stringMsgPowernodeDestroyedConstructing
floatNextCoreHealthTime
array<int>PowerCores
array<TPowerNode>PowerNodes
stringStringCenter
stringStringCoreHealth
stringStringDirection[NUM_DIRECTIONS]
stringStringInner
stringStringLinkSetupCustom
stringStringLinkSetupOfficial
stringStringNodeName
stringStringOuter
stringStringPowerCore
stringStringPowerNode
stringStringSuffixIsolated
stringStringSuffixIsolatedMultiple
stringStringSuffixNodeStates
stringStringSuffixNotIsolated
stringStringSuffixNotIsolatedMultiple
stringStringSuffixSave
stringStringSuffixSaveMultiple
stringStringSuffixVulnerable
stringStringSuffixVulnerableMultiple
stringStringUnused
Inherited Variables from WormbotReporter.WIR_GameHandler
bAnnounceOutOfLives, bReportKillingSprees, bReportLocations, bReportMultiKills, bReportSpecial, bReportWeapons, bScoreEndsRound, ColumnAlign, dataReportKills, dataReportPickups, descGameHandler, descReportKillingSprees, descReportKills, descReportLocations, descReportMultiKills, descReportPickups, descReportSpecial, descReportWeapons, descScoreReportDelay, GameHandler, lblGameHandler, lblReportKillingSprees, lblReportKills, lblReportLocations, lblReportMultiKills, lblReportPickups, lblReportSpecial, lblReportWeapons, lblScoreReportDelay, MsgClientMessage, MsgCurrentTeamScores, MsgGameEndFragLimit, MsgGameEndLastMan, MsgGameEndRoundLimit, MsgGameEndTeamScoreLimit, MsgGameEndTimeLimit, MsgGameFirstBlood, MsgGameInfo, MsgGameInProgress, MsgGameMaxLives, MsgGameOvertime, MsgGameScoreLimit, MsgGameStarted, MsgGameTimeLimit, MsgLastSecondSave, MsgPlayerScoredMultiKill, MsgScoreboard, MsgSpreeEndKill, MsgSpreeEndSuicideFemale, MsgSpreeEndSuicideMale, MsgSpreeEndTeamKill, MsgSpreeStart[6], ReportKills, ReportPickups, ScoreReportDelay, StringNameBomb, StringNameCore, StringNameFlag, StringNameFlags, StringPrefixOvertime, StringScoreTemplate, StringSuffixOvertime, StringSuffixWinnerPlayer, StringSuffixWinnerTeam, StringSuffixWinnerTeams, StringTableHeader, StringTableSeparator, StringTeamScore, StringTimeNotPlaying
Inherited Variables from WormbotReporter.WIR_ModHandler
bMatchStarted, descModHandler, HandlerGroup, lblModHandler, ModHandler, MyMutator, NextHandler

Structures Summary
TPowerNode
Node, Volume, LastCoreStage, LastTeamIndex, bWasIsolated, bWasVulnerable, ScaledLocation, DistToCenter, Direction, LocationName
Inherited Structures from WormbotReporter.WIR_GameHandler
TGameHandler
Inherited Structures from WormbotReporter.WIR_ModHandler
TModHandler

Functions Summary
function CalcNodeLocations (array<int> Nodes, bool bInnerNodes, optional bool bAddOuterString))
function FillPlayInfo (PlayInfo PlayInfo))
functionint FindNodeIndex (ONSPowercore Node))
functionActor GetClosestGameObjective (vector DesiredLocation))
eventstring GetDescriptionText (string PropertyName))
functionstring GetGameInfoString ()))
functionbool GetLocationNameFor (Actor A, out string LocName))
functionstring GetObjectiveName (GameObjective GO, optional bool bTeamColored))
functionbool HandleLocalizedMessage (class<LocalMessage> Message, int Switch, PlayerReplicationInfo RelatedPRI_1, PlayerReplicationInfo RelatedPRI_2, Object OptionalObject))
function NodeChangedCoreStage (ONSPowerNode Node, int NewCoreStage, int OldCoreStage, int LastTeam))
function PostBeginPlay ()))
function ReportScores ()))
function Tick (float DeltaTime))
Inherited Functions from WormbotReporter.WIR_GameHandler
AddRow, CriticalPlayer, FillPlayInfo, FormatPlayerName, GetClosestGameObjective, GetDescriptionText, GetGameInfoString, GetObjectiveName, GetObjectName, GetRemainingTime, HandleEndGame, HandleKill, HandleLocalizedMessage, HandleStringMessage, InOrder, MatchStarting, ReportScores
Inherited Functions from WormbotReporter.WIR_ModHandler
AcceptPlayInfoProperty, AddHandler, CriticalPlayer, Destroyed, FillPlayInfo, FormatPlayerName, GetDescriptionText, GetLocationNameFor, GetObjectiveName, GetObjectName, GetRemainingTime, HandleEndGame, HandleEndRound, HandleKill, HandleLocalizedMessage, HandleNewRound, HandleStringMessage, MatchStarting, Mutate, PostBeginPlay, ScoreObjective, UpdateLocationNames


Constants Detail

CORESTAGE_ACTIVE Source code

const CORESTAGE_ACTIVE = 0;

CORESTAGE_CONSTRUCTING Source code

const CORESTAGE_CONSTRUCTING = 2;

CORESTAGE_DESTROYED Source code

const CORESTAGE_DESTROYED = 1;

CORESTAGE_DISABLED Source code

const CORESTAGE_DISABLED = 255;

CORESTAGE_NEUTRAL Source code

const CORESTAGE_NEUTRAL = 4;

CORESTAGE_RECONSTITUTION Source code

const CORESTAGE_RECONSTITUTION = 5;

CORESTAGE_RESET Source code

const CORESTAGE_RESET = 3;

NUM_DIRECTIONS Source code

const NUM_DIRECTIONS = 16;


Variables Detail

bReportNodeLocations Source code

var config bool bReportNodeLocations;

bReportNodesInScores Source code

var config bool bReportNodesInScores;

CoreAttackReportInterval Source code

var config int CoreAttackReportInterval;

CoreAttackTime Source code

var array<float> CoreAttackTime;

CoreHealthReportInterval Source code

var config int CoreHealthReportInterval;

CurrentSetupName Source code

var string CurrentSetupName;

descCoreAttackReportInterval Source code

var localized string descCoreAttackReportInterval;

descCoreHealthReportInterval Source code

var localized string descCoreHealthReportInterval;

descReportNodeLocations Source code

var localized string descReportNodeLocations;

descReportNodesInScores Source code

var localized string descReportNodesInScores;

LastCoreHealth Source code

var array<int> LastCoreHealth;

lblCoreAttackReportInterval Source code

var localized string lblCoreAttackReportInterval;

lblCoreHealthReportInterval Source code

var localized string lblCoreHealthReportInterval;

lblReportNodeLocations Source code

var localized string lblReportNodeLocations;

lblReportNodesInScores Source code

var localized string lblReportNodesInScores;

MsgListCoreHealth Source code

var localized string MsgListCoreHealth;

MsgListPowercores Source code

var localized string MsgListPowercores;

MsgListPowernodes Source code

var localized string MsgListPowernodes;

MsgPowerCoreUnderAttack Source code

var localized string MsgPowerCoreUnderAttack;

MsgPowernodeConstructing Source code

var localized string MsgPowernodeConstructing;

MsgPowernodeConstructingPlayer Source code

var localized string MsgPowernodeConstructingPlayer;

MsgPowernodeConstructionFinished Source code

var localized string MsgPowernodeConstructionFinished;

MsgPowernodeDestroyed Source code

var localized string MsgPowernodeDestroyed;

MsgPowernodeDestroyedConstructing Source code

var localized string MsgPowernodeDestroyedConstructing;

NextCoreHealthTime Source code

var float NextCoreHealthTime;

PowerCores Source code

var array<int> PowerCores;

PowerNodes Source code

var array<TPowerNode> PowerNodes;

StringCenter Source code

var localized string StringCenter;

StringCoreHealth Source code

var localized string StringCoreHealth;

StringDirection[NUM_DIRECTIONS] Source code

var localized string StringDirection[NUM_DIRECTIONS];

StringInner Source code

var localized string StringInner;

StringLinkSetupCustom Source code

var localized string StringLinkSetupCustom;

StringLinkSetupOfficial Source code

var localized string StringLinkSetupOfficial;

StringNodeName Source code

var localized string StringNodeName;

StringOuter Source code

var localized string StringOuter;

StringPowerCore Source code

var localized string StringPowerCore;

StringPowerNode Source code

var localized string StringPowerNode;

StringSuffixIsolated Source code

var localized string StringSuffixIsolated;

StringSuffixIsolatedMultiple Source code

var localized string StringSuffixIsolatedMultiple;

StringSuffixNodeStates Source code

var localized string StringSuffixNodeStates;

StringSuffixNotIsolated Source code

var localized string StringSuffixNotIsolated;

StringSuffixNotIsolatedMultiple Source code

var localized string StringSuffixNotIsolatedMultiple;

StringSuffixSave Source code

var localized string StringSuffixSave;

StringSuffixSaveMultiple Source code

var localized string StringSuffixSaveMultiple;

StringSuffixVulnerable Source code

var localized string StringSuffixVulnerable;

StringSuffixVulnerableMultiple Source code

var localized string StringSuffixVulnerableMultiple;

StringUnused Source code

var localized string StringUnused;


Structures Detail

TPowerNode Source code

struct TPowerNode
{
var bool bWasIsolated;
var bool bWasVulnerable;
var float Direction;
var float DistToCenter;
var int LastCoreStage;
var int LastTeamIndex;
var string LocationName;
var ONSPowerCore Node;
var vector ScaledLocation;
var Volume Volume;
};



Functions Detail

CalcNodeLocations Source code

function CalcNodeLocations ( array<int> Nodes, bool bInnerNodes, optional bool bAddOuterString) )
Tries to assign each node in the array a unique direction name.

FillPlayInfo Source code

static function FillPlayInfo ( PlayInfo PlayInfo) )
Add the configuration options to the PlayInfo.

FindNodeIndex Source code

final function int FindNodeIndex ( ONSPowercore Node) )
Returns the powernode's index in the PowerNodes array or -1 if not found.

GetClosestGameObjective Source code

function Actor GetClosestGameObjective ( vector DesiredLocation) )
Called when the match starts.

GetDescriptionText Source code

static event string GetDescriptionText ( string PropertyName) )
Returns a description for the specified configuration option.

GetGameInfoString Source code

function string GetGameInfoString ( ) )
Returns a string describing the game type and map.

GetLocationNameFor Source code

function bool GetLocationNameFor ( Actor A, out string LocName) )
Returns true if LocName should be used as location name for the actor.

GetObjectiveName Source code

function string GetObjectiveName ( GameObjective GO, optional bool bTeamColored) )
Returns a GameObjective's name.

HandleLocalizedMessage Source code

function bool HandleLocalizedMessage ( class<LocalMessage> Message, int Switch, PlayerReplicationInfo RelatedPRI_1, PlayerReplicationInfo RelatedPRI_2, Object OptionalObject) )
Return True if the message should not be reported through the default event.

NodeChangedCoreStage Source code

function NodeChangedCoreStage ( ONSPowerNode Node, int NewCoreStage, int OldCoreStage, int LastTeam) )
A Power Node or Power core changed its CoreStage.

PostBeginPlay Source code

function PostBeginPlay ( ) )
Update the node numbers on dedicated servers and initialize PowerNodes array.

ReportScores Source code

function ReportScores ( ) )
Report the powernode status right after the scoreboard.

Tick Source code

function Tick ( float DeltaTime) )
Checks for start and end of waves.


Defaultproperties

defaultproperties
{
	bReportNodeLocations      = True
	bReportNodesInScores      = True
	CoreHealthReportInterval  = 15
	CoreAttackReportInterval  = 10
	ReportPickups             = 1


	StringLinkSetupCustom   = " Custom Link Setup: [^B]%s[^B]"
	StringLinkSetupOfficial = " Official Link Setup: [^B]%s[^B]"


	StringDirection(0)  = "North"
	StringDirection(1)  = "North-NorthWest"
	StringDirection(2)  = "NorthWest"
	StringDirection(3)  = "West-NorthWest"
	StringDirection(4)  = "West"
	StringDirection(5)  = "West-SouthWest"
	StringDirection(6)  = "SouthWest"
	StringDirection(7)  = "South-SouthWest"
	StringDirection(8)  = "South"
	StringDirection(9)  = "South-SouthEast"
	StringDirection(10) = "SouthEast"
	StringDirection(11) = "East-SouthEast"
	StringDirection(12) = "East"
	StringDirection(13) = "East-NorthEast"
	StringDirection(14) = "NorthEast"
	StringDirection(15) = "North-NorthEast"


	StringCenter    = "Center"
	StringUnused    = "Unused"
	StringInner     = "Inner %d"
	StringOuter     = "Outer %d"
	StringPowerNode = "Powernode"
	StringPowerCore = "Powercore"
	StringNodeName  = "%n[^O] (%d)"


	MsgPowernodeConstructing          = "[%r] - [^B]%t %n[^O] [^B]under construction[^B]"
	MsgPowernodeConstructingPlayer    = "[%r] - [^B]%t %n[^O] [^B]under construction[^B] by %p[^O]"
	MsgPowernodeConstructionFinished  = "[%r] - [^B]%t %n[^O] [^B]constructed[^B]"
	MsgPowernodeDestroyed             = "[%r] - [^B]%t %n[^O] [^B]destroyed[^B]"
	MsgPowernodeDestroyedConstructing = "[%r] - [^B]%t %n[^O] [^B]construction aborted[^B]"
	MsgPowerCoreUnderAttack           = "[%r] - [^B]%c[^O] is [^B]under attack[^B]"


	MsgListPowercores = " Powercores: %n[^O]"
	MsgListPowernodes = "[^B]Powernodes:[^B] %n[^O]"
	MsgListCoreHealth = "[%r] [^B]Powercore Health Status:[^B] %c"
	StringCoreHealth = "[^B]%c[^O] is at [^B]%p%[^B]"


	StringSuffixNodeStates          = " - %m"
	StringSuffixVulnerable          = "[^B]%n[^O] is [^B]vulnerable[^B]"
	StringSuffixVulnerableMultiple  = "[^B]%n[^O] are [^B]vulnerable[^B]"
	StringSuffixSave                = "[^B]%n[^O] is [^B]safe[^B]"
	StringSuffixSaveMultiple        = "[^B]%n[^O] are [^B]safe[^B]"
	StringSuffixIsolated            = "%n[^O] is isolated"
	StringSuffixIsolatedMultiple    = "%n[^O] are isolated"
	StringSuffixNotIsolated         = "%n[^O] is no longer isolated"
	StringSuffixNotIsolatedMultiple = "%n[^O] are no longer isolated"


	HandlerGroup = "Wormbot (Onslaught)"


	lblReportNodeLocations      = "Report node locations"
	lblReportNodesInScores      = "Report nodes in scores"
	lblCoreHealthReportInterval = "Core health report interval"
	lblCoreAttackReportInterval = "Core attack report interval"


	descReportNodeLocations       = "Add the location relative to the center of the map to each powernode's and powercore's name."
	descReportNodesInScores       = "Report the status of all powernodes right after reporting the scoreboard."
	descCoreHealthReportInterval  = "Minimum time before reporting powercore health again."
	descCoreAttackReportInterval  = "Minimum time before reporting again, that a specific powercore is under attack."
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: Do 14.8.2014 09:58:29.768 - Created with UnCodeX