Always snap to grid

UE2:ChallengeGame (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT2004 Object >> ChallengeGame
Package: 
XGame
Direct subclasses:
BloodRites, ManoEMano

Single Player Challenge Game code - base class

Written by Michiel Hendriks (c) 2003, Epic Games, Inc. All Rights Reserved

Properties[edit]

ChallengeDescription[edit]

Type: string

Modifiers: localized

description of the challenge

ChallengeMenu[edit]

Type: string

the challenge configuration menu

ChallengeName[edit]

Type: string

Modifiers: localized

name of this challenge

msgFor[edit]

Type: string

Modifiers: localized


Default value: "for"

msgGotChallenged[edit]

Type: string

Modifiers: localized


Default value: "We got challenged"

msgWeChallenged[edit]

Type: string

Modifiers: localized


Default value: "We challenged"

Structs[edit]

TriString[edit]

string GUIPage 
string Param1 
string Param2 

Static functions[edit]

AddHistoryRecord[edit]

static function AddHistoryRecord (UT2K4GameProfile GP, int offset, GameInfo Game, PlayerReplicationInfo PRI, UT2K4MatchInfo MI)

will be called after the default info has been added to the history record. override this to change or append additional into.

canChallenge[edit]

static function bool canChallenge (optional UT2K4GameProfile GP)

Return true when this challenge game can be used to challenge the player

HandleRequirements[edit]

static function bool HandleRequirements (UT2K4GameProfile GP, array<stringSpecialEvent, out array<TriStringGUIPages)

Handle match requirements, return false if a requirement has not been met

HandleSpecialEvent[edit]

static function HandleSpecialEvent (UT2K4GameProfile GP, array<stringSpecialEvent, out array<TriStringGUIPages)

called when the game was a challenge game and was not one of the default special events. Fill the GUIPages array with pages you want to be opened after this special event has been processed. Yes I know this method sucks, but it was the best I could come up with without a lot of changes in the current system.

injureTeamMate[edit]

static function bool injureTeamMate (UT2K4GameProfile GP)

Return true when a team mate _may_ be injured, this does not mean a team mate will be injured. By default only challenged that where initiated by the player may have a team mate injured.

payTeamMates[edit]

static function bool payTeamMates (UT2K4GameProfile GP)

return true when the team mates should be payed

PostRegisterGame[edit]

static function PostRegisterGame (UT2K4GameProfile GP, GameInfo currentGame, PlayerReplicationInfo PRI)

called from GameProfile.RegisterGame() after everything is processed

PreRegisterGame[edit]

static function PreRegisterGame (UT2K4GameProfile GP, GameInfo currentGame, PlayerReplicationInfo PRI)

called from GameProfile.RegisterGame() before anything is processed

StartChallenge[edit]

static function StartChallenge (UT2K4GameProfile GP, LevelInfo myLevel)

start this challenge