Skip to main content

func_water

func_water icon
Brush entity

A func_water is water, slime or lava that moves like a func_door when you trigger it, so the level of a liquid can rise or fall. It has the keys of a func_door.

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 liquid to use it. A liquid isn't solid, so a look never meets it, and with "Direct only", nobody can use it.

  • Default (0) - As for any object
  • Direct only (1) - The player must look straight at it
  • Not through walls (2) - The player can't use it 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)
Contentsskin

Picks what the brush is filled with, and players swim in all three, while slime and lava also hurt players all the time they are in it, lava more.

  • Water (-3)
  • Slime (-4)
  • Lava (-5)

If you leave this key empty, the brush isn't a liquid, but a solid brush that moves like a door.

Default Water (-3)
Wave HeightWaveHeight

Sets how high the waves on the surface are drawn.

If you leave this key empty, it is 0 and the surface is flat.

Default 3.2

Flags​

1Starts Open

The liquid starts in its moved position, and triggering it moves it back

8Passable

Players and monsters pass through the door

32Toggle

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

256Use Only

A player who touches the liquid doesn't move it, only a trigger or a player's use key does

512Monsters Can't

Monsters can't open the door

Notes​

  • A satchel charge or an armed tripmine that blocks the liquid goes off, the player who placed it gets the kills, and the liquid moves on

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 liquid moves on. In SBO 1.38, the liquid turned back from it every time