func_door_rotating

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:
- Naming and triggering: Name, Target, Delay before trigger, KillTarget, Master and Global Entity Name
- Position: Pitch Yaw Roll
- Appearance: all except Model scale, Body and Skin
- Compiler keys of brush entities: all of them
locked_soundSets 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)
None (0)unlocked_soundSets 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)locked_sentenceSets 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)unlocked_sentenceSets 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)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.
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.
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.
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.
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
None (empty)objecthint_distanceSets 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.
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.
parentflagsKeeps 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.
0speedSets how fast the door moves, in units per second, or in degrees per second for a door that turns. 0 means 100.
100waitSets 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.
4dmgSets how much damage the door deals to anything that blocks it, each time it is blocked.
0netnameThe door fires this when it is closed.
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
No (0)Sets the use type that the targets of Fire On Start get.
- Off (0)
- On (1)
- Toggle (2)
Off (0)Sets the use type that the targets of Fire On Stop get.
- Off (0)
- On (1)
- Toggle (2)
Off (0)Sets the use type that the targets of Fire On Open Start get.
- Off (0)
- On (1)
- Toggle (2)
Off (0)Sets the use type that the targets of Fire On Close Start get.
- Off (0)
- On (1)
- Toggle (2)
Off (0)Sets the use type that the targets of Fire On Open End get.
- Off (0)
- On (1)
- Toggle (2)
Off (0)Sets the use type that the targets of Fire On Close End get.
- Off (0)
- On (1)
- Toggle (2)
Off (0)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.
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 (0)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
No (0)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
Collide with corpses (0)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
No (0)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
No, go back (default) (0)movesndSets the sound the door plays while it moves, and Custom move sound replaces it.The 11 choices
No Sound (0)stopsndSets 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)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 (large) (0)Sets a sound file the door plays when it stops on its way back.
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)healthvalueSets how much health a player gets each time they open the door, up to their maximum health, and 0 gives none.
distanceSets 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.
90Flags
1Starts OpenThe door starts open, and closing moves it to where it is placed in the editor
2Reverse DirThe door turns the other way
8PassablePlayers and monsters pass through the door
16One-wayThe 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
32ToggleThe door stays open until it is triggered again, which closes it
64X AxisThe door turns around the X axis, the east-west line of the map, instead of the vertical axis
128Y AxisThe door turns around the Y axis, the north-south line of the map, instead of the vertical axis
256Use OnlyPlayers open the door with their use key, not by touching it
512Monsters Can'tMonsters 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
func_door- a door that slides, with the keys both doors sharefunc_rotating- a brush that keeps turning- func_door_rotating on TWHL - the Half-Life entity
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



