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

UE2:U2CTFGame (U2XMP)

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

$Workfile: U2CTFGame.uc $ Created By: Steve Polge Created On: 7/18/2000 $Author: Sbrown $ $Date: 8/17/02 17:30 $ $Revision: 5 $

Properties[edit]

CaptureSound[edit]

Type: Sound

Array size: 2


Default value, index 0: Sound'U2CTFA.CTFCaptured1'

Default value, index 1: Sound'U2CTFA.CTFCaptured2'

CurrentOrders[edit]

Type: name

Array size: 2

AI: used in SetBotOrders() -- called when bots join or leave the game

LastGotFlag[edit]

Type: float

AI: last time "they've got our flag" was said

LastSeeFlagCarrier[edit]

Type: float

AI: last time "flag carrier is here" was said

ReturnSound[edit]

Type: Sound


Default value: Sound'U2CTFA.CTFReturned'

Default values[edit]

Property Value
BeaconName "CTF"
bScoreTeamKills False
GameAIControllerClasses[0] "U2CTF.GameAIControllerCTF"
GameGoal "captures wins the match!"
GameName "Capture the Flag"
GameReplicationInfoClass Class'U2CTF.U2CTFReplicationInfo'
GoalScore 3
MapPrefix "CTF"
MaxAllowedTeams 2
StartupMessage ""

Instance functions[edit]

ClientsPlaySound[edit]

function ClientsPlaySound (Sound ClientSound)


GetEndGameTarget[edit]

function Actor GetEndGameTarget ()

Overrides: U2DeathMatch.GetEndGameTarget


Killed[edit]

function Killed (Controller Killer, Controller Killed, Pawn KilledPawn, class<DamageTypeDamageType)

Overrides: U2DeathMatch.Killed


Logout[edit]

function Logout (Controller Exiting)

Overrides: U2TeamGame.Logout


ScoreFlag[edit]

function ScoreFlag (Pawn Scorer, U2CTFFlag TargetFlag)