env_spritetrain
env_spritetrain | |
---|---|
Type |
point |
Status |
supported |
The env_spritetrain entity resembles an env_sprite which can move along path_corner entities as a func_train can. Ever wanted to make a flame travel along a fuse to a bomb? This entity is for you.
1 Keyvalues
Move Sound : movesnd
Sound that is played while the train is moving.
Move Sound Loops? : movesnd_loop
Sets if Move Sound should be looped during brush movement until it stops.
Stop Sound : stopsnd
Sound which is played once as the train stops moving.
Sound Volume : volume
Self-explanatory.
Sound Replacement File : soundlist
Allows you to setup a sound replacement file for the func_plat sounds. The path begins in 'svencoop/sound/mapname', whereas 'mapname' would be your map's name. You can go to the parent directory using '../'. A valid sound replacement file contains one or more lines with two sound-paths, which are separated by a space and wrapped into quotes. The first sound is the sound to be replaced. The second sound is the new sound. Sound-paths start in the sound directory. You cannot go to the parent directory using '../' in that case. These sounds do not need to be precached using a custom_precache point entity.
First stop target : target
Name of a path_corner entity to act as the initial position of the func_train. Note: Initial position, not first stop target as the keyname suggests, meaning the train will spawn at that path_corner.
Sprite Name : model
Set a sprite here. Path starts in modification's folder.
Speed (units per second) : speed
Initial speed in units per second. The initial speed is kept if path_corners don't define a new speed (0).
Sprite Scale : scale
Scaling factor for the sprite. Defaults to 0.25 if not set.
Obey Trigger Mode : m_iObeyTriggerMode
Originally, env_spritetrain would not interpret use-types "Off" and "On" as "Toggle". This keyvalue allows you to use "On"
to proceed the train and "Off" to stop it. You can also set this to have the train react to "On"- and "Off"-triggering while
it is moving, and reverting it when it is currently proceeding forward and vice versa.
Move Sound Override : noise
Custom sound file that is playing when entity is moving. Overrides default "Move Sound" sound.
Stop Sound Override : noise1
Custom sound file to play when the entity ends movement. Overrides default "Stop Sound" sound.
2 Notes
- Spritetrains are not efficient on the network-code. You should use them as little as possible and only temporarily.
3 Changes
- 5.0 Steam Release: Added 'Obey Trigger Mode', 'Move Sound Override' and 'Stop Sound Override' keyvalues.