Skip to main content

env_explosion

env_explosion icon
Point entity

An env_explosion makes an explosion each time you trigger it, with a fireball, smoke, sparks, a scorch mark and damage around it.

Attributes​

KeyDescriptionDefault
Nametargetname

Triggering the entity sets off the explosion. See Common keys.

PositionFeaturefulSpirit of Half-Lifetarget

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.

MagnitudeiMagnitude

Sets 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.

Default 100
Damage radiusFeaturefuliradius

Sets how far the damage reaches, in units, and 0 makes it 2.5 times the Magnitude.

Default 0
Custom Fireball SpriteFeaturefulmodel

Sets the sprite drawn as the fireball.

If you leave this key empty, it is the normal fireball.

Custom Smoke SpriteFeaturefulsmokesprite

Sets the sprite drawn as the smoke.

If you leave this key empty, it is the normal smoke.

Custom sprite scaleFeaturefulscale

Sets the size of the fireball and the smoke, where 1 is the size of the sprite.

If you leave this key empty or set 0, the Magnitude sets the size.

Flags​

1No Damage

The explosion is only an effect, so it hurts nothing and breaks nothing

2Repeatable

You can set it off again and again. Without this flag, the entity is removed after it explodes once

4No Fireball

No fireball is drawn, but the explosion still makes its sound unless you set No Sound

8No Smoke

No smoke rises after the blast

16No Decal

The explosion leaves no scorch mark

32No Sparks

No sparks fly out of the blast

64No SoundFeatureful

The explosion makes no sound

128Activator is attackerFeatureful

The entity that set off the explosion counts as the attacker, so a player who set it off gets the kills

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_changevalue or trigger_copyvalue changes 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​

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