This article's documentation is for anything that uses the Source engine. Click here for more information.

Env bubbles: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎Inputs: Substituted IO templates)
No edit summary
Line 7: Line 7:


{{note|Tying a [[Triggers#Level design|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.}}
{{note|Tying a [[Triggers#Level design|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.}}
{{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.}}
}}
{{Note|Used bubble sprite: <code>sprites/bubble.vmt</code>}}
{{Note|Used bubble sprite: <code>sprites/bubble.vmt</code>}}
{{note|In order to make it work in {{Game link|Portal 2}}, the bubble sprite material (<code>sprites/bubble.vmt</code>) and texture (<code>sprites/bubble.vtf</code>) must be located in the /material/sprites folder. Consider to pack these files in the map for distribution.}}
__NOTOC__
__NOTOC__
==Keyvalues==
==Keyvalues==

Revision as of 21:36, 16 June 2025

English (en)中文 (zh)Translate (Translate)
C++ Class hierarchy
CBubbling
CBaseEntity
C++ effects.cpp
env_bubbles in game, with density set to 6 and frequency set to 2.

env_bubbles is a brush entity available in all Source Source games. 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.

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.
Note.pngNote:Used bubble sprite: sprites/bubble.vmt
Note.pngNote:In order to make it work in Portal 2 Portal 2 , the bubble sprite material (sprites/bubble.vmt) and texture (sprites/bubble.vtf) must be located in the /material/sprites folder. Consider to pack these files in the map for distribution.

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