Template:KV Door

From Valve Developer Community
Revision as of 09:31, 24 February 2013 by VXP (talk | contribs)

Jump to: navigation, search


Speed <int>
Speed that the door moves, in units (sliding door) or degrees (rotating door) per second.
Start Sound <string>
Stop Sound <string>
Overrides for the sound played when the door starts/stops moving.
Start Close Sound <string>
Stop Close Sound <string>
Optional sound override used when the door is closing.
Delay Before Reset <int>
Time until the door returns to the closed position. A value of -1 means the door never auto-closes.
Lip <int>
The amount, in inches, of the button to leave sticking out of the wall it recedes into when pressed. Negative values make the button recede even further into the wall. (Not deprecated)
Blocking Damage <int>
Amount of damage done to entities that block the movement of this door, per frame.
Force Closed <bool>
Makes the door close no matter what. Useful for doors that have to close even if the player tries to block them with objects.
Ignore Debris <bool>
Changes the door's collision group to one that ignore collisions with debris objects. Not compatible with the non-solid-to-player spawnflag.
Health <int>
Message If Triggered <string>
Locked Sound <string>
Unlocked Sound <string>
Sounds played when the player tries to use the door.
Spawn Position <choices>
State the door should begin in; open or closed.
Locked Sentence <choices>
Unlocked Sentence <choices>
Deprecated. Were used in HL1 to play Black Mesa's "access denied" voice.
Minimum Light Level <int>
The minimum level of ambient light that hits this brush.
Loop Moving Sound? <bool>
Makes the door's Start Sound loop until the door finishes moving.
Bug: If an already-looping sound is played with this enabled, it can continue forever. Further attempts to open or close the door will only add another looping sample to the noise.


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 ShadowDepth (disableshadowdepth) <boolean> (in all games since [Portal 2])
Used to disable rendering into shadow depth (for projected textures) for this entity.
Projected Texture Cache (shadowdepthnocache) <choices> (in all games since [Portal 2])
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.
  • 0 : Default
  • 1 : No cache - render every frame
  • 2 : Cache it - render only once
Disable flashlight (disableflashlight) <boolean> (in all games since [Portal 2])
Used to disable projected texture lighting and shadows on this entity.


Global Entity Name <string>
Name by which this entity is linked to another entity in a different map. When the player transitions to a new map, entities in the new map with globalnames matching entities in the previous map will have the previous map's state copied over their state.


Render Mode (rendermode) <choices>
Set a non-standard rendering mode on this entity.

Render FX / Transparency (0 - 255) (renderamt) <integer>
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.
Disable Receiving Shadows (disablereceiveshadows) <boolean>
Prevent the entity from receiving shadows on itself.


Render FX (renderfx) <choices>
Preset pattern of appearance effects.


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.


Name (targetname) <string>
The targetname that other entities refer to this entity by.
Entity Scripts (vscripts) <scriptlist> (in all games since <Left 4 Dead 2>)
Space delimited list of VScript files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.
Script think function (thinkfunction) <string> (in all games since <Left 4 Dead 2>)
Name of a function in this entity's script which will be called automatically every 100 milliseconds (ten times a second) for the duration of the script. It can be used to create timers or to simulate autonomous behavior. The return value (if present) will set the time until the next call.
Note:Try to avoid expensive operations in this function, as it may cause performance problems.