Env embers: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Changed thumbnail image.)
(-concise page)
Line 8: Line 8:


==Flags==
==Flags==
*1: Start On
{{fl|1|Start On}}
*2: Toggle - If left off, only one <code>Use</code> input will ever be accepted.
{{fl|2|Toggle|If left off, only one <code>Use</code> input will ever be accepted.}}


==Keyvalues==
==Keyvalues==
{{KV|Ember type (particletype)|choices|deprecated=1|Not present in code. The manner in which embers should appear and disappear.
{{KV|Ember type |intn=particletype|choices|deprecated=1|Not present in code. The manner in which embers should appear and disappear.
:*0: Normal
:*0: Normal
:*1: Smooth Fade
:*1: Smooth Fade
:*2: Pulled}}
:*2: Pulled}}
{{KV|Density (density)|int|Number of particles spawned each second.}}
{{KV|Density |intn=density|int|Number of particles spawned each second.}}
{{KV|Particle Lifetime (lifetime)|int|Number of seconds each particle lasts for. A certain amount of randomness is added proportional to the time specified here.}}
{{KV|Particle Lifetime |intn=lifetime|int|Number of seconds each particle lasts for. A certain amount of randomness is added proportional to the time specified here.}}
{{KV|Particle Speed (speed)|int|Number of units moved by particles each second.}}
{{KV|Particle Speed |intn=speed|int|Number of units moved by particles each second.}}
{{KV|Ember Color (rendercolor)|color255|Color of the sprites.}}
{{KV|Ember Color |intn=rendercolor|color255|Color of the sprites.}}
{{KV BaseEntity|brush=1}}
{{KV Targetname}}


==Inputs==
==Inputs==
{{IO|Color|nofgd=1|param=color255|Changes the color that new sprites will spawn with.}}
{{IO|Color|nofgd=1|param=color255|Changes the color that new sprites will spawn with.}}
{{I BaseEntity|prel4d=1}}
==Outputs==
{{O BaseEntity|l4d=1}}

Revision as of 13:35, 30 October 2022

English (en)Translate (Translate)
env_embers demonstration.

Template:Base brush It spawns fire embers within its volume. For some reason its state can only be changed with the Use input.

C++ In code, it is represented by theCEmbersclass, defined in theeffects.cppfile.

Flags

Start On : [1]
Toggle : [2]
If left off, only one Use input will ever be accepted.

Keyvalues

Ember type (particletype) <choices> Obsolete
Deprecated.
Not present in code. The manner in which embers should appear and disappear.
  • 0: Normal
  • 1: Smooth Fade
  • 2: Pulled
Density (density) <integer>
Number of particles spawned each second.
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) <integer>
Number of units moved by particles each second.
Ember Color (rendercolor) <color255>
Color of the sprites.
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

Inputs

Color <color255RedirectInput/color32> !FGD
Changes the color that new sprites will spawn with.