Func dustcloud: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (rewritten a bit, nodraw also works for func_dustcloud)
(Cleanup)
Line 1: Line 1:
{{wrongtitle|title=func_dustcloud}}
{{base brush|func_dustcloud}}
{{base_brush}}


== Entity description ==
== Entity description ==
Line 9: Line 8:
{{sfx_brush}}
{{sfx_brush}}


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


== Keyvalues ==
== Keyvalues ==
* {{KV Targetname}}
{{KV|Alpha|integer}}
* {{KV EnableDisable}}
{{KV|Minimum Particle Size|string}}
* '''Color'''
{{KV|Maximum Particle Size|string}}
: {{color}} Particle Color
{{KV Targetname}}
* '''SpawnRate'''
{{KV BModelParticleSpawner}}
: <integer> Number of particles to spawn, per second.
* '''SpeedMax'''
: <integer> Maximum speed that the particles can move after spawning.
* '''LifetimeMin'''
: <integer> Minimum number of seconds until each particle dies. Particles live for a random duration between this and 'Maximum Particle Lifetime'.
* '''LifetimeMax'''
: <integer> Maximum number of seconds until each particle dies. Particles live for a random duration between 'Minimum Particle Lifetime' and this.
* '''DistMax'''
: <integer> Maximum distance at which particles are visible. They fade to translucent at this distance.
* '''Frozen'''
: {{boolean}} If set, this entity spawns the number of particles in SpawnRate immediately, and then goes inactive.
* '''SizeMin'''
: <integer> Minimum Particle Size
* '''SizeMax'''
: <integer> Maximum Particle Size
* '''Alpha'''
: <[[byte]]> Opacity of the dustcloud; 0-255.


== Inputs ==
== Inputs ==
* {{I Targetname}}
{{I Targetname}}
* '''TurnOn'''
{{I BModelParticleSpawner}}
: Turn on.
* '''TurnOff'''
: Turn off.


== Outputs ==
== Outputs ==
* {{O Targetname}}
{{O Targetname}}

Revision as of 10:37, 7 June 2011

Template:Base brush

Entity description

A brush entity that spawns a translucent dust cloud within its volume.

  • Make sure you use the trigger texture with this entity.
Note.pngNote:The nodraw texture can also be used, but not recommended.

See also

Keyvalues

Alpha ([todo internal name (i)]) <integer>
Minimum Particle Size ([todo internal name (i)]) <string>
Maximum Particle Size ([todo internal name (i)]) <string>
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

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.

Outputs