Env bubbles: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(updates)
(→‎Keyvalues: brush entity!)
Line 14: Line 14:
{{KV|Bubble frequency (frequency)|integer|Bubble emission frequency, in bubbles per second.}}
{{KV|Bubble frequency (frequency)|integer|Bubble emission frequency, in bubbles per second.}}
{{KV|Speed of Current (current)|integer|The speed of the water current in the volume, used to move the bubbles.}}
{{KV|Speed of Current (current)|integer|The speed of the water current in the volume, used to move the bubbles.}}
{{KV BaseEntity|css=1}}
{{KV BaseEntity|brush=1}}


==Inputs==
==Inputs==

Revision as of 20:44, 1 October 2018

English (en)中文 (zh)Translate (Translate)
env_bubbles in game, with density set to 35 and frequency set to 20.

Template:Base brush It is used to create a volume in which to spawn rising bubbles. The number and frequency of bubbles can be adjusted.

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

C++ In code, it is represented by theCBubblingclass, defined in theeffects.cppfile.

Flags

  • 1: Start Off

Keyvalues

Bubble density (density) ([todo internal name (i)]) <integer>
Bubble Count in Volume.
Bubble frequency (frequency) ([todo internal name (i)]) <integer>
Bubble emission frequency, in bubbles per second.
Speed of Current (current) ([todo internal name (i)]) <integer>
The speed of the water current in the volume, used to move the bubbles.


Inputs

Activate
Activates the bubbles.
Deactivate
Deactivates the bubbles.
Toggle
Toggles the bubbles on and off.
SetDensity <integerRedirectInput/integer>
Sets the bubble density.
SetFrequency <integerRedirectInput/integer>
Sets bubble emission rate in bubbles per second.
SetCurrent <integerRedirectInput/integer>
Sets current speed in inches per second.


Outputs

See Also