env_modeltrain

env_modeltrain #

Similar to func_train, but always non-solid and represented by a .mdl model instead of brushes. The model will automatically change its angles to face the next target in path (depending on Turn Policy parameter). By default it plays the first model sequence (index 0) with framerate 1.0. Even if animation doesn’t have a loop flag it’s forced to loop.

See also: env_spritetrain

Parameters #

  • Idle sequence - the name of the model sequence to play while the train is inactive (idle).
  • Custom idle framerate - animation framerate when idle sequence is played.
  • Move sequence - the name of the model sequence to play while the train is active (moving).
  • Custom move framerate - animation framerate when move sequence is played.
  • Turn Policy - how the train should change its angles after passing the path corner:
    • Instant - instantly face the next path corner.
    • Instant, only YAW - instantly face the next path corner, but don’t change Roll and Pitch.
    • No turn - don’t turn, like func_train.

Reaction to use-type #

Always perceived as Toggle (due to compatibility with Half-Life trains) unless Obey Trigger Mode parameter is enabled. Activates or stops the train.