path_track

From Sven Co-op
Revision as of 23:29, 27 January 2019 by GeckonCZ (talk | contribs) (Import of converted entguide pages from Sven Manor.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
path_track
Type

point

Status

supported

 


Entity used to define a path for func_tracktrain. To make it works, create a set of a path_tracks entity, and in each path_track's "Next Stop Target" specify a name of next path_track to go to from this path_track. If last path_track targeting first path_track, the path movement is looped.

1 Keyvalues

Next stop target : target

Name of the next path_track to go after entity reach this path_track.

Fire on Pass : message

Entity to trigger when func_tracktrain pass through this path_track. It won't fire when train stops at this point.

Branch Path : altpath

The name of alternative path_track to go. If path_track is triggered, it's change it's next stop target to the name of "Branch Path" path_track. If no "Branch Path" specified, and this path_track is triggered, the train stops at this point instead of going further, and vice-versa- if "Next stop Target" isn't specified, but the "Branch Path" is, the train will treat this point as a dead end, but after triggering this path_track the train will take path_track name specified in a "Branch Path" as a new target.

Fire on dead end : netname

Entity to trigger when func_tracktrain reaches this path_track as a last path_track in a chain. This may happen in few cases: there is no next stop target specified.next stop target has been disabled and train reaches this point.train is travelling from point "A" (this path_track) to point "B" (next path_track), and path_track "B" has been disabled when train was on it's way to point "B" (between "A" and "B"). The train won't reach point "B", and this path_track (point "A") is considered as a dead end, so the trigger is fired.

New Train Speed : newspeed

Overrides train speed after reaching this point. Affects both controllable and non-controllable trains.

New Maximum Speed : maxspeed

Sets train speed once to this value if it's moving faster than that.

New Train Speed (Legacy) : speed

Overrides train speed after reaching this point. Legacy, works only for non-controllable trains.

2 Flags

1 : Disabled

Start disabled. Trigger path to enable it. Branch Path cannot be used with this flag, even with selected Branch Reverse.

2 : Fire once

Entity fire it's "Fire on Pass" target once.

4 : Branch Reverse

Swap the branch path and next target on start.

8 : Disable train

When selected, disables func_tracktrain controlling when reaching this point.

3 Notes

If branch path is not definied, and the track was triggered (with Disabled flag not selected) the train won't reach this point- it will stop at the last enabled path_track.When deactivating path (by killing it, disabling or branch switching with missing Branch Path) the train won't travel to that point, so it will end it's route at previous path_track (which is now considered as a dead end).Changes5.15: Added 'New Train Speed' keyvalue ('newspeed' key, previously 'speed').