func_tracktrain

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

brush

Status

supported

 


This is a func_train with a greater set of features (like auto-rotation). Func_tracktrains are supposed to be controlled by players. Triggering them manually to get them moving works once. Any further triggering is ignored. Origin brush is required for this entity. To make it controllable you must use func_traincontrols as well.

1 Keyvalues

First stop target : target

The name of the first path_track (where the train starts). Train is teleported to this position on map start, no matter where 

it's placed.

Sound : sounds

Sound group (move, break, start) to use on that train.

Distance between the wheels : wheels

Distance between the virtual track train wheels. Set to higher value for smoother track train turning, but the best value

is a func_tracktrain length.

Initial speed : startspeed

It's a starting speed of func_tracktrain. Set it to '0' so the track train is not moving at map start. Path_track and player controls

may override this.

Speed (units per seconds) : speed

Maximum speed of the track train. If player controllable, this is a maximum speed level of the train.

Damage on crush : dmg

Damage to deal to entities that attempts to block it.

Volume : volume

Volume of sounds produced by this train selected in "Sound".

Bank angle on turns : bank

When func_trackrain is turning left of right, this is an bank angle (in degrees), e.g. when turning, the train will also rotate itself around track axis (by this value) in a moment of turning. To explain this, image a roller coaster cart that banks itself whenever it's at turning point.

Sound Replacement File : soundlist

Allows you to setup a sound replacement file for the func_tracktrain 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.

Move Sound Override : noise

Custom sound file that is playing when track train is moving. Overrides default "Sound" sounds.

Brake Sound Override : noise1

Custom sound file to play when track train stops. Overrides default "Sound" sounds.

Start Sound Override : noise2

Custom sound file to play when track start it's movement. Overrides default "Sound" sounds.

2 Flags

1 : No Pitch (X-rot)

Prevents train from auto-rotating around X axis. If path_tracks are on the same level, this flag is obsolete.

2 : No User Control

Func_tracktrain cannot be controlled by player.

4 : Forward Only

Train can't travel backward.

8 : Passable

Disable collision of train.

16 : No Yaw (Y-rot)

Prevents train from auto-rotating around Y axis. If path_tracks are on the same level, this flag is obsolete.

3 Notes

Func_tracktrain must face west (90 degrees) at editor position. At map start the trach train automatically rotates to face next path_track. Func_tracktrain supports clip brushes tied onto it.

4 Changes

5.0 Steam Release: Added 'Sound Replacement File', 'Move Sound Override', 'Brake Sound Override' and 'Start Sound Override' keyvalues.