Cleanup is going to take awhile, so the site is back up but editing has been disabled.

Prop door rotating

From HalfLife 2 Knowledge Base

Jump to: navigation, search

Contents

prop_door_rotating

Source(core) Point Entity


description

An entity used to place a door in the world.


properties

  • Name targetname(target_source)
    The name that other entities refer to this entity by.
  • Parent parentname(target_destination)
    The name of this entity's parent in the movement hierarchy. Entities with parents move with their parent.
  • Pitch Yaw Roll (Y Z X) angles(angle) - default: 0 0 0
    This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
  • Global Entity Name 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.
  • World Model model(studio)
  • Skin skin(integer) - default: 0
    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.
  • Disable Shadows disableshadows(choices) - default: Used to disable dynamic shadows on this entity.
    • 0 - No
    • 1 - Yes
  • Lighting Origin Hack lightingoriginhack(target_destination)
    Select a info_lighting_relative to specify a location to sample lighting from, instead of using this entity's origin.
  • Hardware Type hardware(choices)
    1
    • 0 - <None>
    • 1 - Lever
    • 2 - Push bar
  • Ajar Angles (Pitch Yaw Roll) ajarangles(angle) - default: 0 0 0
    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)
    • 0 - Closed
    • 1 - Open forward
    • 2 - Open back
    • 3 - Ajar (use Ajar Angles)
  • Hinge Axis axis(axis)
  • Rotation Distance (deg) distance(float) - default: 90
    The amount, in degrees, that the door should rotate when opened.
  • Speed speed(integer) - default: 100
    The speed at which the door moves.
  • Fully Open Sound soundopenoverride(sound)
    Sound played when the door has finished opening.
  • Fully Closed Sound soundcloseoverride(sound)
    Sound played when the door has finished closing.
  • Moving Sound soundmoveoverride(sound)
    Sound played when the door starts to move.
  • Delay Before close (-1 stay open) returndelay(integer) - default: -1
    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) - default: 0
    Amount of damage done to entities that block the movement of this door, per frame.
  • Health (0 = Unbreakable) health(integer) - default: 0
  • Locked Sound soundlockedoverride(sound)
    Sound played when the player tries to open the door, and fails because it's locked.
  • Unlocked Sound soundunlockedoverride(sound)
    Sound played when the door is unlocked.
  • Force Closed forceclosed(choices) - default: 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.
    • 0 - No
    • 1 - Yes


spawn flags

  • 1: Starts Open - default: OFF
  • 2048: Starts locked - default: OFF
  • 4096: Door silent (No sound, and does not alert NPCs) - default: OFF
  • 8192: Use closes - default: ON
  • 16384: Door silent to NPCS (Does not alert NPCs) - default: OFF
  • 32768: Ignore player +USE - default: OFF


inputs

  • Kill(void)
    Removes this entity from the world.
  • KillHierarchy(void)
    Removes this entity and all its children from the world.
  • AddOutput(string)
    Adds an entity I/O connection to this entity. Format
  • FireUser1(void)
    Causes this entity's OnUser1 output to be fired.
  • FireUser2(void)
    Causes this entity's OnUser2 output to be fired.
  • FireUser3(void)
    Causes this entity's OnUser3 output to be fired.
  • FireUser4(void)
    Causes this entity's OnUser4 output to be fired.
  • SetParent(string)
    Changes the entity's parent in the movement hierarchy.
  • SetParentAttachment(string)
    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.
  • ClearParent(void)
    Removes this entity from the the movement hierarchy, leaving it free to move independently.
  • Skin(integer)
    Changes the model skin to the specified number.
  • SetLightingOriginHack(string)
    Sets the info_lighting_relative for the studiomodel. Use a null string to deactivate the use of specific lighting origins.
  • DisableShadow(void)
    Turn shadow off.
  • EnableShadow(void)
    Turn shadow on.


outputs

  • OnUser1(void)
    Fired in response to FireUser1 input.
  • OnUser2(void)
    Fired in response to FireUser2 input.
  • OnUser3(void)
    Fired in response to FireUser3 input.
  • OnUser4(void)
    Fired in response to FireUser4 input.
  • OnIgnite(void)
    Fired when this object catches fire.


related tutorials

Submit your tutorial for prop_door_rotating

Personal tools