Skip to main content

func_door_rotating

func_door_rotating icon
Brush entity

A func_door_rotating opens and closes by turning around its origin, set with an origin brush. It opens when a player touches it or uses it, or when you trigger it, and it closes again after its delay.

Attributes​

The entity also has these common keys:

KeyDescriptionDefault
Locked Soundlocked_sound

Sets the sound the entity plays when a player tries to use it while its Master locks it. A door also plays it when a player touches it and it only opens when triggered.

  • None (0)
  • Access Denied (2)
  • Small zap (8)
  • Buzz (10)
  • Buzz Off (11)
  • Latch Locked (12)
Default None (0)
Unlocked Soundunlocked_sound

Sets the sound the entity plays when it is used while it isn't locked. A button plays it when it is pressed, and a door when it starts to open.

The 12 choices
  • None (0)
  • Big zap & Warmup (1)
  • Access Granted (3)
  • Quick Combolock (4)
  • Power Deadbolt 1 (5)
  • Power Deadbolt 2 (6)
  • Plunger (7)
  • Small zap (8)
  • Keycard Sound (9)
  • Buzz (10)
  • Latch Unlocked (13)
  • Lightswitch (14)
Default None (0)
Locked Sentencelocked_sentence

Sets an announcer sentence group the entity speaks when a player tries to use it while it is locked. Each try plays the next sentence of the group, at most one every few seconds.

The 10 choices
  • None (0)
  • Gen. Access Denied (1)
  • Security Lockout (2)
  • Blast Door (3)
  • Fire Door (4)
  • Chemical Door (5)
  • Radiation Door (6)
  • Gen. Containment (7)
  • Maintenance Door (8)
  • Broken Shut Door (9)
Default None (0)
Unlocked Sentenceunlocked_sentence

Sets an announcer sentence group the entity speaks when it is used while it isn't locked. Each use plays the next sentence of the group.

The 9 choices
  • None (0)
  • Gen. Access Granted (1)
  • Security Disengaged (2)
  • Blast Door (3)
  • Fire Door (4)
  • Chemical Door (5)
  • Radiation Door (6)
  • Gen. Containment (7)
  • Maintenance area (8)
Default None (0)
Custom locked soundHalf-Life Unified SDKFeaturefullocked_sound_override

Sets a sound file played instead of Locked Sound, and only that file is loaded.

If you leave this key empty, the entity plays Locked Sound.

Custom unlocked soundHalf-Life Unified SDKFeaturefulunlocked_sound_override

Sets a sound file played instead of Unlocked Sound, and only that file is loaded.

If you leave this key empty, the entity plays Unlocked Sound.

Custom locked sentenceHalf-Life Unified SDKFeaturefullocked_sentence_override

Sets the name of a sentence group of sound/sentences.txt, such as NA, which the entity speaks instead of Locked Sentence.

If you leave this key empty, the entity speaks Locked Sentence.

Custom unlocked sentenceHalf-Life Unified SDKFeaturefulunlocked_sentence_override

Sets the name of a sentence group of sound/sentences.txt, such as EA, which the entity speaks instead of Unlocked Sentence.

If you leave this key empty, the entity speaks Unlocked Sentence.

Object Hint TemplateFeaturefulobjecthint

Shows brackets around the object for players near it. Within Hint Distance, the brackets are faint and in the HUD color. When the player is close enough to use the object and looks at it, the brackets take the color of the choice.

  • None (empty) - No brackets
  • button - Yellow, and orange while a master locks the object
  • charger - Green, and red while the charger is empty
  • eyescanner - Yellow
  • pickup - Yellow
Default None (empty)
Hint Distanceobjecthint_distance

Sets how far from the player's eyes the faint brackets show, in units, up to 4096. The object must be in front of the player and in sight.

If you leave this key empty or set 0, the distance is 512 units.

Move withSpirit of Half-Lifemovewith

Names the parent, an entity that this one moves and turns with. The entity keeps the place and the angles it has on the parent in the editor. If several entities have the name, the first one counts. A name ending in .1 to .4 puts a sprite or a model that isn't solid on that attachment point of the model of the parent. A solid brush on a parent that turns needs its own origin brush. Moving objects explains it all.

If you leave this key empty, the entity doesn't move with anything.

