Env embers: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(removed the {{PAGENAME}} only because that was an exceedingly dumb use of it)
(updates)
Line 1: Line 1:
[[Image:env_embers.jpg|thumb|250px|An example of embers in-game. The embers are difficult to see in the thumbnail.]]
{{lang|Env embers}}
[[File:env_embers.jpg|thumb|250px|An example of embers in-game. The embers are difficult to see in the thumbnail.]]
{{base brush|env_embers}} It spawns fire embers within its volume. For some reason its state can only be changed with the {{ent|Use}} input.


{{base_brush|env_embers}} It spawns fire embers within its volume. For some reason its state is changed in-game by [[+use|+using]] it, rather than with an input.
{{code class|CEmbers|effects.cpp}}
 
==Flags==
*1: Start On
*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.
; Ember type <code><choices></code>
:*0: Normal
: The manner in which embers should appear and disappear.
:*1: Smooth Fade
:* Normal
:*2: Pulled}}
:* Smooth Fade {{clarify}}
{{KV|Density (density)|int|Number of particles spawned each second.}}
:* Pulled {{clarify}}
{{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.}}
; Density <code><[[int]]></code>
{{KV|Particle Speed (speed)|int|Number of units moved by particles each second.}}
: Number of particles spawned each second.
{{KV|Ember Color (rendercolor)|color255|Color of the sprites.}}
; Particle Lifetime <code><int></code>
{{KV BaseEntity|css=1}}
: Number of seconds each particle lasts for. {{todo|Is any noise applied to this?}}
; Particle Speed <code><int></code>
: Number of units moved by particles each second. {{todo|As above.}}
; Ember Color {{color}}
: Usually orange-ish!
{{KV Angles}}
{{KV Parentname}}
{{KV Targetname}}
 
==Flags==
{{note|The state of env_embers is changed by <code>[[+use]]</code>ing it. (E key by default in most games)}}
* Start On
* Toggle


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


==Outputs==
==Outputs==
 
{{O BaseEntity|l4d=1}}
{{O Targetname}}

Revision as of 03:42, 24 September 2018

English (en)Translate (Translate)
An example of embers in-game. The embers are difficult to see in the thumbnail.

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

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

Keyvalues

Ember type (particletype) ([todo internal name (i)]) <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) ([todo internal name (i)]) <integer>
Number of particles spawned each second.
Particle Lifetime (lifetime) ([todo internal name (i)]) <integer>
Number of seconds each particle lasts for. A certain amount of randomness is added proportional to the time specified here.
Particle Speed (speed) ([todo internal name (i)]) <integer>
Number of units moved by particles each second.
Ember Color (rendercolor) ([todo internal name (i)]) <color255>
Color of the sprites.


Inputs

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


Outputs