Func dustmotes: Difference between revisions
Jump to navigation
Jump to search
Tip:This entity is affected by env_wind.
Note:The default material is
Note:This entity is functionally identical to
Note:Fourth number effects transparency after reload.
(→Keyvalues: added information for TODOs) |
(added note about scaling) |
||
Line 1: | Line 1: | ||
[[File:Func_dustmotes_example_css.jpg|thumb|right|260px|A func_dustmotes | [[File:Func_dustmotes_example_css.jpg|thumb|right|260px|A <code>func_dustmotes</code> in <code>cs_militia</code>{{css}}.]] | ||
{{base brush|func_dustmotes}} It spawns sparkling dust motes within its volume. Use the [[tool textures#trigger|trigger]] texture with this entity. The [[tool textures#nodraw|nodraw]] texture can also be used, but not recommended.{{sfx_brush}} | |||
{{ | {{tip|This entity is affected by {{ent|env_wind}}.}} | ||
{{note|The default [[material]] is <code>particle/sparkles.vmt</code>. It is normally extremely low-res, so consider overriding this .[[vmt]] for improved appearance.}} | |||
It | |||
{{ | {{note|This entity is functionally identical to <code>func_dustcloud</code> except that the size of sprites created by <code>func_dustcloud</code> will scale realistically depending on the viewing distance, and ones created by ''this'' entity will always take up the same amount of screen space regardless of viewing distance.}} | ||
==Keyvalues== | |||
== Keyvalues == | |||
{{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|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|Maximum size a dust mote should be.}} | {{KV|Maximum Particle Size|string|Maximum size a dust mote should be.}} | ||
Line 21: | Line 15: | ||
{{KV BModelParticleSpawner}} | {{KV BModelParticleSpawner}} | ||
== Inputs == | ==Inputs== | ||
{{I Targetname}} | {{I Targetname}} | ||
{{I BModelParticleSpawner}} | {{I BModelParticleSpawner}} | ||
== Outputs == | ==Outputs== | ||
{{O Targetname}} | {{O Targetname}} | ||
Revision as of 03:14, 27 June 2018
Template:Base brush It spawns sparkling dust motes within its volume. Use the trigger texture with this entity. The nodraw texture can also be used, but not recommended.


particle/sparkles.vmt
. It is normally extremely low-res, so consider overriding this .vmt for improved appearance.
func_dustcloud
except that the size of sprites created by func_dustcloud
will scale realistically depending on the viewing distance, and ones created by this entity will always take up the same amount of screen space regardless of viewing distance.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.
- 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
ortarget
).
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.

- 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.