env_embers
Jump to navigation
Jump to search
Code classes:
CEmbers
CBaseEntity
(all ents)
env_embers
is a brush entity present in all Source games. It spawns fire embers within its volume. For some reason its state can only be changed with the Use input.
Note: env_embers
will only allow up to 2048 sprites to appear at once. If it goes over this limit, it will temporarily stop spawning them. The approximate number of sprites at any given time can be found by multiplying Density by Particle Lifetime. (The final number depends on a few other variables, including the size of the brush.)
Flags[edit | edit source]
- 1: Start On
- 2: Toggle - If left off, only one Use input will ever be accepted.
Keyvalues[edit | edit source]
Ember type(particletype)
<choices>
- Not present in code anymore.
- Density
(density)
<int>
- Number of particles spawned each second.[Confirmed]
- Particle Lifetime
(lifetime)
<integer>
- Number of seconds each particle lasts for. A certain amount of randomness is added proportional to the time specified here.
- Particle Speed
(speed)
<float>
- Number of units moved by particles each second.
- Ember Color
(rendercolor)
<color255>
- Color of the sprites.
Inputs[edit | edit source]
- Use
- Turns the entity on or off.
- Color (Not in FGD)
<color255>
- Sets Ember Color. Already-spawned embers will not change color.