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

UE3:UTTeamGame instance functions (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site

Jump to: navigation, search
UT3 Object >> Actor >> Info >> GameInfo >> UTGame >> UTDeathmatch >> UTTeamGame (instance functions)

Contents

UTTeamGame instance functions in other games:
UDK

[edit] Instance functions

[edit] AdjustSkill

function AdjustSkill (AIController B, PlayerController P, bool bWinner)

Overrides: UTGame.AdjustSkill


[edit] AllowClientToTeleport

function bool AllowClientToTeleport (UTPlayerReplicationInfo ClientPRI, Actor DestinationActor)

Overrides: UTGame.AllowClientToTeleport

This function allows the server to override any requested teleport attempts from a client

Returns:

returns true if the teleport is allowed

[edit] AnnounceScore

function AnnounceScore (int ScoringTeam)


[edit] BalanceTeams

function BalanceTeams (optional bool bForceBalance)


[edit] CampaignSkillAdjust

function CampaignSkillAdjust (UTBot aBot)

Overrides: UTGame.CampaignSkillAdjust

Called to adjust skill when bot respawns

[edit] CanSpectate

function bool CanSpectate (PlayerController Viewer, PlayerReplicationInfo ViewTarget)

Overrides: UTGame.CanSpectate

returns true if Viewer is allowed to spectate ViewTarget

[edit] ChangeTeam

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

Overrides: GameInfo.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

[edit] CheckEndGame

function bool CheckEndGame (PlayerReplicationInfo Winner, string Reason)

Overrides: UTGame.CheckEndGame


[edit] CheckMaxLives

function bool CheckMaxLives (PlayerReplicationInfo Scorer)

Overrides: UTGame.CheckMaxLives


[edit] CheckScore

function bool CheckScore (PlayerReplicationInfo Scorer)

Overrides: UTGame.CheckScore


[edit] CheckTeamBasedAchievements

function CheckTeamBasedAchievements ()


[edit] CreateTeam

function CreateTeam (int TeamIndex)


[edit] DominatingVictory

function bool DominatingVictory ()

Overrides: UTGame.DominatingVictory


[edit] FindNewObjectives

function FindNewObjectives (UTGameObjective DisabledObjective)

Overrides: UTGame.FindNewObjectives

re-evaluate objectives for players because the specified one has been changed/completed

[edit] FindVictimsTarget

function Pawn FindVictimsTarget (Controller Other)


[edit] ForceRespawn

function bool ForceRespawn ()

Overrides: UTGame.ForceRespawn

ForceRespawn() returns true if dead players should respawn immediately force respawn if single player and no bots on team 0

[edit] GetBotTeam

function UTTeamInfo GetBotTeam (optional int TeamBots, optional bool bUseTeamIndex, optional int TeamIndex)

Overrides: UTGame.GetBotTeam


[edit] GetFriendTeam

function byte GetFriendTeam (OnlineSubsystem.UniqueNetId FriendNetId)


[edit] GetHandicapNeed

function int GetHandicapNeed (Pawn Other)

Overrides: UTDeathmatch.GetHandicapNeed

return a value based on how much this pawn needs help

[edit] InitializeBot

function InitializeBot (UTBot NewBot, UTTeamInfo BotTeam, const out UTCustomChar_Data.CharacterInfo BotInfo)

Overrides: UTGame.InitializeBot


[edit] IsAWinner

function bool IsAWinner (PlayerController C)

Overrides: UTGame.IsAWinner


[edit] IsWinningTeam

function bool IsWinningTeam (TeamInfo T)


[edit] LevelRecommendedPlayers

function int LevelRecommendedPlayers ()

Overrides: UTGame.LevelRecommendedPlayers


[edit] Logout

function Logout (Controller Exiting)

Overrides: UTGame.Logout


[edit] NearGoal

function bool NearGoal (Controller C)

returns whether the given game object-holding player was near an objective the game object can be scored at

[edit] NotifyKilled

function NotifyKilled (Controller Killer, Controller KilledPlayer, Pawn KilledPawn)

Overrides: GameInfo.NotifyKilled


[edit] OverridePRI

function OverridePRI (PlayerController PC, PlayerReplicationInfo OldPRI)

Overrides: GameInfo.OverridePRI

OverridePRI() override as needed properties of NewPRI with properties from OldPRI which were assigned during the login process

[edit] ParseSpeechRecipients

function ParseSpeechRecipients (UTPlayerController Speaker, const out array<OnlineSubsystem.SpeechRecognizedWordWords, out array<UTBotRecipients)

parses the given speech for the bots that should receive it

[edit] PickFriendTeam

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

Overrides: GameInfo.PickFriendTeam


[edit] PickTeam

function byte PickTeam (byte num, Controller C)

Overrides: GameInfo.PickTeam


[edit] PlayRegularEndOfMatchMessage

function PlayRegularEndOfMatchMessage ()

Overrides: UTGame.PlayRegularEndOfMatchMessage


[edit] ProcessSpeechOrders

function ProcessSpeechOrders (UTPlayerController Speaker, const out array<OnlineSubsystem.SpeechRecognizedWordWords, const out array<UTBotRecipients)

parses and sends the orders in the given speech to the Recipients

[edit] ProcessSpeechRecognition

function ProcessSpeechRecognition (UTPlayerController Speaker, const out array<OnlineSubsystem.SpeechRecognizedWordWords)

Overrides: UTGame.ProcessSpeechRecognition

parses the given player's recognized speech into bot orders, etc

[edit] RatePlayerStart

function float RatePlayerStart (PlayerStart P, byte Team, Controller Player)

Overrides: UTGame.RatePlayerStart

RatePlayerStart() Return a score representing how desireable a playerstart is.

Parameters:

  • P - is the playerstart being rated
  • Team - is the team of the player choosing the playerstart
  • Player - is the controller choosing the playerstart

Returns:

playerstart score

[edit] ReduceDamage

function ReduceDamage (out int Damage, Pawn injured, Controller instigatedBy, Object.Vector HitLocation, out Object.Vector Momentum, class<DamageTypeDamageType)

Overrides: UTGame.ReduceDamage


[edit] RestartGame

function RestartGame ()

Overrides: UTGame.RestartGame

Balance teams before restarting game

[edit] ScoreKill

function ScoreKill (Controller Killer, Controller Other)

Overrides: UTGame.ScoreKill


[edit] SendFlagKillMessage

function SendFlagKillMessage (Controller Killer, UTPlayerReplicationInfo KillerPRI)


[edit] SetEndGameFocus

function SetEndGameFocus (PlayerReplicationInfo Winner)

Overrides: UTGame.SetEndGameFocus


[edit] SetTeam

function SetTeam (Controller Other, UTTeamInfo NewTeam, bool bNewTeam)

SetTeam() Change Other's team to NewTeam.

Parameters:

  • Other - the controller which wants to change teams
  • NewTeam - the desired team.
  • bNewTeam - if true, broadcast team change notification

[edit] ShowPathTo

function ShowPathTo (PlayerController P, int TeamNum)

Overrides: UTGame.ShowPathTo

displays the path to the given base for the given player

[edit] TooManyBots

function bool TooManyBots (Controller botToRemove)

Overrides: UTGame.TooManyBots

(Description copied from UTGame.TooManyBots)
Look at the current game rules and determine if there are too many bots. In a single player game, this function will always return false since the teams are preset and changes are not allowed.

Parameters:

  • BotToRemove - The Bot to remove

[edit] WriteOnlineStats

function WriteOnlineStats ()

Overrides: UTDeathmatch.WriteOnlineStats

Writes out the stats for the game type

Personal tools