Skip to main content

momentary_door

momentary_door icon
Brush entity

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:

KeyDescriptionDefault
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
Liplip

Sets 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.

Move Soundmovesnd

Sets the sound the door plays while it moves.

The 9 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)
Default No Sound (0)
Stop Soundstopsnd

Sets the sound the door plays when it stops.

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)
Custom move soundHalf-Life Unified SDKnoise1

Sets a sound file that plays while the door moves, and if you set one, the door ignores Move Sound.

Custom stop soundHalf-Life Unified SDKnoise2

Sets a sound file that plays when the door stops, and if you set one, the door ignores Stop Sound.

Fire On Startfireonstart

Fires when the door starts moving the other way than its last move, and on its first opening move.

Fire On Start use typefireonstart_triggerstate

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

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

Fires each time the door stops, wherever it is.

Fire On Stop use typefireonstop_triggerstate

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

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

Fires when the door starts opening after a closing move, and on its first opening move.

Fire On Open Start use typefireonopening_triggerstate

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

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

Fires when the door starts closing after an opening move.

Fire On Close Start use typefireonclosing_triggerstate

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

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

Fires when the door stops fully open.

Fire On Open End use typefireonopened_triggerstate

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

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

Fires when the door stops fully closed.

Fire On Close End use typefireonclosed_triggerstate

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

  • Off (0)
  • On (1)
  • Toggle (2)
Default Off (0)
Sound radiussoundradius

Sets 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 Default (large) (0)

Flags​

1Starts Open

The 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_button sends 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_watcher sees 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​

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_door never 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_door playing its move sound on after it stopped. It never stopped the sound when it arrived. This was a bug in SBO 1.38