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

Func dustcloud: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
(24 intermediate revisions by 18 users not shown)
Line 1: Line 1:
{{base brush|func_dustcloud}} It spawns a translucent dust cloud within its volume.
{{LanguageBar}}
* Make sure you use the [[tool textures#trigger|trigger]] texture with this entity.
[[File:func_dustcloud.jpg|thumb|right|250px|Func_dustcloud]]
{{note|The [[tool textures#nodraw|nodraw]] texture can also be used, but not recommended.}}
{{CD|CFunc_DustCloud|file1=1}}
{{this is a|brush entity|name=func_dustcloud}} It spawns randomly-sized dust particles within its volume.{{sfx_brush}}__NOTOC__


{{sfx_brush}}
{{bug|In {{Portal2|2}}, particles may disappear in opened portals at some angles. More serious glitches may occur in other specific scenarios.|hidetested=1}}


== Keyvalues ==
{{tip|This entity is affected by {{ent|env_wind}}.}}
{{KV|Alpha|integer}}
 
Transparency of the particles. 0 means that they are invisible, 255 it's totally visible.
{{note|The default [[material]] is <code>particle/sparkles.vmt</code>. It is normally extremely low-res, so consider overriding this .[[vmt]] for improved appearance.}}
{{KV|Minimum Particle Size|string}}
 
Particles are spawned in random sizes, this value determinates the minimum size they can be.
{{note|This entity is functionally identical to <code>[[func_dustmotes]]</code> except that the size of sprites created by ''this'' entity will scale realistically depending on the viewing distance, and ones created by <code>func_dustmotes</code> will always take up the same amount of screen space regardless of viewing distance.}}
{{KV|Maximum Particle Size|string}}
 
This value determinates the maximum size the particles can be.
==Keyvalues==
{{KV Targetname}}
{{KV Targetname}}
{{KV|Alpha|intn=Alpha|byte|Transparency of the particles. 0 means that they are invisible, 255 means opaque.}}
{{KV|Minimum Particle Size|intn=SizeMin|string|This value determines the minimum size the particles can be.}}
{{KV|Maximum Particle Size|intn=SizeMax|string|This value determines the maximum size the particles can be.}}
{{KV BModelParticleSpawner}}
{{KV BModelParticleSpawner}}


== Inputs ==
==Inputs==
{{I Targetname}}
{{I BModelParticleSpawner}}
{{I BModelParticleSpawner}}


== Outputs ==
==See also==
{{O Targetname}}
 
== See also ==
* [[func_dustmotes]]
* [[Smoke|Dust, Fog & Smoke]]
* [[Smoke|Dust, Fog & Smoke]]
* [[WiseWind|Wind and Dust]] - example VMF w/ explanation.
* [[WiseWind|Wind and Dust]] - example VMF w/ explanation

Latest revision as of 11:57, 12 November 2024

English (en)Translate (Translate)
Func_dustcloud
C++ Class hierarchy
CFunc_DustCloud
CFunc_Dust
CBaseEntity
C++ func_dust.cpp

func_dustcloud is a brush entity available in all Source Source games. It spawns randomly-sized dust particles within its volume.

Icon-Bug.pngBug:In Portal 2 Portal 2, particles may disappear in opened portals at some angles. More serious glitches may occur in other specific scenarios.
Tip.pngTip:This entity is affected by env_wind.
Note.pngNote:The default material is particle/sparkles.vmt. It is normally extremely low-res, so consider overriding this .vmt for improved appearance.
Note.pngNote:This entity is functionally identical to func_dustmotes except that the size of sprites created by this entity will scale realistically depending on the viewing distance, and ones created by func_dustmotes will always take up the same amount of screen space regardless of viewing distance.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Alpha (Alpha) <byte>
Transparency of the particles. 0 means that they are invisible, 255 means opaque.
Minimum Particle Size (SizeMin) <string>
This value determines the minimum size the particles can be.
Maximum Particle Size (SizeMax) <string>
This value determines the maximum size the particles can be.
BModelParticleSpawner:
Start Disabled (StartDisabled) <boolean>
Suspend spawning particles after spawning ? Default value is 0
Particle Color (R G B) (Color) <color255>
Color of the particles.
Particle Per Second (SpawnRate) <integer>
Number of particles to spawn, per second.
Note.pngNote:Fourth number effects transparency after reload.
Maximum Particle Speed (SpeedMax) <string>
Maximum speed that the particles can move after spawning.
Minimum Particle Lifetime (LifetimeMin) <string>
Minimum number of seconds until each particle dies. Particles live for a random duration between this and 'Maximum Particle Lifetime'.
Maximum Particle Lifetime (LifetimeMax) <string>
Maximum number of seconds until each particle dies. Particles live for a random duration between 'Minimum Particle Lifetime' and this.
Maximum Visible Distance (DistMax) <integer>
Maximum distance at which particles are visible. They fade to translucent at this distance.
Frozen (Frozen) <boolean>
Spawn the number of particles in SpawnRate immediately, and then go inactive ? Default value is 0


Inputs

BModelParticleSpawner:
TurnOn
Turn on.
TurnOff
Turn off.

See also