env_spark

An env_spark makes sparks with a crackling sound, either at random times or when you trigger it.
Attributes
The entity also has these common keys:
- Position: Pitch Yaw Roll
targetnameTriggering the entity switches the sparks on or off with Toggle, or makes one spark with Cyclic. Without either flag, triggering it does nothing. See Common keys.
Names the parent, an entity that this one moves and turns with. The entity keeps the place and the angles it has on the parent in the editor. If several entities have the name, the first one counts. A name ending in .1 to .4 puts a sprite or a model that isn't solid on that attachment point of the model of the parent. A solid brush on a parent that turns needs its own origin brush. Moving objects explains it all.
If you leave this key empty, the entity doesn't move with anything.
parentflagsKeeps some of the entity's own position or angles instead of following the parent. Add up the values of the axes to keep: 2 for X, 4 for Y, 8 for Z, 16 for pitch, 32 for yaw and 64 for roll. So 112 keeps the entity level. 0 follows the parent on every axis.
0MaxDelaySets the longest wait between two sparks, in seconds, and each wait is a random time up to it. With Cyclic, it sets how long after a spark the next trigger has to wait.
If you leave this key empty or set 0, the longest wait is 1.5 seconds, and with Cyclic there is no wait.
0Sets whether the sparks make a sound.
- No (0) - The sparks crackle
- Yes (1) - The sparks make no sound
No (0)Multiplies the volume of the spark sound, so 2 is twice as loud.
If you leave this key empty, the sound has its normal volume.
Sets how far players hear the spark sound.
- Small (-2) - Up to about 500 units away
- Medium (-1) - Up to about 800 units away
- Default (0) - Up to about 1250 units away
- Huge (1) - Up to about 2000 units away
- Enormous (2) - Up to about 4000 units away
- Play Everywhere (3) - Anywhere on the map, equally loud everywhere
Default (0)Flags
Each trigger makes one spark. A trigger during the wait of Max Delay makes one more spark when the wait ends
32ToggleTriggering the entity switches the sparks on and off. Without this flag, the entity makes sparks from the start of the map, and triggering it does nothing
64Start ONWith Toggle, the sparks are on when the map starts
See also
env_beam- a beam that can make sparks at its ends- env_spark on TWHL - the Half-Life entity
Changes since 1.38
- You can use the new keys Spark Silent, Spark Volume Factor and Sound radius and the new flag Cyclic

