Env embers: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(updates)
(→‎Keyvalues: brush entity!)
Line 18: Line 18:
{{KV|Particle Speed (speed)|int|Number of units moved by particles each second.}}
{{KV|Particle Speed (speed)|int|Number of units moved by particles each second.}}
{{KV|Ember Color (rendercolor)|color255|Color of the sprites.}}
{{KV|Ember Color (rendercolor)|color255|Color of the sprites.}}
{{KV BaseEntity|css=1}}
{{KV BaseEntity|brush=1}}


==Inputs==
==Inputs==

Revision as of 20:45, 1 October 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