Axis locksparentflags

Keeps some of the entity's own position or angles instead of following the parent. Add up the values of the axes to keep: 2 for X, 4 for Y, 8 for Z, 16 for pitch, 32 for yaw and 64 for roll. So 112 keeps the entity level. 0 follows the parent on every axis.

Default 0
Speedspeed

Sets how fast the door moves, in units per second, or in degrees per second for a door that turns. 0 means 100.

Default 100
Delay before closewait

Sets how many seconds the door stays open before it closes, and -1 keeps it open.

If you leave this key empty or set 0, the door closes as soon as it is open.

Default 4
Damage inflicted when blockeddmg

Sets how much damage the door deals to anything that blocks it, each time it is blocked.

Default 0
Fire on Closenetname

The door fires this when it is closed.

Obey Trigger ModeFeaturefulSven Co-opm_iObeyTriggerMode

Sets how the door reacts to the use type of a trigger.

  • No (0) - Every trigger opens or closes the door while it stands still, as in Half-Life
  • Yes (1) - On opens it, Off closes it and Toggle opens or closes it, and a trigger while the door moves does nothing
  • Yes, even when currently moving (2) - Like "Yes", and also while it moves: On turns a closing door back, Off closes an opening door and Toggle does either. An opening door only closes with the flag Toggle, and without it, the door keeps opening
Default No (0)
Fire On StartFeaturefulfireonstart

The door fires this each time it starts to move, either way.

Fire On Start use typeFeaturefulfireonstart_triggerstate

Sets the use type that the targets of Fire On Start get.

  • Off (0)
  • On (1)
  • Toggle (2)
Default Off (0)
Fire On StopFeaturefulfireonstop

The door fires this each time it stops, at either end.

Fire On Stop use typeFeaturefulfireonstop_triggerstate

Sets the use type that the targets of Fire On Stop get.

  • Off (0)
  • On (1)
  • Toggle (2)
Default Off (0)
Fire On Open StartFeaturefulfireonopening

The door fires this when it starts to open.

Fire On Open Start use typeFeaturefulfireonopening_triggerstate

Sets the use type that the targets of Fire On Open Start get.

  • Off (0)
  • On (1)
  • Toggle (2)
Default Off (0)
Fire On Close StartFeaturefulfireonclosing

The door fires this when it starts to close.

Fire On Close Start use typeFeaturefulfireonclosing_triggerstate

Sets the use type that the targets of Fire On Close Start get.

  • Off (0)
  • On (1)
  • Toggle (2)
Default Off (0)
Fire On Open EndFeaturefulfireonopened

The door fires this when it is open.

Fire On Open End use typeFeaturefulfireonopened_triggerstate

Sets the use type that the targets of Fire On Open End get.

  • Off (0)
  • On (1)
  • Toggle (2)
Default Off (0)
Fire On Close EndFeaturefulfireonclosed

The door fires this when it is closed.

Fire On Close End use typeFeaturefulfireonclosed_triggerstate

Sets the use type that the targets of Fire On Close End get.

  • Off (0)
  • On (1)
  • Toggle (2)
Default Off (0)
Return speedFeaturefulreturn_speed

Sets how fast the door moves when it closes again.

If you leave this key empty or set 0, it moves back at its Speed.

Player use policyFeaturefuldirectuse

With Use Only, sets how a player must look at the door to use it.

  • Default (0) - As for any object
  • Direct only (look straight at it) (1) - The player must look straight at the door
  • Not through walls (2) - The player can't use the door through a wall
Default Default (0)
If locked, play locked sound on useFeaturefullocked_play_on_use

Sets whether the door plays its locked sound when a trigger uses it while its master keeps it locked.

  • No (0) - It plays no sound
  • Yes (1) - It plays the locked sound
Default No (0)
Collision with corpsesFeaturefulignore_corpses

Sets whether dead bodies block the door.

  • Collide with corpses (0) - Dead bodies block it like anything else
  • Don't collide with corpses (1) - The door moves through dead bodies
Default Collide with corpses (0)
Instantly gib corpsesFeaturefulinstant_gib_corpses

Sets what happens to a dead body that blocks the door.

  • No (0) - It blocks the door
  • Yes (1) - It breaks into gibs at once
