Mostly Harmless

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

Property group 'U2TeamGame'

bNoTeamChanges

Type: bool

Modifiers: config


MaxTeamSize

Type: int

Modifiers: config

max number of playes per team for gamet pe

Default value: 16

NumTeams

Type: int

Modifiers: config

number of teams used by game type

Default value: 2

Score_TeamKill

Type: float


Default value: -1.0

Internal variables

bBalanceTeams

Type: bool

Modifiers: globalconfig

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

Default value: True

bBalancing

Type: bool


BestTeam

Type: U2TeamInfo

used in EndGame logic to determine the camera information

bPlayersBalanceTeams

Type: bool

Modifiers: globalconfig

force players to join the smallest team when changing teams

bScoreTeamKills

Type: bool

Modifiers: config


Default value: True

bSpawnInTeamArea

Type: bool


Default value: True

MaxAllowedTeams

Type: int

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

Default value: 4

NextBotTeam

Type: int


StartupMessage

Type: string

Modifiers: localized


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

StartupTeamMessage

Type: string

Modifiers: localized


Default value: "You are on"

StartupTeamTralier

Type: string

Modifiers: localized

terminator for StartupTeamMessage

Default value: "."

TeamChangeMessage

Type: string

Modifiers: localized


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

TeamColor

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

Type: U2TeamInfo

Array size: 4 (MaxTeams)

Modifiers: protected


Default values

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

Functions

Events

InitGame

event InitGame (string Options, out string Error)

Overrides: U2DeathMatch.InitGame


PreBeginPlay

event PreBeginPlay ()

Overrides: U2GameInfo.PreBeginPlay


Other instance functions

BalanceTeams

function BalanceTeams ()


CanSpectate

function bool CanSpectate (PlayerController Viewer, Actor ViewTarget)

Overrides: U2DeathMatch.CanSpectate


ChangeTeam

function bool ChangeTeam (Controller Other, int InTeamNumber)

Overrides: GameInfo.ChangeTeam


GameEvent

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

Overrides: U2GameInfo.GameEvent


GetBestTeam

function U2TeamInfo GetBestTeam ()


GetRules

function string GetRules ()

Overrides: U2DeathMatch.GetRules


GetTeam

function TeamInfo GetTeam (int InTeamNumber)

Overrides: U2GameInfo.GetTeam


GetTeamNumber

function int GetTeamNumber ()

Overrides: U2DeathMatch.GetTeamNumber


GetWinnder

function Actor GetWinnder ()


GoalLimitMet

function bool GoalLimitMet ()

Overrides: U2DeathMatch.GoalLimitMet


InitBot

function InitBot (U2NPCController NewBot)

Overrides: U2DeathMatch.InitBot


IsTied

function bool IsTied ()

Overrides: U2DeathMatch.IsTied


IsWinner

function bool IsWinner (Controller Player)

Overrides: U2DeathMatch.IsWinner


LogGameParameters

function LogGameParameters ()

Overrides: U2DeathMatch.LogGameParameters


Logout

function Logout (Controller Exiting)

Overrides: U2DeathMatch.Logout


PlayStartupMessage

function PlayStartupMessage (PlayerController NewPlayer)

Overrides: U2DeathMatch.PlayStartupMessage


RatePlayerStart

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

Overrides: U2DeathMatch.RatePlayerStart


ReduceFriendlyDamage

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

Overrides: U2GameInfo.ReduceFriendlyDamage


ScoreKill

function ScoreKill (Controller Killer, Controller Other)

Overrides: U2DeathMatch.ScoreKill


SetEndGameCameras

function SetEndGameCameras ()

Overrides: U2DeathMatch.SetEndGameCameras


ValidTeam

function bool ValidTeam (int InTeamNumber)