asw_env_spark

From Source Entities
Jump to navigation Jump to search

Code classes:

Env spark.png

asw_env_spark is a point entity present in Asw.pngAlien Swarm. It's an entity like env_spark, but the effect better suits Alien Swarm's visual style. The entity makes spark effects.

Flags[edit | edit source]

  • 64: Start ON
  • 128: Silent
  • 256: Electrical - Emits some extra sparkles

Keyvalues[edit | edit source]

Min Delay (MinDelay) <float>
Shortest possible time between sparks.
Bug: This keyvalue is linked up to the same C++ variable as Max Delay (m_flMaxDelay), meaning that changing this number will do nothing except possibly interfere with Max Delay. There is no fix except for correcting it directly in code. The number will always be 1.0.
Max Delay (MaxDelay) <float>
Longest possible time between sparks.
Percent Collide (PercentCollide) <float>
Percent of sparks that will be solid to the world. Non-solid sparks will simply travel through it.
Magnitude (Magnitude) <float>
Affects the size of the glow sprite, how many sparks are created and how long they exist.
  • 25: Tiny
  • 50: Small
  • 100: Medium
  • 200: Large
  • 400: Huge
Render Color (R G B) (rendercolor) <color255>
Color channel filter to add to this entity's texture(s). Bug: P2.pngCsgo-small.pngBroken for brush entities.

Inputs[edit | edit source]

StartSpark
Starts the sparking effect.
StopSpark
Stops the sparking effect.
ToggleSpark
If on, turn off. If off, turn on.
SparkOnce
Sparks once.
SetMinDelay <float>
Sets Min Delay.
Bug: This input is linked up to the same C++ function as SetMaxDelay (InputSetMaxDelay), meaning that using this input will actually set Max Delay. There is no fix except for correcting this directly in code.
SetMaxDelay <float>
Sets Max Delay.
Color (Not in FGD) <color255>
Sets the Render Color (rendercolor).

Outputs[edit | edit source]

OnSpark
Never fires.