The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall

UE2:U2TeamGame (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2XMP Object >> Actor >> Info >> GameInfo >> DialogGameInfo >> U2GameInfo >> U2DeathMatch >> U2TeamGame
Package: 
U2
Direct subclasses:
U2CTFGame, U2XMPGame

U2TeamGame.uc $Author: Mfox $ $Date: 9/13/02 11:02a $ $Revision: 12 $

Properties[edit]

Property group 'U2TeamGame'[edit]

bNoTeamChanges[edit]

Type: bool

Modifiers: config


MaxTeamSize[edit]

Type: int

Modifiers: config

max number of playes per team for gamet pe

Default value: 16

NumTeams[edit]

Type: int

Modifiers: config

number of teams used by game type

Default value: 2

Score_TeamKill[edit]

Type: float


Default value: -1.0

Internal variables[edit]

bBalanceTeams[edit]

Type: bool

Modifiers: globalconfig

bots should move to balance teams when players are added in AddToTeam()

Default value: True

bBalancing[edit]

Type: bool


BestTeam[edit]

Type: U2TeamInfo

used in EndGame logic to determine the camera information

bPlayersBalanceTeams[edit]

Type: bool

Modifiers: globalconfig

force players to join the smallest team when changing teams

bScoreTeamKills[edit]

Type: bool

Modifiers: config


Default value: True

bSpawnInTeamArea[edit]

Type: bool


Default value: True

MaxAllowedTeams[edit]

Type: int

maximum number of teams for this game type (limited to 2 in CTF)

Default value: 4

NextBotTeam[edit]

Type: int


StartupMessage[edit]

Type: string

Modifiers: localized


Default value: "Work with your teammates against the other teams."

StartupTeamMessage[edit]

Type: string

Modifiers: localized


Default value: "You are on"

StartupTeamTralier[edit]

Type: string

Modifiers: localized

terminator for StartupTeamMessage

Default value: "."

TeamChangeMessage[edit]

Type: string

Modifiers: localized


Default value: "Use Options->Player Setup to change teams."

TeamColor[edit]

Type: string

Array size: 4 (MaxTeams)

Modifiers: localized

Red, Blue, Green, Gold

Default value, index 0: "Red"

Default value, index 1: "Blue"

Default value, index 2: "Green"

Default value, index 3: "Gold"

Teams[edit]

Type: U2TeamInfo

Array size: 4 (MaxTeams)

Modifiers: protected


Default values[edit]

Property Value
bCanChangeSkin False
BeaconName "TDM"
bTeamGame True
GameName "Team Deathmatch Game"
MultiplayerPlayerWait 17

Functions[edit]

Events[edit]

InitGame[edit]

event InitGame (string Options, out string Error)

Overrides: U2DeathMatch.InitGame


PreBeginPlay[edit]

event PreBeginPlay ()

Overrides: U2GameInfo.PreBeginPlay


Other instance functions[edit]

BalanceTeams[edit]

function BalanceTeams ()


CanSpectate[edit]

function bool CanSpectate (PlayerController Viewer, Actor ViewTarget)

Overrides: U2DeathMatch.CanSpectate


ChangeTeam[edit]

function bool ChangeTeam (Controller Other, int InTeamNumber)

Overrides: GameInfo.ChangeTeam


GameEvent[edit]

function GameEvent (name EventName, Actor Instigator, optional Actor OtherActor, optional name OtherInfo)

Overrides: U2GameInfo.GameEvent


GetBestTeam[edit]

function U2TeamInfo GetBestTeam ()


GetRules[edit]

function string GetRules ()

Overrides: U2DeathMatch.GetRules


GetTeam[edit]

function TeamInfo GetTeam (int InTeamNumber)

Overrides: U2GameInfo.GetTeam


GetTeamNumber[edit]

function int GetTeamNumber ()

Overrides: U2DeathMatch.GetTeamNumber


GetWinnder[edit]

function Actor GetWinnder ()


GoalLimitMet[edit]

function bool GoalLimitMet ()

Overrides: U2DeathMatch.GoalLimitMet


InitBot[edit]

function InitBot (U2NPCController NewBot)

Overrides: U2DeathMatch.InitBot


IsTied[edit]

function bool IsTied ()

Overrides: U2DeathMatch.IsTied


IsWinner[edit]

function bool IsWinner (Controller Player)

Overrides: U2DeathMatch.IsWinner


LogGameParameters[edit]

function LogGameParameters ()

Overrides: U2DeathMatch.LogGameParameters


Logout[edit]

function Logout (Controller Exiting)

Overrides: U2DeathMatch.Logout


PlayStartupMessage[edit]

function PlayStartupMessage (PlayerController NewPlayer)

Overrides: U2DeathMatch.PlayStartupMessage


RatePlayerStart[edit]

function float RatePlayerStart (NavigationPoint N, byte Team, Controller Player)

Overrides: U2DeathMatch.RatePlayerStart


ReduceFriendlyDamage[edit]

function int ReduceFriendlyDamage (int Damage, Pawn Injured, Pawn Instigator, Object.Vector HitLocation, Object.Vector Momentum, class<DamageTypeDamageType)

Overrides: U2GameInfo.ReduceFriendlyDamage


ScoreKill[edit]

function ScoreKill (Controller Killer, Controller Other)

Overrides: U2DeathMatch.ScoreKill


SetEndGameCameras[edit]

function SetEndGameCameras ()

Overrides: U2DeathMatch.SetEndGameCameras


ValidTeam[edit]

function bool ValidTeam (int InTeamNumber)