Func trackchange: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
 Note:As opposed to func_trackautochange, this entity does not have a
Note:As opposed to func_trackautochange, this entity does not have a 
		
	
| m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) |  (-added class hierarchy, cleanup) | ||
| Line 1: | Line 1: | ||
| {{tabs|func_trackchange|goldsrc=1|source=1|main=source}} | {{tabs|func_trackchange|goldsrc=1|source=1|main=source}} | ||
| {{CD|CFuncTrackChange|file1=trains.cpp}} | |||
| {{toc-right}} | |||
| {{this is a|brush entity|name=func_trackchange}} | {{this is a|brush entity|name=func_trackchange}} | ||
| It works as a rotating/moving platform that will carry a {{ent|func_tracktrain}} to a new track. It must be larger in X-Y planar area than the train, since it must contain the train within these dimensions in order to operate when the train is near it.   | It works as a rotating/moving platform that will carry a {{ent|func_tracktrain}} to a new track. It must be larger in X-Y planar area than the train, since it must contain the train within these dimensions in order to operate when the train is near it.   | ||
| As opposed to {{ent|func_trackautochange}}, this entity does not have a <code>Trigger</code> input. | {{note|As opposed to {{ent|func_trackautochange}}, this entity does not have a <code>Trigger</code> input.}} | ||
| == KeyValues == | == KeyValues == | ||
| {{KV Trackchange}} | {{KV Targetname}} | ||
| {{KV| | {{minititle|Trackchange}} | ||
| {{KV|Travel Altitude|intn=height|integer|The vertical height above the track that the train moves. Negative values move the train below the track.}} | |||
| {{KV|Spin amount|intn=rotation|integer|The amount this platform should rotate as it moves, in degrees.}} | |||
| {{KV|Train to Switch|intn=train|target_destination|Name of the {{ent|func_tracktrain}} this platform will transport to the top/bottom track.}} | |||
| {{KV|Top Track|intn=toptrack|target_destination|Name of last {{ent|path_track}} of the top path. If the Start at Bottom flag is selected, this is the name of the first <tt>path_track</tt> at the top path.}} | |||
| {{KV|Bottom Track|intn=bottomtrack|target_destination|Name of first {{ent|path_track}} of the top path. If the Start at Bottom flag is selected, this is the name of the last <tt>path_track</tt> at the bottom path.}} | |||
| {{KV|Move/Rotate Speed|intn=speed|integer|Speed at which the entity travels the whole way up/down (units per second).}} | |||
| {{KV PlatSounds}} | |||
| == Flags == | == Flags == | ||
| {{ | {{fl|1|Auto Activate train}} | ||
| {{fl|2|Relink track}} | |||
| {{fl|8|Start at Bottom|Platform starts at the bottom track instead of the top one.}} | |||
| {{ | {{fl|16|Rotate Only}} | ||
| {{fl|64|X Axis|Train rotates around the X-axis instead of the Z-axis. Can be combined with <tt>Y Axis</tt>.}} | |||
| {{fl|128|Y Axis|Train rotates around the Y-axis instead of the Z-axis. Can be combined with <tt>X Axis</tt>.}} | |||
| {{ | |||
| == See also == | == See also == | ||
| * {{ent|func_trackautochange}} | * {{ent|func_trackautochange}} | ||
Revision as of 01:32, 3 September 2024
|  Class hierarchy | 
|---|
| CFuncTrackChange | 
|  trains.cpp | 
func_trackchange  is a   brush entity  available in all  Source games.
It works as a rotating/moving platform that will carry a func_tracktrain to a new track. It must be larger in X-Y planar area than the train, since it must contain the train within these dimensions in order to operate when the train is near it.
 Source games.
It works as a rotating/moving platform that will carry a func_tracktrain to a new track. It must be larger in X-Y planar area than the train, since it must contain the train within these dimensions in order to operate when the train is near it. 
 Note:As opposed to func_trackautochange, this entity does not have a
Note:As opposed to func_trackautochange, this entity does not have a Trigger input.KeyValues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentnameortarget).
 Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Trackchange:
- Travel Altitude (height) <integer>
- The vertical height above the track that the train moves. Negative values move the train below the track.
- Spin amount (rotation) <integer>
- The amount this platform should rotate as it moves, in degrees.
- Train to Switch (train) <targetname>
- Name of the func_tracktrain this platform will transport to the top/bottom track.
- Top Track (toptrack) <targetname>
- Name of last path_track of the top path. If the Start at Bottom flag is selected, this is the name of the first path_track at the top path.
- Bottom Track (bottomtrack) <targetname>
- Name of first path_track of the top path. If the Start at Bottom flag is selected, this is the name of the last path_track at the bottom path.
- Move/Rotate Speed (speed) <integer>
- Speed at which the entity travels the whole way up/down (units per second).
- Move Sound (movesnd) <choices>
- The sound played whenever the platform starts moving.
- Choices - 0: No Sound
- 1: big elev 1
- 2: big elev 2
- 3: tech elev 1
- 4: tech elev 2
- 5: tech elev 3
- 6: freight elev 1
- 7: freight elev 2
- 8: heavy elev
- 9: rack elev
- 10: rail elev
- 11: squeek elev
- 12: odd elev 1
- 13: odd elev 2
 
- Stop Sound (stopsnd) <choices>
- The sound played when the platform stops moving.
- Choices - 0: No Sound
- 1: big elev stop1
- 2: big elev stop2
- 3: freight elev stop
- 4: heavy elev stop
- 5: rack stop
- 6: rail stop
- 7: squeek stop
- 8: quick stop
 
- Sound Volume 0.0 - 1.0 (volume) <string>
- Sound volume
Flags
- Auto Activate train : [1]
- Relink track : [2]
- Start at Bottom : [8]
- Platform starts at the bottom track instead of the top one.
- Rotate Only : [16]
- X Axis : [64]
- Train rotates around the X-axis instead of the Z-axis. Can be combined with Y Axis.
- Y Axis : [128]
- Train rotates around the Y-axis instead of the Z-axis. Can be combined with X Axis.
