Func dustmotes: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Keyvalues: added information for TODOs)
Line 15: Line 15:


== Keyvalues ==
== Keyvalues ==
{{KV|Minimum Particle Size|string}}
{{KV|Minimum Particle Size|string|Minimum size a dust mote should be. The units aren't exactly clear, but 100 is the highest you should probably be going.}}
{{KV|Maximum Particle Size|string}}
{{KV|Maximum Particle Size|string|Maximum size a dust mote should be.}}
{{KV|Alpha|integer}}
{{KV|Alpha|integer|Transparency of the particles. 255 is fully opaque, 0 is invisible (won't render at all).}}
{{KV Targetname}}
{{KV Targetname}}
{{KV BModelParticleSpawner}}
{{KV BModelParticleSpawner}}

Revision as of 11:33, 29 May 2018

A func_dustmotes can be seen in CS_Militia

Template:Base brush

Entity description

It spawns sparkling dust motes within its volume.

Note.pngNote:Make sure you use the trigger texture with this entity. The nodraw texture can also be used, but not recommended.
Tip.pngTip:This entity is affected by env_wind.
Note.pngNote:The default material is particle/sparkles.vmt

Keyvalues

Minimum Particle Size ([todo internal name (i)]) <string>
Minimum size a dust mote should be. The units aren't exactly clear, but 100 is the highest you should probably be going.
Maximum Particle Size ([todo internal name (i)]) <string>
Maximum size a dust mote should be.
Alpha ([todo internal name (i)]) <integer>
Transparency of the particles. 255 is fully opaque, 0 is invisible (won't render at all).
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

See also