Env bubbles: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
{{lang|Env bubbles|title=env_bubbles}}
{{lang|Env bubbles|title=env_bubbles}}
{{EntityTabs|env_bubbles|goldsrc=1|source=1|main=source}}
[[File:Env bubbles.gif|thumb|right|280px|<code>env_bubbles</code> in game, with density set to 6 and frequency set to 2.]]
[[File:Env bubbles.gif|thumb|right|280px|<code>env_bubbles</code> in game, with density set to 6 and frequency set to 2.]]
{{entity|env_bubbles|type=e2}} It is used to create a volume in which to spawn rising bubbles. The number and frequency of bubbles can be adjusted.
{{entity|env_bubbles|type=e2}} It is used to create a volume in which to spawn rising bubbles. The number and frequency of bubbles can be adjusted.
Line 10: Line 11:
{{bug|Doesn't work in {{Game link|Portal 2}} with any [[tool texture]].}}
{{bug|Doesn't work in {{Game link|Portal 2}} with any [[tool texture]].}}
:{{confirm|May be a HammerAddons bug caused by the origin not being set to 0 0 0.}}
:{{confirm|May be a HammerAddons bug caused by the origin not being set to 0 0 0.}}
==Flags==
{{fl|1|Start Off}}


==Keyvalues==
==Keyvalues==
Line 27: Line 24:
{{IO|SetFrequency|Sets bubble emission rate in bubbles per second.|param=integer}}
{{IO|SetFrequency|Sets bubble emission rate in bubbles per second.|param=integer}}
{{IO|SetCurrent|Sets current speed in inches per second.|param=integer}}
{{IO|SetCurrent|Sets current speed in inches per second.|param=integer}}
==Flags==
{{fl|1|Start Off}}


==See Also==
==See Also==

Revision as of 12:53, 14 August 2023

English (en)中文 (zh)Translate (Translate)

Template:EntityTabs

env_bubbles in game, with density set to 6 and frequency set to 2.

Template:Entity 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.
Note.pngNote:Tying a toolstrigger brush to this entity will result in the entity being rendered in-game as a raw brush of said material. It should be set to Nodraw or Invisible instead.
Icon-Bug.pngBug:Doesn't work in Portal 2 Portal 2 with any tool texture.  [todo tested in ?]
Confirm:May be a HammerAddons bug caused by the origin not being set to 0 0 0.

Keyvalues

Bubble density (density) <integer>
Bubble Count in Volume.
Bubble frequency (frequency) <integer>
Bubble emission frequency, in bubbles per second.
Speed of Current (current) <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.

Flags

Start Off : [1]

See Also