Func platrot: Difference between revisions
Jump to navigation
Jump to search
m (Add internal names of keyval keys) |
(Added back button. Used KV/I/O BaseEntity templates.) |
||
Line 1: | Line 1: | ||
{{back|Trains}} | |||
{{base_brush|func_platrot}} | {{base_brush|func_platrot}} | ||
{{code class|CFuncPlatRot|trains.cpp}} | |||
==Entity description== | ==Entity description== | ||
It moves vertically, and can rotate while doing so. | It moves vertically, and can rotate while doing so. | ||
== | == KeyValues == | ||
{{KV|Movement Sound|intn=noise1|sound|The sound to play when the brush moves.}} | {{KV|Movement Sound|intn=noise1|sound|The sound to play when the brush moves.}} | ||
{{KV|Stop Sound|intn=noise2|sound|The sound to play when the brush stops moving.}} | {{KV|Stop Sound|intn=noise2|sound|The sound to play when the brush stops moving.}} | ||
Line 12: | Line 13: | ||
{{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|Minimum Light Level|intn=_minlight|string|The minimum level of ambient light that hits this brush.}} | ||
{{KV | {{KV BaseEntity|brush=1}} | ||
{{KV RenderFields}} | {{KV RenderFields}} | ||
{{KV Shadow}} | {{KV Shadow}} | ||
== Flags == | == Flags == | ||
{{fl|1|Toggle}} | |||
{{fl|64|X Axis}} | |||
{{fl|128|Y Axis}} | |||
== Inputs == | == Inputs == | ||
{{I | {{I BasePlat}} | ||
{{I | {{I BaseEntity}} | ||
{{I RenderFields}} | {{I RenderFields}} | ||
{{I Shadow}} | {{I Shadow}} | ||
== Outputs == | == Outputs == | ||
{{O | {{O BaseEntity|l4d=1}} |
Revision as of 15:20, 16 May 2022
Entity description
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.
- Minimum Light Level (_minlight) <string>
- The minimum level of ambient light that hits this brush.
RenderFields:
- Render Mode (rendermode) <byte choices>
- Set a non-standard rendering mode on this entity.
Render Modes
- Render FX (renderfx) <byte choices>
- Various somewhat legacy alpha effects. See render effects.
- Render Amount / Transparency (renderamt) <byte>
- Transparency amount, requires a Render Mode other than Normal. 0 is invisible, 255 is fully visible.
- Render Color (R G B) (rendercolor) <color255>
- Color tint.
Shadow:
- Disable Shadows (disableshadows) <boolean>
- Prevents the entity from creating cheap render-to-texture shadows, or lightmap shadows if the entity is a prop_static. Does not affect shadow mapping.
- Disable Receiving Shadows (disablereceiveshadows) <boolean>
- Prevent the entity from receiving dynamic shadows on itself.
- Shadow Cast Distance (shadowcastdist) <integer> !FGD
- Sets how far the entity casts dynamic shadows. 0 means default distance from the shadow_control entity.
- Disable Shadow Depth (disableshadowdepth) <boolean> (in all games since
)
- Used to disable rendering into shadow depth (for projected textures) for this entity.
- Disable flashlight (disableflashlight) <boolean> (in all games since
)
- Used to disable projected texture lighting and shadows on this entity.
- Projected Texture Cache (shadowdepthnocache) <integer choices> (in all games since
)
- Used to hint projected texture system whether it is sufficient to cache shadow volume of this entity or to force render it every frame instead.
Choices - 0 : Default
- 1 : No cache - render every frame
- 2 : Cache it - render only once
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.
RenderFields:
- Alpha <integer 0–255>
- Sets the entity's transparency to a number from 0 (invisible) to 255 (fully visible). Requires the entity to have its
rendermode
set to a number other than0
.
- Color <color255 >
- Sets an RGB color for the entity.
Shadow:
- DisableShadow
- Turn dynamic shadows off for this entity. Identical to applying EF_NOSHADOW.
- EnableShadow
- Turn dynamic shadows on for this entity.
- DisableReceivingFlashlight (in all games since
)
- This object will not receive light or shadows from projected textures.
- EnableReceivingFlashlight (in all games since
)
- This object may receive light or shadows from projected textures.