momentary_door

A momentary_door is a brush door that follows a momentary_rot_button, so as a player
turns the wheel, the door moves along with it. The wheel sends the door its position as a number from 0 for closed up
to 1 for open.
Attributes
The entity also has these common keys:
- Naming and triggering: Name and Global Entity Name
- Position: Pitch Yaw Roll
- Appearance: all except Model scale, Body and Skin
- Compiler keys of brush entities: all of them
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.
0lipSets how many units short of the full move the door stops. The door moves its own size in its move direction minus this many units.
movesndSets the sound the door plays while it moves.The 9 choices
No Sound (0)stopsndSets the sound the door plays when it stops.The 9 choices
No Sound (0)Sets a sound file that plays while the door moves, and if you set one, the door ignores Move Sound.
Sets a sound file that plays when the door stops, and if you set one, the door ignores Stop Sound.
fireonstartFires when the door starts moving the other way than its last move, and on its first opening move.
fireonstart_triggerstateSets the use type that the Fire On Start targets get.
- Off (0)
- On (1)
- Toggle (2)
Off (0)fireonstopFires each time the door stops, wherever it is.
fireonstop_triggerstateSets the use type that the Fire On Stop targets get.
- Off (0)
- On (1)
- Toggle (2)
Off (0)fireonopeningFires when the door starts opening after a closing move, and on its first opening move.
fireonopening_triggerstateSets the use type that the Fire On Open Start targets get.
- Off (0)
- On (1)
- Toggle (2)
Off (0)fireonclosingFires when the door starts closing after an opening move.
fireonclosing_triggerstateSets the use type that the Fire On Close Start targets get.
- Off (0)
- On (1)
- Toggle (2)
Off (0)fireonopenedFires when the door stops fully open.
fireonopened_triggerstateSets the use type that the Fire On Open End targets get.
- Off (0)
- On (1)
- Toggle (2)
Off (0)fireonclosedFires when the door stops fully closed.
fireonclosed_triggerstateSets the use type that the Fire On Close End targets get.
- Off (0)
- On (1)
- Toggle (2)
Off (0)soundradiusSets how far away players hear the door's move and stop sounds.
- 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)Flags
1Starts OpenThe door starts at its open end, so turning its wheel toward its end closes it
Notes
- The door only reacts to the use type Set, which a
momentary_rot_buttonsends with its position, and it ignores On, Off and Toggle - The door moves to each new position in a tenth of a second, so it follows the wheel as fast as the wheel turns
- The Fire On targets get the player who turned the wheel last as their activator
- A satchel charge or an armed trip mine that blocks the door goes off, and the player who placed it gets the kills
- The move sound stops when the door reaches its position
- A
multi_watchersees the door as on while it stands open, even a little, and as off while it is closed. Entity states lists the states
See also
momentary_rot_button- the wheel that moves the doorfunc_door- a door that opens and closes by itself- momentary_door on TWHL - the Half-Life entity
Changes since 1.38
- You can use the new keys Custom move sound, Custom stop sound, Sound radius, the Fire On targets and their use types, Object Hint Template and Hint Distance
- Fixed
momentary_doornever playing its Stop Sound. The game read the key but never used it. This was a bug in SBO 1.38 - Fixed a satchel charge or a trip mine under a door jamming the door. The door now sets it off. This was a bug in SBO 1.38
- Fixed
momentary_doorplaying its move sound on after it stopped. It never stopped the sound when it arrived. This was a bug in SBO 1.38


