func_trackchange
From Valve Developer Community
This is a brush entity available in all Source games.
Contents |
Entity Description
A brush entity that works as a rotating/moving platform that will carry a train 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.
See also func_trackautochange.
In code it is represented by class CFuncTrackChange, defined in trains.cpp.
Keyvalues
Targetname:
- Name <string>
- The targetname other entities refer to this entity by.
Parentname:
- Parent
<targetname> - Specifies the targetname of this entity's movement parent. Entities with parents move with their parent.
RenderFields:
- Render Mode
<choices> - Set a non-standard rendering mode on this entity. See Render Modes for details.
- FX Amount (0 - 255)
<int> - Intensity of the selected render mode.
- FX Color (R G B)
<color255> - Color used by the selected render mode (if applicable).
- Disable Receiving Shadows
<bool> - Prevents the entity from receiving shadows.
To do: RTT and/or shadow map?
RenderFXChoices:
- Render FX
<choices> - Several GoldSrc-era visibility modes which change the way the entity is rendered, typically by fading it in and out.
Global:
- Global Entity Name
<string> - Name by which this entity is linked to another entity in a different map. When the player transitions to a new map, entities in the new map with global names matching entities in the previous map will have the previous map's state copied over to them.
- movesnd
- <choices> Move Sound.
Literal value Description 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
- stopsnd
- <choices> Stop Sound.
Literal value Description 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
- volume
- <float> Sound Volume 0.0 - 1.0.
- height
- <integer> The vertical height above the track that the train moves. Negative values moves the train below.
- rotation
- <integer> The amount this platform should rotate as it moves, in degrees.
- train
- <target_destination> Train to Switch.
- bottomtrack
- <target_destination> Bottom Track.
- _minlight
- <string> The minimum level of ambient light that hits this brush.
Flags
- 1 : Auto Activate train
- 2 : Relink track
- 8 : Start at Bottom
- 16 : Rotate Only
- 64 : X Axis
- 128 : Y Axis
Inputs
Targetname:
-
Kill - Removes this entity from the world.
-
KillHierarchy - Removes this entity and all its children from the world.
-
AddOutput <string> - Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
- Format:
<key> <value> - Format:
<output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite> -
FireUser1toFireUser4 - Fire the
OnUseroutputs; see User Inputs and Outputs.
Parentname:
-
SetParent <targetname> - Move with this entity. See Entity Hierarchy (parenting).
-
SetParentAttachment <string> - Attach to a named attachment on the current parent. The entity will teleport so that the position of its root bone matches that of the attachment.
-
SetParentAttachmentMaintainOffset <string> - As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
-
ClearParent - Removes this entity from its current movement hierarchy.
Outputs
Targetname:
-
OnUser1toOnUser4 - Fired in response to the
FireUserinputs; see User Inputs and Outputs. -
OnKilled(New with Left 4 Dead) - Fired when the entity is killed and removed from the game.
