func_trackchange

A func_trackchange is a piece of track that moves a func_tracktrain from one track to
another when you trigger it. The train must stand on it, and the piece moves up or down, turns, or both, and takes the
train with it.
Attributes
The entity also has these common keys:
- Naming and triggering: Name and Global Entity Name
- Appearance: Render FX, Render Mode, FX Amount and FX Color
- Compiler keys of brush entities: all of them
movesndSets the sound it plays while it moves, and if you set Custom move sound, it ignores this key.The 14 choices
No Sound (0)stopsndSets the sound it plays when it stops, and if you set Custom stop sound, it ignores this key.The 9 choices
No Sound (0)volumeSets how loud the move and stop sounds are, from 0.0 for silent up to 1.0 for full volume.
If you leave this key empty or set 0, it is 0.85.
0.85Sets the use type that the Fire On Start targets get.
- Off (0)
- On (1)
- Toggle (2)
Off (0)Sets the use type that the Fire On Stop targets get.
- Off (0)
- On (1)
- Toggle (2)
Off (0)Sets how far away players hear its move and stop sounds.
- Small (-2) - Up to about 500 units away
- Medium (-1) - Up to about 800 units away
- Default (large) (0) - Up to about 1250 units away
- Huge (1) - Up to about 2000 units away
- Enormous (2) - Up to about 4000 units away
- Play Everywhere (3) - Anywhere on the map, at full volume
Default (large) (0)heightSets how far it travels down from its top position, in units, and with Rotate Only, it doesn't move.
If you leave this key empty or set 0, it is its own height minus 8.
0rotationSets how far it turns on its way between top and bottom, in degrees, around the vertical axis or the axis its flags set. 0 means it doesn't turn.
0trainNames the func_tracktrain it switches, and a train standing on it moves with it.
toptrackNames a path_track of the track at the top position. The point of that track nearest to the track change is only open to the train while the track change is at the top.
bottomtrackNames a path_track of the track at the bottom position. The point of that track nearest to the track change is only open to the train while the track change is at the bottom.
speedSets how fast it moves, in units per second, or with Rotate Only, how fast it turns, in degrees per second.
If you leave this key empty or set 0, it is 150.
0fireonopeningFires when it starts moving to its top position, the Top track.
fireonopening_triggerstateSets the use type that the Fire On Open Start targets get.
- Off (0)
- On (1)
- Toggle (2)
Off (0)fireonclosingFires when it starts moving to its bottom position, the Bottom track. It starts at the top, so its first trigger does this.
fireonclosing_triggerstateSets the use type that the Fire On Close Start targets get.
- Off (0)
- On (1)
- Toggle (2)
Off (0)fireonopenedFires when it reaches its top position.
fireonopened_triggerstateSets the use type that the Fire On Open End targets get.
- Off (0)
- On (1)
- Toggle (2)
Off (0)fireonclosedFires when it reaches its bottom position.
fireonclosed_triggerstateSets the use type that the Fire On Close End targets get.
- Off (0)
- On (1)
- Toggle (2)
Off (0)Flags
8Start at BottomIt starts at its bottom position instead of the top
16Rotate OnlyIt only turns in place and doesn't move up or down
64X AxisIt turns around the X axis instead of the vertical axis
128Y AxisIt turns around the Y axis instead of the vertical axis
Notes
- The track change starts at its top position, so its first trigger moves it to the bottom, unless it has Start at Bottom
- The train only leaves the track change on the track at the position where the track change stands
See also
func_trackautochange- the same, which moves by itself when the train arrivesfunc_tracktrain- the train it movespath_track- the points of a track- func_trackchange on TWHL - the Half-Life entity
Changes since 1.38
- You can use the new Fire On keys and their use types, Sound radius and the custom move and stop sounds
- A track change doesn't crash the server after its train is removed. In SBO 1.38, as in Half-Life, this crashed the server
