Once I get that upgrade to 36-hour days, I will tackle that. – Mychaeel

UE2:BloodRites (UT2004)

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

Single Player Challenge Game code A blood rite challenge is a challenge against an whole team. The prize is a exchange of team mates.

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

Properties[edit]

ChalFeeMultiply[edit]

Type: float

entry fee multiplicator of the bot's price

Default value: 3.0

TradeMenu[edit]

Type: string

The trade menu

Default value: "GUI2K4.UT2K4SP_CGBRTrade"

UntradeMenu[edit]

Type: string

menu to display when we lost out team mate

Default value: "GUI2K4.UT2K4SP_CGBRUntrade"

Default values[edit]

Property Value
ChallengeDescription "Challenge an enemy team for one for their team mates."
ChallengeMenu "GUI2K4.UT2K4SP_CGBloodRites"
ChallengeName "Bloodrites"

Static functions[edit]

AddHistoryRecord[edit]

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

Overrides: ChallengeGame.AddHistoryRecord

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)

Overrides: ChallengeGame.canChallenge

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

HandleSpecialEvent[edit]

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

Overrides: ChallengeGame.HandleSpecialEvent

We have two special events: TRADE and UNTRADE Both have the arguments <teamname> <playername> In case of TRADE you get a player to add to your team, unless your team is already full, then you have to remove one firts. UNTRADE will just give you the message that a team mate has been removed from your team.

payTeamMates[edit]

static function bool payTeamMates (UT2K4GameProfile GP)

Overrides: ChallengeGame.payTeamMates

return true when the team mates should be payed

PostRegisterGame[edit]

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

Overrides: ChallengeGame.PostRegisterGame

when we where challenged the SpecialEvent logic goes the other way around

StartChallenge[edit]

static function StartChallenge (UT2K4GameProfile GP, LevelInfo myLevel)

Overrides: ChallengeGame.StartChallenge

start this challenge