Team train watcher: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Updated with data from tf-abs.fgd)
(Stuff I found lying around in the maps that isn't in the fgd)
Line 9: Line 9:
{{KV TFTeam}}
{{KV TFTeam}}
{{KV|Allow the train to recede?|boolean}}
{{KV|Allow the train to recede?|boolean}}
{{KV|Handle Train Movement|boolean|If Yes, the watcher will handle three-speed forward movement, receding, and roll forward/back zones. Slow areas (such as for uphill) will need to be done manually by sending the watcher a SetSpeedForwardModifier input.}}
{{KV|Handle Train Movement|boolean|If Yes, the watcher will handle three-speed forward movement, receding, and roll forward/back zones. Slow areas (such as for uphill) will need to be done manually by sending the watcher a SetSpeedForwardModifier input.|nofgd=1}}
{{KV|uphill_speed_modifier|nofgd=1}}
{{KV|speed_forward_modifier|nofgd=1}}
{{KV|env_spark_name|nofgd=1|The name of the env_spark for the train.}}
{{KV|Default Speed Modifier|float|0 to 1 scaling of the train's max speed. Can be adjusted with the SetSpeedForwardModifier input. Only functions with Handle Train Movement enabled.}}
{{KV|Default Speed Modifier|float|0 to 1 scaling of the train's max speed. Can be adjusted with the SetSpeedForwardModifier input. Only functions with Handle Train Movement enabled.}}
{{KV|Min Speed for Speed Level 1|float}}
{{KV|Min Speed for Speed Level 1|float}}

Revision as of 10:31, 10 July 2011

Team Fortress 2 team_train_watcher is a point entity available in Team Fortress 2 Team Fortress 2.

Entity description

Entity that tracks the train progress through train escort maps.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).
TeamNum:
Initial Team (TeamNum) <choices>
Which Team the entity belongs / is assigned to on spawn
  • 0: None
  • 1: Spectator/Halloween Souls Team Fortress 2
  • 2: RED Team Fortress 2
  • 3: BLU/Robots Team Fortress 2
  • 5: Halloween Bosses (only in Team Fortress 2) !FGD


Allow the train to recede? ([todo internal name (i)]) <boolean>
Handle Train Movement ([todo internal name (i)]) <boolean> !FGD
If Yes, the watcher will handle three-speed forward movement, receding, and roll forward/back zones. Slow areas (such as for uphill) will need to be done manually by sending the watcher a SetSpeedForwardModifier input.
uphill_speed_modifier ([todo internal name (i)])  !FGD
speed_forward_modifier ([todo internal name (i)])  !FGD
env_spark_name ([todo internal name (i)]) <The name of the env_spark for the train.> !FGD
Default Speed Modifier ([todo internal name (i)]) <float>
0 to 1 scaling of the train's max speed. Can be adjusted with the SetSpeedForwardModifier input. Only functions with Handle Train Movement enabled.
Min Speed for Speed Level 1 ([todo internal name (i)]) <float>
Min Speed for Speed Level 2 ([todo internal name (i)]) <float>
Min Speed for Speed Level 3 ([todo internal name (i)]) <float>

Flags

SetTeam <integerRedirectInput/integer>
Changes the entity's team.

Inputs

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.
SetNumTrainCappers <integerRedirectInput/integer>
Set Number of players capping the train.
SetSpeedForwardModifier <floatRedirectInput/float>
OnStartOvertime
Sets the cart to 5 seconds until recede.

Outputs

OnTrainStartRecede
Sent when the train should start receding.

See Also

Creating a payload map for Team Fortress 2