Team train watcher: Difference between revisions
Jump to navigation
Jump to search
WhosAsking (talk | contribs) |
m (Substituted IO templates) |
||
(6 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{this is a|point entity|game=Team Fortress 2|name=team_train_watcher}} | ||
{{edictcount-box|1}} | |||
==Entity description== | ==Entity description== | ||
Entity that tracks the train progress through train escort maps. Adding this entity to a map makes Team Fortress 2 classify the map as a train escort (Payload) map. | Entity that tracks the train progress through train escort maps. Adding this entity to a map makes Team Fortress 2 classify the map as a train escort (Payload) map. | ||
For a Payload Race map, you also need a [[Tf logic multiple escort|tf_logic_multiple_escort]] entity. | |||
==Keyvalues== | ==Keyvalues== | ||
Line 18: | Line 20: | ||
{{KV|Min Speed for Speed Level 3|float}} | {{KV|Min Speed for Speed Level 3|float}} | ||
== | ==Inputs== | ||
{{I TFTeam}} | {{I TFTeam}} | ||
{{I Targetname}} | {{I Targetname}} | ||
{{I EnableDisable}} | {{I EnableDisable}} | ||
{{ | {{I|SetNumTrainCappers|Set Number of players capping the train.|param=integer}} | ||
{{ | {{I|SetSpeedForwardModifier|param=float}} | ||
{{ | {{I|OnStartOvertime|Sets the cart to 5 seconds until recede.}} | ||
==Outputs== | ==Outputs== | ||
{{O Targetname}} | {{O Targetname}} | ||
{{ | {{O|OnTrainStartRecede|Sent when the train should start receding.}} | ||
==See | ==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]] |
Latest revision as of 23:03, 20 April 2025
team_train_watcher
is a point entity available in Team Fortress 2.
This entity consumes 1 edict slots at runtime.
Entity description
Entity that tracks the train progress through train escort maps. Adding this entity to a map makes Team Fortress 2 classify the map as a train escort (Payload) map.
For a Payload Race map, you also need a tf_logic_multiple_escort entity.
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> !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.
- env_spark_name ([todo internal name (i)]) <targetname> !FGD
- The name of the env_spark for the train.
- 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.
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.