Env embers: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Keyvalues: brush entity!)
(Added to SFX Brush category using template)
Line 2: Line 2:
[[File:env_embers.jpg|thumb|250px|An example of embers in-game. The embers are difficult to see in the thumbnail.]]
[[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 can only be changed with the {{ent|Use}} input.
{{sfx_brush}}


{{code class|CEmbers|effects.cpp}}
{{code class|CEmbers|effects.cpp}}

Revision as of 16:51, 2 May 2020

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