func_trackchange

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
func_trackchange
Type

brush

Status

supported

 


Brush entity that works as a rotating ascending/descending elevator for func_tracktrain. It connects two path_tracks- elevator takes the train from last path_track of the top path, rotating and descending, and then, after finishing, the train is assigned to path_track of the bottom path.  This can be reverted for ascending platform. The func_trackchange platform need origin brush (preferably located at the center of entity), and the top and the bottom path_corners should be centered to this entity  for best results.

See the picture on the left- the platform with origin brush tied to it (func_trackchange), and orange cubes that represents the top and the bottom path_track.

Similar variant to this entity is func_trackautochange, however you can't trigger func_trackautochange in other way than by path_track's "Fire on dead end" value, you would trigger connected train instead.

1 Keyvalues

Move sound : movesnd

Sound playing when func_trackchange is moving:

Move Sound Loops? : movesnd_loop

Sets if Move Sound should be looped during brush movement until it stops.

Stop sound : stopsnd

Sound to play when the func_trackchange stop moving.

Sound volume : volume

Volume of move and stop sounds.

Sound Replacement File : soundlist

Set the path to a sound replacement file for this entity. 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.

Fire On Open Start : fireonopening

Entity to trigger when platform starts opening.

Fire On Open Start Trigger State : fireonopening_triggerstate

Set the use-type with which the entity specified above will be fired.

Fire On Close Start : fireonclosing

Entity to trigger when platform starts closing.

Fire On Close Start Trigger State : fireonclosing_triggerstate

Set the use-type with which the entity specified above will be fired.

Fire On Open End : fireonopened

Entity to trigger when platform ends opening.

Fire On Open End Trigger State : fireonopened_triggerstate

Set the use-type with which the entity specified above will be fired.

Fire On Close End : fireonclosed

Entity to trigger when platform end closing.

Fire On Close End Trigger State : fireoncloed_triggerstate

Set the use-type with which the entity specified above will be fired.

Damage inflicted when blocked : dmg

Damage to deal when entity is blocked.

Travel Altitude : height

Travel distance, from top to bottom. If "Start at Bottom flag is selected, the travel distance won't change from bottom to top,

it only makes platform start at bottom and awaits for func_tracktracin to arrive.

Spin amount : rotation

The spin done by this platform on entire way up/down.

Train to Switch : train

Name of func_tracktrain this platform will transport to top/bottom track.

Top track : toptrack

Name of last path_track of the top path (if "Start at Bottom" is selected this is the name of the first path_track at the top path).

Bottom track : bottomtrack

Name of first path_track of the bottom track. (if "Start at Bottom" is selected this is the name of the last path_track 

at the bottom path).

Move/Rotate Speed : speed

Speed in which func_trackchange travel the whole way up/down (units per seconds).

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.

Blocked Sound : noise2

Custom sound file to play when train is blocked.

2 Flags

1 : Auto Activate train

If selected, train isn't paused at the top/bottom of the path after func_trackchange finish it's movement. Instead, it's continue moving forward.

2 : Relink track

The functionality of this flag is unknown. However, this entity seems to work fine whenever this flag is selected 

or not.

8 "Start at Bottom": Platform starts at the bottom instead at the top path_track if this flag is ticked.

16 : Rotate Only

If selected, the platform only rotates in place of it's origin without travelling specified altitude. 

The top and the bottom path_tracks should have their origin positioned in the same coordinates.

64 : X Axis

Train rotates around X axis instead of Z axis. Can be combined with "Y Axis".

128 : Y Axis

Train rotates around Y axis instead of Z axis. Can be combined with "X Axis".

3 Notes

Remember to create origin brush for this entity around which func_trackchange rotates.It is said that func_trackchange works better with controllable func_tracktrain, however it seems to both controllable and non-controllable func_tracktrains supports both func_trackchange and func_trackautochange.

4 Changes

5.0 Steam Release: Added 'Damage inflicted when blocked', 'Move Sound Override', 'Stop Sound Override' and 'Blocked Sound' keyvalues.