Func platrot: Difference between revisions
Jump to navigation
Jump to search
Tip:As brush entities are lit using static lightmaps, lighting on this entity may look weird when it moves from its original position. If this is an issue, consider converting the brushes to a prop, changing the brushes to clip or skip, and parenting the converted model to this entity.
No edit summary |
SirYodaJedi (talk | contribs) |
||
| (13 intermediate revisions by 8 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | __NOTOC__ | ||
{{subpage|[[Trains]]}} | |||
{{TabsBar|main=gs|base=func_platrot}} | |||
{{CD|CFuncPlatRot|file1=trains.cpp}} | |||
{{this is a|brush entity|name=func_platrot}} It moves vertically, and can rotate while doing so. | |||
{{moving brush tip}} | |||
== | == KeyValues == | ||
{{KV Targetname}} | {{KV Targetname}} | ||
{{KV | {{KV CBasePlatTrain sounds}} | ||
{{KV | {{KV|Speed of Rotation|intn=speed|integer|Speed at which the brush rotates, in degrees per second.}} | ||
{{KV | {{KV|Travel Altitude|intn=height|integer|The vertical distance from the starting position that this platform moves. If negative, the platform will lower.}} | ||
{{KV | {{KV|Spin amount|intn=rotation|integer|The amount this platform should rotate as it moves, in degrees.}} | ||
== Flags == | == Flags == | ||
{{fl|1|Toggle}} | |||
{{fl|64|X Axis}} | |||
{{fl|128|Y Axis}} | |||
== Inputs == | == Inputs == | ||
{{I BasePlat}} | {{I BasePlat}} | ||
== | == See also == | ||
{{ | * {{ent|func_plat}} | ||
Latest revision as of 07:53, 8 December 2025
| CFuncPlatRot |
func_platrot is a brush entity available in all
Source games. It moves vertically, and can rotate while doing so.
KeyValues
- Name (targetname) <string>
- 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
- Movement Sound (noise1) <sound>
- The sound to play when the train moves.
- Stop Sound (noise2) <sound>
- The sound to play when the train stops moving.
- Move Sound index (movesnd) <integer choices> (only in

) - The sound to play when the train moves. Overrides
noise1, even if absent.
Choices - 0: Plat.DefaultMoving
- 1: Plat.BigElev1
- 2: Plat.BigElev2
- 3: Plat.TechElev1
- 4: Plat.TechElev2
- 5: Plat.TechElev3
- 6: Plat.FreightElev1
- 7: Plat.FreightElev2
- 8: Plat.HeavyElev
- 9: Plat.RackElev
- 10: Plat.RailElev
- 11: Plat.SqueakElev
- 12: Plat.OddElev1
- 13: Plat.OddElev2
- Stop Sound index (movesnd) <integer choices> (only in

) - The sound to play when the train stops moving. Overrides
noise2, even if absent.
Choices - 0: Plat.DefaultArrive
- 1: Plat.BigElevStop1
- 2: Plat.BigElevStop2
- 3: Plat.FreightElevStop
- 4: Plat.HeavyElevStop
- 5: Plat.RackStop
- 6: Plat.RailStop
- 7: Plat.SqueakStop
- 8: Plat.QuickStop
- Sound Volume 0.0 - 1.0 (volume) <string>
- Sound volume
- 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.