CPropDoorRotating
Jump to navigation
Jump to search
Code classes:
CPropDoorRotatingCBasePropDoorCDynamicPropCBreakablePropCBaseProp(props)CBaseAnimating(models)CBaseEntity(all ents)
CPropDoorRotating is code class in every Source game.
Classnames:
prop_door_rotating- A rotating door. These doors are usually opened by players when they+useit (E in most games).
ConVars/Commands[edit | edit source]
| ConVar/Command | Parameters or default value | Parameter Type | Effect |
|---|---|---|---|
g_debug_doors | 0 | 0 disables, 1 enables | Shows info about detecting blocking entities. |
Flags[edit | edit source]
- 1: Starts Open - Makes the door rotate to its open position when it spawns. Overrides Spawn Position.
Keyvalues[edit | edit source]
- Spawn Position
(spawnpos)<choices> - The door will rotate to this position when spawned (appearance not updated in Hammer).
- 0: Closed
- 1: Direction 1 (same as Starts Open)
- 2: Direction 2
- 3: Ajar (see Ajar Angles)
- Ajar Angles (Pitch Yaw Roll)
(ajarangles)<angle> - If Spawn Position is Ajar, the door will spawn with these angles.
Hinge Axis(axis)<axis>- Doesn't affect anything. Axis is always straight Z.
- Rotation Distance
(distance)<float> - How many degrees the door should move. If 0, defaults to 90.
Health (0 = Unbreakable)(health)<integer>- Does nothing.
- Open Direction
(opendir)<choices> - How the door can open.
- 0: Open Both Directions (normal behavior)
- 1: Open Forward
- 2: Open Backward
Inputs[edit | edit source]
- SetRotationDistance
<float> - Sets Rotation Distance.
- SetSpeed
<float> - Sets Speed
(speed). - SetBreakable (only available in


) - Makes the door breakable.
- SetUnbreakable (only available in


) - Makes the door unbreakable.
- MoveToRotationDistance
<float>(available in all games since
) - Sets Rotation Distance and moves the door to the open position.
Outputs[edit | edit source]
OnBreak(only available in
)- Doesn't exist.
- OnRotationDone (available in all games since
) - Fires when the door finishes rotating to anywhere. Does not fire when blocked.