env_explosion

An env_explosion makes an explosion each time you trigger it, with a fireball, smoke, sparks, a scorch mark and
damage around it.
Attributes
targetnameTriggering the entity sets off the explosion. See Common keys.
Sets where it explodes. It takes a locus position, so you can use a point such as 0 0 64, the name of an entity, the name of a calc_position, !activator for the entity that started the chain of triggers, or *player for that entity only when it is a player.
If you leave this key empty, it explodes at the env_explosion itself.
iMagnitudeSets the damage at the center of the blast and the size of the fireball. The damage reaches 2.5 times this value in units, unless you set Damage radius.
If you leave this key empty, it is 0 and you get a small fireball that does no damage.
100Sets how far the damage reaches, in units, and 0 makes it 2.5 times the Magnitude.
0Sets the sprite drawn as the fireball.
If you leave this key empty, it is the normal fireball.
Sets the sprite drawn as the smoke.
If you leave this key empty, it is the normal smoke.
Flags
1No DamageThe explosion is only an effect, so it hurts nothing and breaks nothing
2RepeatableYou can set it off again and again. Without this flag, the entity is removed after it explodes once
4No FireballNo fireball is drawn, but the explosion still makes its sound unless you set No Sound
8No SmokeNo smoke rises after the blast
16No DecalThe explosion leaves no scorch mark
32No SparksNo sparks fly out of the blast
Notes
- If a floor or a wall lies up to 32 units below the Position, the explosion moves away from it a little, and only then does it leave a scorch mark on it
- If the entity can't find the position that Position names, for example because it names an entity that doesn't exist, nothing explodes for that trigger
- Only players near enough to hear the spot see the fireball and the smoke
- If
trigger_changevalueortrigger_copyvaluechanges Magnitude or the sprite scale, the next explosion has the new fireball and smoke size as well as the new damage. See Changing keys
See also
nuclear_explosion- a huge explosion with a mushroom cloud and a shock waveenv_shooter- shoots models or sprites, such as gibsenv_shake- shakes the view of players- env_explosion on TWHL - the Half-Life entity
Changes since 1.38
- You can use the new keys Position, Damage radius, Custom Fireball Sprite, Custom Smoke Sprite and Custom sprite scale
- You can use the new flags No Sound and Activator is attacker

