env_modeltrain

An env_modeltrain moves a model along a path of path_corner entities, the way a
func_train moves a brush, and plays one animation while it stands still and another while it moves.
It uses the speed and the wait of each path_corner, fires their targets and obeys their teleport flag, and like a
func_train, it starts by itself when it has no name. The middle of the model goes to each path_corner.
Attributes
The entity also has these common keys:
- Appearance: Render FX, Render Mode, FX Amount and FX Color
targetnameTriggering the entity starts or stops the train, and Obey Trigger Mode sets how. Without a name, the train starts by itself. See Common keys.
modelSets the model that moves along the path, as a path to an .mdl file.
scaleDraws the model this many times its size, so 0.5 is half and 2 is double.
If you leave this key empty, the model has its normal size.
targetNames the first path_corner of the path.
speedSets how fast the train moves, in units per second, until a path_corner sets another speed, and 0 means 100.
64m_iObeyTriggerModeSets how a trigger starts and stops the train.
- No (0) - Every trigger starts a stopped train or stops a moving one
- Yes (1) - On starts it, Off stops it and Toggle switches it
No (0)volumeSets how loud the move and stop sounds are, up to 1 for full volume.
If you leave this key empty or set 0, it is 0.85.
0.85noiseSets the sound that loops while the train moves.
noise1Sets the sound the train plays when it stops.
idle_sequenceSets the name of the animation the model plays while the train stands still.
If you leave this key empty, it is the first animation of the model.
idle_framerateSets how fast the idle animation plays: 1 is its own speed and 2 is twice as fast.
If you leave this key empty or set 0, it is 1.
move_sequenceSets the name of the animation the model plays while the train moves.
move_framerateSets how fast the move animation plays: 1 is its own speed and 2 is twice as fast.
If you leave this key empty or set 0, it is 1.
turn_policySets how the model turns when it leaves a path_corner.
- Instant (0) - It turns at once to face the next
path_corner - Instant, only YAW (1) - It turns at once, but only left or right, toward the next
path_corner - No turn (2) - It keeps its angles
Instant (0)Flags
4Initially OnThe train starts moving when the map starts
Notes
- The train is solid, and it deals 2 crush damage to anything that blocks it, at most twice a second
- Every animation loops
See also
env_spritetrain- the same with a spritefunc_train- a brush that moves along a pathpath_corner- the stops of the pathenv_model- an animated model that stays in place
Changes since 1.38
env_modeltrainis new in SBO 2.0.0
