prop_door_breakable

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)

prop_door_breakable is a model entity available in No More Room in Hell No More Room in Hell.

Entity Description

The prop_door_breakable is a point entity that is associated with doors, and allowing them to be broken or damaged by Zombies and Survivors. It inherits many aspects from prop_door_rotating, due to it's nature of being built for doors.

KeyValues

Name (targetname) <string>
The name that other entities refer to this entity by.
Entity Scripts (vscripts) <string>
Name(s) of script files that are executed after all entities have spawned.
Script think function (thinkfunction) <string>
Name of a function in this entity's script scope which will be called automatically.
Parent (parentname) <targetname>
The name that other entities refer to this entity by.
Pitch Yaw Roll (Y Z X) (angles) <angles>
The name that other entities refer to this entity by.
Global Entity Name (globalname) <string>
The name that other entities refer to this entity by.
World Model (model) <model path>
The name that other entities refer to this entity by.
Skin (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.
Model Scale (modelscale) <float>
A multiplier for the size of the model.
Disable Shadows (disableshadows) <boolean>
Used to disable dynamic shadows on this entity.
Slave Name (slavename) <targetname>
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).
Hardware Type (hardware) <choices>
The type of mechanism used to open the door (handle, push bar, keypad). The mechanism only appears in the game, not in Hammer.
  • 0 - None
  • 1 - Lever (i.e. door handle)
  • 2 - Push bar
  • 3 - Keypad
Ajar Angles (Pitch Yaw Roll) (ajarangles) <angle>
If the door 'Spawn Position' is set to Ajar, these are the angles to spawn at, instead of being open or closed.
Spawn Position (spawnpos) <choices>
State the door should begin in. Check the door's angles to see forward/backward orientation.
  • 0 - Closed
  • 1 - Open forward
  • 2 - Open back
  • 3 - Ajar (use Ajar Angles)
Hinge Axis (axis) <axis> Obsolete
Deprecated.
Would allow users to set a custom axis along which the door rotates, but does not work.
Rotation Distance (distance) <float>
The amount, in degrees, that the door should rotate when opened.
Speed (speed) <integer>
The speed at which the door moves.
Fully Open Sound (soundopenoverride) <string>
Sound played when the door has finished opening.
Fully Closed Sound (soundcloseoverride) <string>
Sound played when the door has finished closing.
Moving Sound (soundmoveoverride) <string>
Sound played when the door starts to move.
Delay Before close (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.
Damage Inflicted When Blocked (dmg) <integer>
Amount of damage done to entities that block the movement of this door, per frame.
Health (health) <integer>
How much health does this door have? (0 equals Unbreakable).
Locked Sound (soundlockedoverride) <string>
Optional overrides to the sounds played by the door. Sound played when the player tries to open the door, and fails because it's locked.
Unlocked Sound (soundunlockedoverride) <string>
Optional overrides to the sounds played by the door. Sound played when the door is unlocked.
Force Closed (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.
Open Direction (opendir) <choices>
Force the door to open only forwards or only backwards. Both directions is the standard door behavior.
  • Both directions
  • Forward only
  • Backward only

Flags

Starts Open : [1]
Starts locked : [2048]
Door silent (No sound, and does not alert NPCs) : [4096]
Use closes : [8192]
Door silent to NPCs (Does not alert NPCs) : [16384]
Ignore player +USE : [32768]

Inputs

Open
Open the door, if it is not fully open.
Close
Close the door, if it is not fully closed.
Toggle
Toggle the door between open and closed.
OpenAwayFrom <targetnameRedirectInput/string>
Open the door away from the specified entity.
Lock
Lock the door.
Unlock
Unlock the door.
DisableShadow
Disables dynamic shadow casting from the door.
EnableShadow
Enables dynamic shadow casting from the door.
SetModelScale <floatRedirectInput/float>
Set the scale for the model to be.
SetSpeed <floatRedirectInput/float>
Set the speed at which the door rotates. 100 is default.
SetRotationDistance <floatRedirectInput/float>
Set the distance (in degrees) between Open and Closed.

Outputs

OnBlockedClosing
Fired when the door cannot close, because it's blocked by an entity.
OnBlockedOpening
Fired when the door cannot open, because it's blocked by an entity.
OnClose
Fired when the door is being closed.
OnOpen
Fired when the door is being opened.
OnFullyClosed
Fired when the door is fully closed.
OnFullyOpen
Fired when the door is fully open.
OnIgnite
Fired when the door is lit on fire.
OnLockedUse
Fired when the door is locked, and someone tries to open it.
OnUnblockedClosing
Fired when the door is closing, but it isn't blocked by an entity.
OnUnblockedOpening
Fired when the door is opening, but it isn't blocked by an entity.
OnUser1 to OnUser4
Fired in response to the FireUser inputs.