Default No (0)
Continue moving if blocker is crushedFeaturefulblocker_recheck

Sets what the door does when its damage kills the thing that blocks it.

  • No, go back (default) (0) - The door goes back
  • Yes, continue (1) - The door keeps moving
  • No, go back (2) - The door goes back
Default No, go back (default) (0)
Move Soundmovesnd

Sets the sound the door plays while it moves, and Custom move sound replaces it.

The 11 choices
  • No Sound (0)
  • Servo (Sliding) (1)
  • Pneumatic (Sliding) (2)
  • Pneumatic (Rolling) (3)
  • Vacuum (4)
  • Power Hydraulic (5)
  • Large Rollers (6)
  • Track Door (7)
  • Snappy Metal Door (8)
  • Squeaky 1 (9)
  • Squeaky 2 (10)
Default No Sound (0)
Stop Soundstopsnd

Sets the sound the door plays when it reaches the end of its move, and Custom stop sound replaces it.

The 9 choices
  • No Sound (0)
  • Clang with brake (1)
  • Clang reverb (2)
  • Ratchet Stop (3)
  • Chunk (4)
  • Light airbrake (5)
  • Metal Slide Stop (6)
  • Metal Lock Stop (7)
  • Snappy Metal Stop (8)
Default No Sound (0)
Sound radiusFeaturefulsoundradius

Sets how far the sounds of the door carry.

  • Small (-2) - Up to about 500 units away
  • Medium (-1) - Up to about 800 units away
  • Default (large) (0) - Up to about 1250 units away
  • Huge (1) - Up to about 2000 units away
  • Enormous (2) - Up to about 4000 units away
  • Play Everywhere (3) - Anywhere on the map, at full volume
Default Default (large) (0)
Custom move soundFeaturefulnoise1

Sets a sound file the door plays while it moves, instead of Move Sound.

Custom stop soundFeaturefulnoise2

Sets a sound file the door plays when it stops, instead of Stop Sound.

Custom stop sound on the way backFeaturefulnoise3

Sets a sound file the door plays when it stops on its way back.

Stop sound on the way backFeaturefulreturnstopsnd

Sets the sound the door plays when it gets back to where it started, and Custom stop sound on the way back replaces it.

The 10 choices
  • Same as Stop Sound (0) - The Stop Sound plays there too
  • Clang with brake (1)
  • Clang reverb (2)
  • Ratchet Stop (3)
  • Chunk (4)
  • Light airbrake (5)
  • Metal Slide Stop (6)
  • Metal Lock Stop (7)
  • Snappy Metal Stop (8)
  • None (255) - No sound
Default Same as Stop Sound (0)
Health to give on openhealthvalue

Sets how much health a player gets each time they open the door, up to their maximum health, and 0 gives none.

Distancedistance

Sets how far the door turns when it opens, in degrees.

If you leave this key empty, it is 0 and the door doesn't turn.

Default 90

Flags​

1Starts Open

The door starts open, and closing moves it to where it is placed in the editor

2Reverse Dir

The door turns the other way

8Passable

Players and monsters pass through the door

16One-way

The door always opens in the same direction. Without this flag, a door that turns around the vertical axis opens away from the player who opens it

32Toggle

The door stays open until it is triggered again, which closes it

64X Axis

The door turns around the X axis, the east-west line of the map, instead of the vertical axis

128Y Axis

The door turns around the Y axis, the north-south line of the map, instead of the vertical axis

256Use Only

Players open the door with their use key, not by touching it

512Monsters Can't

Monsters can't open the door

Notes​

  • A door with a Name only opens when you trigger it, not when a player touches it
  • A satchel charge or an armed tripmine that blocks the door goes off, the player who placed it gets the kills, and the door moves on
  • A door with Starts Open opens and closes like any other door, and it starts open
  • Each player can turn the object hints off, or keep only the hint on what their use key would use, with the client setting cl_objecthint

See also​

Changes since 1.38​

  • You can use the same new keys as on func_door
  • A satchel charge or an armed tripmine in the way goes off and the door moves on. In SBO 1.38, the door turned back from it every time, so one charge could keep the door from closing for good
  • A door with Starts Open opens and closes again and again. In SBO 1.38, it closed once and never opened again