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

UE2:CTFGame (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT2004 Object >> Actor >> Info >> GameInfo >> UnrealMPGameInfo >> DeathMatch >> TeamGame >> CTFGame
Package: 
UnrealGame
Direct subclass:
XCTFGame
This class in other games:
UT, UT2003

CTFGame.

Properties[edit]

Property group 'LoadingHints'[edit]

CTFHints[edit]

Type: array<string>

Modifiers: private, localized


Default value, index 0: "You can use %BASEPATH 0% to see the path to the Red Team base and %BASEPATH 1% to see the path to the Blue Team base."

Default value, index 1: "Firing the translocator sends out your translocator beacon. Pressing %FIRE% again returns the beacon, while pressing %A:TFIRE% teleports you instantly to the beacon's location (if you fit)."

Default value, index 2: "Using the translocator to teleport while carrying the flag will cause you to drop the flag."

Default value, index 3: "Pressing %SWITCHWEAPON 10% after tossing the Translocator allows you to view from its internal camera."

Default value, index 4: "Pressing %FIRE% while your %ALTFIRE% is still held down after teleporting with the translocator will switch you back to your previous weapon."

Default values[edit]

Property Value
ADR_Kill 2.0
bAllowTrans True
bDefaultTranslocator True
BeaconName "CTF"
bMustHaveMultiplePlayers False
bScoreTeamKills False
bScoreVictimsTarget True
bSpawnInTeamArea True
Description "Your team must score flag captures by taking the enemy flag from the enemy base and returning it to their own flag. If the flag carrier is killed, the flag drops to the ground for anyone to pick up. If your team's flag is taken, it must be returned (by touching it after it is dropped) before your team can score a flag capture."
GoalScore 3
MapPrefix "CTF"
TeamAIType[0] Class'UnrealGame.CTFTeamAI'
TeamAIType[1] Class'UnrealGame.CTFTeamAI'

Functions[edit]

Static functions[edit]

GetAllLoadHints[edit]

static function array<stringGetAllLoadHints (optional bool bThisClassOnly)

Overrides: TeamGame.GetAllLoadHints


OrderToIndex[edit]

static function int OrderToIndex (int Order)

Overrides: GameInfo.OrderToIndex


PrecacheGameAnnouncements[edit]

static function PrecacheGameAnnouncements (AnnouncerVoice V, bool bRewardSounds)

Overrides: TeamGame.PrecacheGameAnnouncements


Events[edit]

PostBeginPlay[edit]

event PostBeginPlay ()

Overrides: TeamGame.PostBeginPlay


Other instance functions[edit]

CheckEndGame[edit]

function bool CheckEndGame (PlayerReplicationInfo Winner, string Reason)

Overrides: TeamGame.CheckEndGame


DiscardInventory[edit]

function DiscardInventory (Pawn Other)

Overrides: GameInfo.DiscardInventory


GetGameObject[edit]

function GameObject GetGameObject (name GameObjectName)

Overrides: UnrealMPGameInfo.GetGameObject


Logout[edit]

function Logout (Controller Exiting)

Overrides: DeathMatch.Logout


NearGoal[edit]

function bool NearGoal (Controller C)

Overrides: TeamGame.NearGoal


RegisterVehicle[edit]

function RegisterVehicle (Vehicle V)

Overrides: GameInfo.RegisterVehicle


ScoreFlag[edit]

function ScoreFlag (Controller Scorer, CTFFlag theFlag)


ScoreGameObject[edit]

function ScoreGameObject (Controller C, GameObject GO)

Overrides: UnrealMPGameInfo.ScoreGameObject


SetTeamFlags[edit]

function SetTeamFlags ()


SpawnWait[edit]

function float SpawnWait (AIController B)

Overrides: UnrealMPGameInfo.SpawnWait


UpdateAnnouncements[edit]

simulated function UpdateAnnouncements ()

Overrides: TeamGame.UpdateAnnouncements


States[edit]

MatchOver[edit]

MatchOver.ScoreFlag[edit]

function ScoreFlag (Controller Scorer, CTFFlag theFlag)

Overrides: ScoreFlag (global)