Template:Archived Page History/Template:I BaseTrain: Difference between revisions
Jump to navigation
Jump to search
Confirm:What games these were added/removed in, it's very confusing - the above is just what the FGDs on this wiki seemed to indicate.
(Add newer (?) MoveToPathNode and TeleportToPathNode inputs, and switch to baseentity template) |
Kestrelguy (talk | contribs) m (updated templates used.) |
||
Line 1: | Line 1: | ||
{{ScrollBox|title=BaseTrain| | {{lang|{{FULLPAGENAME}}}} | ||
<onlyinclude>{{ScrollBox|title=BaseTrain| | |||
{{IO|SetSpeed|Set the speed of the train, as a ratio of max speed [0, 1]|param=float}} | {{IO|SetSpeed|Set the speed of the train, as a ratio of max speed [0, 1]|param=float}} | ||
{{IO|SetSpeedDir|Set the speed of the train, as a ratio of max speed. Negative values reverse the direction [-1, 1]|param=float}} | {{IO|SetSpeedDir|Set the speed of the train, as a ratio of max speed. Negative values reverse the direction [-1, 1]|param=float}} | ||
Line 16: | Line 17: | ||
{{IO|Reverse|Reverse the direction of the train.}} | {{IO|Reverse|Reverse the direction of the train.}} | ||
{{IO|Toggle|Toggle the train between start and stop.}} | {{IO|Toggle|Toggle the train between start and stop.}} | ||
{{I BaseEntity}} | {{I BaseEntity|noscroll=1}} | ||
{{I | {{I visiblebrush|noscroll=1|portal2=1}} | ||
}}</onlyinclude>[[Category:Input Templates|BaseTrain]] | |||
}}< | |||
[[Category:Input Templates|BaseTrain]] | |||
Revision as of 18:09, 24 May 2022
BaseTrain:
- SetSpeed <float>
- Set the speed of the train, as a ratio of max speed [0, 1]
- SetSpeedDir <float>
- Set the speed of the train, as a ratio of max speed. Negative values reverse the direction [-1, 1]
- SetSpeedReal <float>
- Set the speed of the train. Must be a positive value from 0 to max speed.
- SetSpeedDirAccel <float>
- Accel/Decel to the specified speed, as a ratio of max speed. Negative values reverse the direction [-1, 1]
- SetSpeedForwardModifier <float>
- Applies the given modifier to all forward speeds. [0, 1]
- TeleportToPathTrack <targetname> (removed since
)
- Teleport the train to the designated path track. Todo: Does this differ from TeleportToPathNode in any way, does it need to be in the same path?
- MoveToPathNode <targetname> (in all games since
)
- Move the train to a specific path_track, stopping when it gets there. Must be in the same path.
- TeleportToPathNode <targetname> (in all games since
)
- Teleport to another path_track and stop the train. This can be in a new path.

- Stop
- Stop the train.
- StartForward
- Start the train moving forward.
- StartBackward
- Start the train moving backward.
Bug:If the train's corresponding path_tracks do not have "New Train Speed" set to a nonzero number, StartBackward will exhibit undesired behavior including the train freezing or moving in the wrong direction. This bug can be a pain if the train needs to ride through the path_track again at a different speed. This can be fixed by firing an "addOutput speed '#'" input at the path_track in question. [todo tested in ?]
- Resume
- Resume the train moving in the current direction after it was stopped via the
Stop
orToggle
input.
- Reverse
- Reverse the direction of the train.
- Toggle
- Toggle the train between start and stop.
- SetDamageFilter <targetname>
- Sets a filter for this entity for when it receives damage.
- EnableDamageForces
- Allows the entity to be pushed by damage done to it (usually force amount correlates with the damage done).
- DisableDamageForces
- Prevents the entity from being pushed by damage done to it.
Todo: move/mention at proper place