Mostly Harmless

UE3:UTDuelGame (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT3 Object >> Actor >> Info >> GameInfo >> UTGame >> UTDeathmatch >> UTTeamGame >> UTDuelGame
Package: 
UTGame

Copyright 1998-2008 Epic Games, Inc. All Rights Reserved.

Properties[edit]

bRotateQueueEachKill[edit]

Type: bool

whether to rotate the queue each kill instead of each round (Survival mode)

CurrentRound[edit]

Type: int

current round number

Default value: 1

NumRounds[edit]

Type: int

Modifiers: config

how many rounds before we switch maps

Default value: 1

Queue[edit]

Type: array<UTDuelPRI>

queue of players that will take on the winner

Default values[edit]

Property Value
Acronym "Duel"
bIgnoreTeamForVoiceChat True
bWeaponStay False
Description "1v1"
GameName "Duel"
GoalScore 0
HUDType Class'UTGame.UTDuelHUD'
MidgameScorePanelTag 'DuelPanel'
OnlineGameSettingsClass Class'UTGame.UTGameSettingsDUEL'
OnlineStatsWriteClass Class'UTGame.UTLeaderboardWriteDUEL'
PlayerReplicationInfoClass Class'UTGame.UTDuelPRI'
ResetTimeDelay 15
TimeLimit 5

Functions[edit]

Static functions[edit]

AllowMutator[edit]

static function bool AllowMutator (string MutatorClassName)

Overrides: UTGame.AllowMutator


GetEndOfMatchRules[edit]

static function string GetEndOfMatchRules (int InGoalScore, int InTimeLimit)

Overrides: UTGame.GetEndOfMatchRules

Returns:

a string that describes how to win the match

Events[edit]

HandleSeamlessTravelPlayer[edit]

event HandleSeamlessTravelPlayer (out Controller C)

Overrides: UTTeamGame.HandleSeamlessTravelPlayer

(Description copied from GameInfo.HandleSeamlessTravelPlayer)
handles reinitializing players that remained through a seamless level transition called from C++ for players that finished loading after the server

Parameters:

  • C - the Controller to handle

InitGame[edit]

event InitGame (string Options, out string ErrorMessage)

Overrides: UTTeamGame.InitGame


PostLogin[edit]

event PostLogin (PlayerController NewPlayer)

Overrides: UTTeamGame.PostLogin


PostSeamlessTravel[edit]

event PostSeamlessTravel ()

Overrides: UTTeamGame.PostSeamlessTravel

called after a seamless level transition has been completed on the *new* GameInfo used to reinitialize players already in the game as they won't have *Login() called on them

Other instance functions[edit]

AddBot[edit]

function UTBot AddBot (optional string botName, optional bool bUseTeamIndex, optional int TeamIndex)

Overrides: UTGame.AddBot


AddToQueue[edit]

function AddToQueue (UTDuelPRI Who)


AllowBecomeActivePlayer[edit]

function bool AllowBecomeActivePlayer (PlayerController P)

Overrides: UTGame.AllowBecomeActivePlayer


CanSpectate[edit]

function bool CanSpectate (PlayerController Viewer, PlayerReplicationInfo ViewTarget)

Overrides: UTTeamGame.CanSpectate

returns true if Viewer is allowed to spectate ViewTarget

ChangeTeam[edit]

function bool ChangeTeam (Controller Other, int num, bool bNewTeam)

Overrides: UTTeamGame.ChangeTeam

(Description copied from UTTeamGame.ChangeTeam)
ChangeTeam() verify whether controller Other is allowed to change team, and if so change his team by calling SetTeam().

Parameters:

  • Other - the controller which wants to change teams
  • num - the teamindex of the desired team. If 255, pick the smallest team.
  • bNewTeam - if true, broadcast team change notification

CheckEndGame[edit]

function bool CheckEndGame (PlayerReplicationInfo Winner, string Reason)

Overrides: UTTeamGame.CheckEndGame


GetPlayerFromQueue[edit]

function Controller GetPlayerFromQueue ()

removes a player from the queue, sets it up to play, and returns the Controller

Note: doesn't spawn the player in (i.e. doesn't call RestartPlayer()), calling code is responsible for that

Logout[edit]

function Logout (Controller Exiting)

Overrides: UTTeamGame.Logout


PickFriendTeam[edit]

function byte PickFriendTeam (byte Current, Controller C, OnlineSubsystem.UniqueNetId FriendNetId)

Overrides: UTTeamGame.PickFriendTeam


ProcessServerTravel[edit]

function ProcessServerTravel (string URL, optional bool bAbsolute)

Overrides: UTGame.ProcessServerTravel


ResetLevel[edit]

function ResetLevel ()

Overrides: GameInfo.ResetLevel

Resets level by calling Reset() on all actors

RestartGame[edit]

function RestartGame ()

Overrides: UTTeamGame.RestartGame

Skip UTTeamGame team rebalancing

RestartPlayer[edit]

function RestartPlayer (Controller aPlayer)

Overrides: UTGame.RestartPlayer


ScoreKill[edit]

function ScoreKill (Controller Killer, Controller Other)

Overrides: UTTeamGame.ScoreKill


StartBots[edit]

function StartBots ()

Overrides: GameInfo.StartBots


StartHumans[edit]

function StartHumans ()

Overrides: GameInfo.StartHumans


UpdateCombatants[edit]

function UpdateCombatants ()

figures out the new combatants for the next round

UpdateQueuePositions[edit]

function UpdateQueuePositions ()

updates QueuePosition for all players in the queue

WriteOnlinePlayerScores[edit]

function WriteOnlinePlayerScores ()

Overrides: UTGame.WriteOnlinePlayerScores

Write player scores used in skill calculations

WriteOnlineStats[edit]

function WriteOnlineStats ()

Overrides: UTTeamGame.WriteOnlineStats

Writes out the stats for the DUEL game type - specatators don't report/survival mode mutator check

States[edit]

RoundOver[edit]

RoundOver.ResetLevel[edit]

function ResetLevel ()

Overrides: UTGame.RoundOver.ResetLevel

Resets level by calling Reset() on all actors