Prop door rotating
From Valve Developer Community
This point-based entity is available in all Source games.
| Table of contents |
[edit]
Entity description
An entity used to place a standard door in the world.
For a sliding door, use func_door instead. For a brush-based rotating/pivoting door, use func_door_rotating instead.
To make a pair of doors open and close together, give them the same targetname.
Note: props_doors/door01_dynamic.mdl is not a valid rotating door prop. It is instead meant for use as an npc_furniture entity. See the door struggle at the end of d1_trainstation_03 for an example of its use.- See also WiseDoor - Example use and illustration of doors.
[edit]
Keyvalues
- targetname <target_source>
- Defines the name that other entities refer to this entity by.
- hammerid [Episode Two Update]
- <integer readonly> This id is used for debugging purposes in Hammer.
- parentname <target_destination>
- Specifies the targetname of this entity's Parent in a movement hierarchy. Child entities move with their Parent.
- Pitch Yaw Roll (Y Z X)
- This entity's angular orientation in the world (also used for angular effect entities).
- globalname
- <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.
- model
- <studio> World Model (Maximum string length: 128)
- skin
- <integer> Some models have multiple versions of their textures called skins. Set this to a number other than 0 to use that skin instead of the default.
- disableshadows
- <boolean> Used to disable dynamic shadow casting from this entity.
- hardware
- <choices> Hardware Type
Literal Value Description 0 <None> 1 Lever 2 Push bar 3 [Episode One Update] Keypad [Episode One Update]
- spawnpos
- <choices> Spawn Position
Literal Value Description 0 Closed 1 Open forward 2 Open back 3 Ajar (use Ajar Angles)
- ajarangles
- <angle> If the door 'Spawn Position' is set to Ajar, these are the angles to spawn at, instead of being open or closed.
- axis
- <axis> Hinge Axis - Altering these values apparently has no effect. (Possible bug.)
- distance
- <float> The amount, in degrees, that the door should rotate when opened.
- speed
- <integer> The speed at which the door moves.
- soundopenoverride
- <sound> Sound played when the door has finished opening. OnFullyOpen is triggered at this time.
- soundcloseoverride
- <sound> Sound played when the door has finished closing. OnFullyClosed is triggered at this time.
- soundmoveoverride
- <sound> Sound played when the door starts to move.
- returndelay
- <integer> Amount of time, in seconds, after the door has opened before it closes. If the value is set to -1, the door never closes itself.
- dmg
- <integer> Amount of damage done to entities that block the movement of this door, per frame.
- health
- <integer> 0 = Unbreakable // NEEDHELP: Doesn't look like this is hooked up anymore?
- soundlockedoverride
- <sound> Sound played when the player tries to open the door, and fails because it's locked.
- soundunlockedoverride
- <sound> Sound played when the door is unlocked.
- forceclosed
- <boolean> If set, this door will close no matter what. Useful for doors that have to close even if the player tries to block them with objects.
- slavename [Episode One Update]
- <target_destination> The name of any doors that should be slaved to this door (i.e. should open when this one opens, and close when this one closes).
- opendir [Episode One Update]
- <choices> Force the door to open only forwards or only backwards. Both directions is the standard door behavior.
Literal Value Description 0 Open Both Directions 1 Open Forward Only 2 Open Backward Only
[edit]
The Ship
- opendirection
- <choices> Force the door to open only forwards or only backwards. Both directions is the standard door behavior. "opendir" does not apply to The Ship.
Literal Value Description 0 Open Both Directions 1 Open Forward Only 2 Open Backward Only
[edit]
Flags
- 1 : Starts Open
- 2048 : Starts locked
- 4096 : Door silent (No sound, and does not alert NPCs)
- 8192 : Use closes
- 16384 : Door silent to NPCS (Does not alert NPCs)
- 32768 : Ignore player +USE
[edit]
Inputs
- Kill
- Removes this entity from the world.
- Removes this entity and all its children from the world.
- AddOutput <string>
- Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
- Format:
<key> <value> - Format:
<output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>
- Causes this entity's OnUser1-4 outputs to be fired. See User Inputs and Outputs.
- SetParent <target_destination>
- Changes the entity's parent in the movement hierarchy.
- SetParentAttachment <string>
- Change this entity to attach to a specific attachment point on its parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment.
- SetParentAttachmentMaintainOffset <string> [Episode One Update]
- Change this entity to attach to a specific attachment point on it's parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment. The entity will maintain it's position relative to the Parent's Origin and Angles at the time it is attached.
- Removes this entity from its current movement hierarchy.
- Skin <integer>
- Changes the model skin to the specified number.
- SetBodyGroup <integer>
- Set this prop's body group (from 0 - n). Changes the model body to the specified number.
- DisableShadow
- Turn shadow off.
- EnableShadow
- Turn shadow on.
- AlternativeSorting <bool> [Episode One Update]
- Used to attempt to fix sorting problems when rendering. True activates, false deactivates
- Open
- Open the door, if it is not fully open.
- OpenAwayFrom <target_destination>
- Open the door away from the specified entity.
- Close
- Close the door, if it is not fully closed.
- Toggle
- Toggle the door between open and closed.
- Lock
- Lock the door.
- Unlock
- Unlock the door.
- SetRotationDistance <float> [Episode One Update]
- Set the distance (in degrees) between Open and Closed.
[edit]
Outputs
- Fired in response to FireUser1-4 inputs. See User Inputs and Outputs.
- !activator = activator
- OnIgnite
- Fired when this object catches fire.
- OnClose
- Fired when the door is told to close.
- !activator = opener (sometimes = !this)
- OnOpen
- Fired when the door is told to open.
- !activator = opener (sometimes = !this)
- OnFullyOpen
- Fired when the door reaches the fully open position.
- !activator = user
- OnFullyClosed
- Fired when the door reaches the fully closed position.
- !activator = user
- OnBlockedClosing
- Fired when the door is blocked while closing.
- !activator = blocker
- OnBlockedOpening
- Fired when the door is blocked while opening.
- !activator = blocker
- OnUnblockedClosing
- Fired when the door is unblocked while closing.
- OnUnblockedOpening
- Fired when the door is unblocked while opening.
