There is no spoon

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

bRotateQueueEachKill

Type: bool

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

CurrentRound

Type: int

current round number

Default value: 1

NumRounds

Type: int

Modifiers: config

how many rounds before we switch maps

Default value: 1

Queue

Type: array<UTDuelPRI>

queue of players that will take on the winner

Default values

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

Static functions

AllowMutator

static function bool AllowMutator (string MutatorClassName)

Overrides: UTGame.AllowMutator


GetEndOfMatchRules

static function string GetEndOfMatchRules (int InGoalScore, int InTimeLimit)

Overrides: UTGame.GetEndOfMatchRules

Returns:

a string that describes how to win the match

Events

HandleSeamlessTravelPlayer

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

event InitGame (string Options, out string ErrorMessage)

Overrides: UTTeamGame.InitGame


PostLogin

event PostLogin (PlayerController NewPlayer)

Overrides: UTTeamGame.PostLogin


PostSeamlessTravel

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

AddBot

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

Overrides: UTGame.AddBot


AddToQueue

function AddToQueue (UTDuelPRI Who)


AllowBecomeActivePlayer

function bool AllowBecomeActivePlayer (PlayerController P)

Overrides: UTGame.AllowBecomeActivePlayer


CanSpectate

function bool CanSpectate (PlayerController Viewer, PlayerReplicationInfo ViewTarget)

Overrides: UTTeamGame.CanSpectate

returns true if Viewer is allowed to spectate ViewTarget

ChangeTeam

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

function bool CheckEndGame (PlayerReplicationInfo Winner, string Reason)

Overrides: UTTeamGame.CheckEndGame


GetPlayerFromQueue

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

function Logout (Controller Exiting)

Overrides: UTTeamGame.Logout


PickFriendTeam

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

Overrides: UTTeamGame.PickFriendTeam


ProcessServerTravel

function ProcessServerTravel (string URL, optional bool bAbsolute)

Overrides: UTGame.ProcessServerTravel


ResetLevel

function ResetLevel ()

Overrides: GameInfo.ResetLevel

Resets level by calling Reset() on all actors

RestartGame

function RestartGame ()

Overrides: UTTeamGame.RestartGame

Skip UTTeamGame team rebalancing

RestartPlayer

function RestartPlayer (Controller aPlayer)

Overrides: UTGame.RestartPlayer


ScoreKill

function ScoreKill (Controller Killer, Controller Other)

Overrides: UTTeamGame.ScoreKill


StartBots

function StartBots ()

Overrides: GameInfo.StartBots


StartHumans

function StartHumans ()

Overrides: GameInfo.StartHumans


UpdateCombatants

function UpdateCombatants ()

figures out the new combatants for the next round

UpdateQueuePositions

function UpdateQueuePositions ()

updates QueuePosition for all players in the queue

WriteOnlinePlayerScores

function WriteOnlinePlayerScores ()

Overrides: UTGame.WriteOnlinePlayerScores

Write player scores used in skill calculations

WriteOnlineStats

function WriteOnlineStats ()

Overrides: UTTeamGame.WriteOnlineStats

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

States

RoundOver

RoundOver.ResetLevel

function ResetLevel ()

Overrides: UTGame.RoundOver.ResetLevel

Resets level by calling Reset() on all actors