CPropDoorRotating

From Source Entities
(Redirected from Prop door rotating)
Jump to navigation Jump to search

CPropDoorRotating is code class in every Source game.

Classnames:

  • prop_door_rotating - A rotating door. These doors are usually opened by players when they +use it (E in most games).

ConVars/Commands[edit | edit source]

ConVar/CommandParameters or default valueParameter TypeEffect
g_debug_doors00 disables, 1 enablesShows 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.
  • 524288: Start Unbreakable (only available in L4d.pngL4d2-small.png) - Makes the door unbreakable by default.
  • 524288: Start Breakable (only available in Csgo-small.png) - Makes the door breakable by default.

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 L4d.pngL4d2-small.pngCsgo-small.png)
Makes the door breakable.
SetUnbreakable  (only available in L4d.pngL4d2-small.pngCsgo-small.png)
Makes the door unbreakable.
MoveToRotationDistance <float> (available in all games since P2.png)
Sets Rotation Distance and moves the door to the open position.

Outputs[edit | edit source]

OnBreak  (only available in L4d.pngL4d2-small.png)
Doesn't exist.
OnRotationDone  (available in all games since P2.png)
Fires when the door finishes rotating to anywhere. Does not fire when blocked.

See Also[edit | edit source]