Func elevator: Difference between revisions
Jump to navigation
Jump to search
(Reformat) |
m (Add internal names of keyval keys) |
||
Line 4: | Line 4: | ||
== Keyvalues == | == Keyvalues == | ||
{{KV|Top floor position|vecline|The position of this brush while at the top floor.}} | {{KV|Top floor position|intn=top|vecline|The position of this brush while at the top floor.}} | ||
{{KV|Bottom floor position|vecline|The position of this brush while at the bottom floor. }} | {{KV|Bottom floor position|intn=bottom|vecline|The position of this brush while at the bottom floor. }} | ||
{{KV|Speed|integer|The speed that the elevator moves, in inches per second.}} | {{KV|Speed|intn=top|integer|The speed that the elevator moves, in inches per second.}} | ||
{{KV|Acceleration|integer|The acceleration at which the elevator approaches its target speed, in inches per second per second.}} | {{KV|Acceleration|intn=acceleration|integer|The acceleration at which the elevator approaches its target speed, in inches per second per second.}} | ||
{{KV|Block Damage|float|The amount of damage to do to any entity that blocks the elevator, per frame.}} | {{KV|Block Damage|intn=blockdamage|float|The amount of damage to do to any entity that blocks the elevator, per frame.}} | ||
{{KV|Sound played when the elevator starts moving.|sound}} | {{KV|Sound played when the elevator starts moving.|intn=startsound|sound}} | ||
{{KV|Sound played when the elevator stops moving.|sound}} | {{KV|Sound played when the elevator stops moving.|intn=stopsound|sound}} | ||
{{KV|Sound played when the elevator is disabled.|sound}} | {{KV|Sound played when the elevator is disabled.|intn=disablesound|sound}} | ||
{{KV Targetname}} | {{KV Targetname}} | ||
{{KV Parentname}} | {{KV Parentname}} |
Revision as of 08:55, 17 March 2021
Template:L4d series brush It is an elevator that moves vertically.
Example map: sdk_content\mapsrc\No Mercy\l4d_hospital04_interior.vmf
.
Keyvalues
- Top floor position (top) <vector>
- The position of this brush while at the top floor.
- Bottom floor position (bottom) <vector>
- The position of this brush while at the bottom floor.
- Speed (top) <integer>
- The speed that the elevator moves, in inches per second.
- Acceleration (acceleration) <integer>
- The acceleration at which the elevator approaches its target speed, in inches per second per second.
- Block Damage (blockdamage) <float>
- The amount of damage to do to any entity that blocks the elevator, per frame.
- Sound played when the elevator starts moving. (startsound) <sound>
- Sound played when the elevator stops moving. (stopsound) <sound>
- Sound played when the elevator is disabled. (disablesound) <sound>
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Parentname:
- Parent (parentname) <targetname>
- Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
Origin:
- Origin (X Y Z) (origin) <origin>
- The position of this entity's center in the world. Rotating entities typically rotate around their origin.
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.
Inputs
- MoveToFloor <string >
- Start the elevator moving to the specified floor.
- Disable
- Stops the elevator and prevents it from moving again.
- SetMaxSpeed <float >
- Set the max speed of the elevator.
Parentname:
- SetParent <string >
- Move with this entity. See Entity Hierarchy (parenting).
- SetParentAttachment <string >
- Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
- 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 the the movement hierarchy, leaving it free to move independently.
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.
Outputs
- OnReachedTop <string >
- Fired when the brush reaches the top.
- OnReachedBottom <string >
- Fired when the brush reaches the bottom.