env_bubbles

From Source Entities
Jump to navigation Jump to search

Code classes:

Invisible.png

env_bubbles is a brush entity present in all Source games. It is used to create a volume in which to spawn rising bubbles. The number and frequency of bubbles can be adjusted.

This is obviously intended for use in water, but it can be used outside of water if such an effect is desired.

Flags[edit | edit source]

  • 1: Start Off

Keyvalues[edit | edit source]

Speed of Current (current) <float>
Speed at which the water is moving. This will cause the bubbles to move east as they rise, or west if the number is negative.
Bubble density (density) <integer>
How many bubbles to spawn in a single batch, plus one extra.
Bubble frequency (frequency) <integer>
Time between spawning batches of bubbles. If 20 or greater, the time is always 2.5 seconds. If less, the time is 2.5 - (0.1 * X).

Inputs[edit | edit source]

Activate
Turns on the bubbles.
Deactivate
Turns off the bubbles.
Toggle
If on, turn off. If off, turn on.
SetCurrent <float>
Sets Speed of Current.
SetDensity <integer>
Sets Bubble density.
SetFrequency <integer>
Sets Bubble frequency.