Func trackautochange: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Template:in code -> Template:code class. Moved description, linked func_trackchange.)
m (updated template usage.)
Line 1: Line 1:
{{lang|{{PAGENAME}}}}
{{base brush|func_trackautochange}}
{{base brush|func_trackautochange}}
{{code class|CFuncTrackAuto|trains.cpp}}


== Entity Description ==
== Entity Description ==
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_trackchange}}, this entity does have a <code>Trigger</code> input.
Unlike {{ent|func_trackchange}}, this entity does have a <code>Trigger</code> input.
{{code class|CFuncTrackAuto|trains.cpp}}


== KeyValues ==
== Keyvalues ==
{{KV Trackchange}}
{{KV Trackchange}}
{{KV|Minimum Light Level|intn=_minlight|string|The minimum level of ambient light that hits this brush.}}


== Flags ==
== Flags ==
Line 16: Line 16:
== Inputs ==
== Inputs ==
{{IO|Trigger|Trigger the track change.}}
{{IO|Trigger|Trigger the track change.}}
{{I Trackchange}}
{{I visiblebrush|portal2=1}}


== Outputs ==
== Outputs ==
{{O Trackchange}}
{{O BaseEntity|l4d=1}}


== See also ==
== See also ==
* {{ent|func_trackchange}}
* {{ent|func_trackchange}}

Revision as of 19:45, 6 June 2022

English (en)Translate (Translate)

Template:Base brush

Entity Description

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.

Unlike func_trackchange, this entity does have a Trigger input.

C++ In code, it is represented by theCFuncTrackAutoclass, defined in thetrains.cppfile.

Keyvalues

Template:KV Trackchange

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.

Inputs

Trigger
Trigger the track change.
SetDamageFilter <targetnameRedirectInput/string>
Sets a filter for this entity for when it receives damage.
EnableDamageForces
Allows the entity to be pushed by damage done to it (usually force amount correlates with the damage done).
DisableDamageForces
Prevents the entity from being pushed by damage done to it.
Todo: move/mention at proper place

Outputs

See also