Func platrot: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(-added class hierarchy, cleanup)
Line 1: Line 1:
__NOTOC__
{{subpage|[[Trains]]}}
{{subpage|[[Trains]]}}
{{entity|func_platrot|type=e2}}
{{CD2|CFuncPlatRot|file1=trains.cpp}}
{{code class|CFuncPlatRot|trains.cpp}}
{{entity|func_platrot|type=e2}} It moves vertically, and can rotate while doing so.  
 
==Entity description==
It moves vertically, and can rotate while doing so.  


== KeyValues ==
== KeyValues ==
Line 12: Line 10:
{{KV|Travel Altitude|intn=height|integer|The vertical distance from the starting position that this platform moves. If negative, the platform will lower.}}
{{KV|Travel Altitude|intn=height|integer|The vertical distance from the starting position that this platform moves. If negative, the platform will lower.}}
{{KV|Spin amount|intn=rotation|integer|The amount this platform should rotate as it moves, in degrees.}}
{{KV|Spin amount|intn=rotation|integer|The amount this platform should rotate as it moves, in degrees.}}
{{KV|Minimum Light Level|intn=_minlight|string|The minimum level of ambient light that hits this brush.}}
{{KV BaseEntity|brush=1}}
{{KV RenderFields}}
{{KV Shadow}}


== Flags ==
== Flags ==
Line 24: Line 18:
== Inputs ==
== Inputs ==
{{I BasePlat}}
{{I BasePlat}}
{{I BaseEntity}}
{{I RenderFields}}
{{I Shadow}}


== Outputs ==
== See Also ==
{{O BaseEntity|l4d=1}}
[[func_plat]]

Revision as of 20:08, 21 May 2023

C++ class hierarchy
CFuncPlatRot defined in C++ trains.cpp
CFuncPlat
CBasePlatTrain
CBaseToggle
CBaseEntity

Template:Entity It moves vertically, and can rotate while doing so.

KeyValues

Movement Sound (noise1) <sound>
The sound to play when the brush moves.
Stop Sound (noise2) <sound>
The sound to play when the brush stops moving.
Speed of Rotation (speed) <integer>
Speed at which the brush rotates, in degrees per second.
Travel Altitude (height) <integer>
The vertical distance from the starting position that this platform moves. If negative, the platform will lower.
Spin amount (rotation) <integer>
The amount this platform should rotate as it moves, in degrees.

Flags

Toggle : [1]
X Axis : [64]
Y Axis : [128]

Inputs

BasePlat:
Toggle
Toggles the platform's state.
GoUp
Tells the platform to go up.
GoDown
Tells the platform to go down.

See Also

func_plat