I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX

UE3:UTTeamGame instance functions (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 05:54, 16 August 2009 by Wormbo (Talk | contribs) (added missing members)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
UT3 Object >> Actor >> Info >> GameInfo >> UTGame >> UTDeathmatch >> UTTeamGame (instance functions)
UTTeamGame instance functions in other games:
UDK

Instance functions

AdjustSkill

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

Overrides: UTGame.AdjustSkill


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

AnnounceScore

function AnnounceScore (int ScoringTeam)


BalanceTeams

function BalanceTeams (optional bool bForceBalance)


CampaignSkillAdjust

function CampaignSkillAdjust (UTBot aBot)

Overrides: UTGame.CampaignSkillAdjust

Called to adjust skill when bot respawns

CanSpectate

function bool CanSpectate (PlayerController Viewer, PlayerReplicationInfo ViewTarget)

Overrides: UTGame.CanSpectate

returns true if Viewer is allowed to spectate ViewTarget

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

CheckEndGame

function bool CheckEndGame (PlayerReplicationInfo Winner, string Reason)

Overrides: UTGame.CheckEndGame


CheckMaxLives

function bool CheckMaxLives (PlayerReplicationInfo Scorer)

Overrides: UTGame.CheckMaxLives


CheckScore

function bool CheckScore (PlayerReplicationInfo Scorer)

Overrides: UTGame.CheckScore


CheckTeamBasedAchievements

function CheckTeamBasedAchievements ()


CreateTeam

function CreateTeam (int TeamIndex)


DominatingVictory

function bool DominatingVictory ()

Overrides: UTGame.DominatingVictory


FindNewObjectives

function FindNewObjectives (UTGameObjective DisabledObjective)

Overrides: UTGame.FindNewObjectives

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

FindVictimsTarget

function Pawn FindVictimsTarget (Controller Other)


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

GetBotTeam

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

Overrides: UTGame.GetBotTeam


GetFriendTeam

function byte GetFriendTeam (OnlineSubsystem.UniqueNetId FriendNetId)


GetHandicapNeed

function int GetHandicapNeed (Pawn Other)

Overrides: UTDeathmatch.GetHandicapNeed

return a value based on how much this pawn needs help

InitializeBot

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

Overrides: UTGame.InitializeBot


IsAWinner

function bool IsAWinner (PlayerController C)

Overrides: UTGame.IsAWinner


IsWinningTeam

function bool IsWinningTeam (TeamInfo T)


LevelRecommendedPlayers

function int LevelRecommendedPlayers ()

Overrides: UTGame.LevelRecommendedPlayers


Logout

function Logout (Controller Exiting)

Overrides: UTGame.Logout


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

NotifyKilled

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

Overrides: GameInfo.NotifyKilled


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

ParseSpeechRecipients

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

parses the given speech for the bots that should receive it

PickFriendTeam

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

Overrides: GameInfo.PickFriendTeam


PickTeam

function byte PickTeam (byte num, Controller C)

Overrides: GameInfo.PickTeam


PlayRegularEndOfMatchMessage

function PlayRegularEndOfMatchMessage ()

Overrides: UTGame.PlayRegularEndOfMatchMessage


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

ProcessSpeechRecognition

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

Overrides: UTGame.ProcessSpeechRecognition

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

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

ReduceDamage

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

Overrides: UTGame.ReduceDamage


RestartGame

function RestartGame ()

Overrides: UTGame.RestartGame

Balance teams before restarting game

ScoreKill

function ScoreKill (Controller Killer, Controller Other)

Overrides: UTGame.ScoreKill


SendFlagKillMessage

function SendFlagKillMessage (Controller Killer, UTPlayerReplicationInfo KillerPRI)


SetEndGameFocus

function SetEndGameFocus (PlayerReplicationInfo Winner)

Overrides: UTGame.SetEndGameFocus


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

ShowPathTo

function ShowPathTo (PlayerController P, int TeamNum)

Overrides: UTGame.ShowPathTo

displays the path to the given base for the given player

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

WriteOnlineStats

function WriteOnlineStats ()

Overrides: UTDeathmatch.WriteOnlineStats

Writes out the stats for the game type