Team train watcher: Difference between revisions
Jump to navigation
Jump to search
m (Linking to tutorial on setting up TF2's payload mode) |
(Updated with data from tf-abs.fgd) |
||
Line 1: | Line 1: | ||
{{ | {{tf2 point|team_train_watcher}} | ||
== Entity description == | ==Entity description== | ||
Entity that tracks the train progress through train escort maps. | |||
== Keyvalues == | ==Keyvalues== | ||
{{KV Targetname}} | |||
{{KV EnableDisable}} | |||
{{KV TFTeam}} | |||
{{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|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 2|float}} | |||
{{KV|Min Speed for Speed Level 3|float}} | |||
== | ==Flags== | ||
{{I TFTeam}} | |||
== | ==Inputs== | ||
{{I Targetname}} | |||
{{I EnableDisable}} | |||
{{IO|SetNumTrainCappers|Set Number of players capping the train.|param=integer}} | |||
{{IO|SetSpeedForwardModifier|param=float}} | |||
{{IO|OnStartOvertime|Sets the cart to 5 seconds until recede.}} | |||
==Outputs== | |||
{{O Targetname}} | |||
{{IO|OnTrainStartRecede|Sent when the train should start receding.}} | |||
==See Also== | ==See Also== | ||
[[TF2/Creating_a_Payload_Map|Creating a payload map for Team Fortress 2]] | [[TF2/Creating_a_Payload_Map|Creating a payload map for Team Fortress 2]] | ||
Revision as of 22:18, 9 May 2011
team_train_watcher
is a point entity available in 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
ortarget
).
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 the
Enable
input).
TeamNum:
- Initial Team (TeamNum) <choices>
- Which Team the entity belongs / is assigned to on spawn
- 0: None
- 1: Spectator/Halloween Souls
- 2: RED
- 3: BLU/Robots
- 5: Halloween Bosses (only in
) !FGD
- Handle Train Movement ([todo internal name (i)]) <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.
- 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.
Flags
Inputs
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.
- SetNumTrainCappers <integer >
- Set Number of players capping the train.
- SetSpeedForwardModifier <float >
- OnStartOvertime
- Sets the cart to 5 seconds until recede.
Outputs
- OnTrainStartRecede
- Sent when the train should start receding.