| Home Page | Recent Changes | Preferences

CTFFlag

UT2003 :: Actor >> Decoration >> GameObject >> CTFFlag

This is the flag in Capture the Flag. The two subclasses, xBlueFlag? and xRedFlag?, have their default properties set up with the corresponding skin and light color, and they also initate the animation loop.

SameTeamTouch and ValidHolder are the two functions most important to CTF gameplay.

Properties

TeamNum
Which team the flag belongs to.
Team
The UnrealTeamInfo? for the flag's team.
OldHolder
The flag's previous holder.
GRI
The current GameReplicationInfo. Appalently not used outside of UpdateForTeam.

Methods

UpdateForTeam
Apply the team's symbol to the flag's skin.
SetGRI
Calls UpdateForTeam.
SameTeam
Is the given Controller on the flag's team?
SameTeamTouch
Overridden in Dropped state.
CheckPain
Overridden in Dropped state.

Inherited from Actor

PostBeginPlay
Calls SetGRI.
Landed
Return to standard "on the ground" orientation.
FellOutOfWorld
Sends the flag home.

Inherited from GameObject

SetHolder
Alert the CTFSquadAIs of the event.
Drop
Gives the flag some velocity and random spin.
ValidHolder
For teammates, calls SameTeamTouch. Otherwise, enemy players can pick up the flag.
LogReturned
LogDropped

Home state

SameTeamTouch
If the player is carrying a flag, a point is scored.
LogTaken
Timer
Makes sure the flag really is on the base.
BeginState
Makes the base visible instead of the flag.
EndState
Makes the flag visible instead of the base.

Held state

Timer
Sends the flag home if the holder is somehow lost.
BeginState
Just sets the timer. The GameObject function calls UnrealPawn.HoldGameObject to make the flag get physically carried.
EndState

Dropped state

SameTeamTouch
A teammate has touched the flag, so it goes home.
LogTaken
CheckFit
Make sure the flag can actually fit where it was dropped. Otherwise it goes home.
CheckPain
TakeDamage
PhysicsVolumeChange
BeginState
Sets up collision properties.
EndState
Timer
Broadcasts a message, then lets GameObject do the sending home.

Known Subclasses

  • xBlueFlag?
  • xRedFlag?

Related Topics

Discussion

Uncommon: Anyone have an idea why the animation is set up in the subclasses? It's exactly the same in both.

SuperApe: These are Mesh animations. See the Mesh Browser.


Category Class (UT2003)

Category Class (UT2004)

The Unreal Engine Documentation Site

Wiki Community

Topic Categories

Image Uploads

Random Page

Recent Changes

Offline Wiki

Unreal Engine

Console Commands

Terminology

FAQs

Help Desk

Mapping Topics

Mapping Lessons

UnrealEd Interface

UnrealScript Topics

UnrealScript Lessons

Making Mods

Class Tree

Modeling Topics

Chongqing Page

Log In