UE2:ChallengeGame (UT2004)

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

Single Player Challenge Game code - base class

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

Properties

ChallengeDescription

Type: string

Modifiers: localized

description of the challenge

ChallengeMenu

Type: string

the challenge configuration menu

ChallengeName

Type: string

Modifiers: localized

name of this challenge

msgFor

Type: string

Modifiers: localized


Default value: "for"

msgGotChallenged

Type: string

Modifiers: localized


Default value: "We got challenged"

msgWeChallenged

Type: string

Modifiers: localized


Default value: "We challenged"

Structs

TriString

string GUIPage 
string Param1 
string Param2 

Static functions

AddHistoryRecord

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

static function bool canChallenge (optional UT2K4GameProfile GP)

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

HandleRequirements

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

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

HandleSpecialEvent

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

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

static function bool payTeamMates (UT2K4GameProfile GP)

return true when the team mates should be payed

PostRegisterGame

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

called from GameProfile.RegisterGame() after everything is processed

PreRegisterGame

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

called from GameProfile.RegisterGame() before anything is processed

StartChallenge

static function StartChallenge (UT2K4GameProfile GP, LevelInfo myLevel)

start this challenge