env_physexplosion

From Source Entities
Jump to navigation Jump to search

Code classes:

Env physexplosion.png

env_physexplosion is a point entity present in all Source games. It applies a force to objects within its radius, anything from a gentle nudge to a big explosion, depending on its magnitude. The explosion itself is not visible; for visible explosions, use env_explosion.

Tip: Use this at a low force on hanging objects like lights to make them sway.

Flags[edit | edit source]

  • 1: No Damage (Only force. Players will never be damaged even when this flag is off.)
  • 2: Push players Bug: Csgo-small.pngDoes not work.
  • 4: Push radially - not as a sphere (Radially meaning as a cylinder. No upward or downward force will be generated.)
  • 8: Test LOS before pushing (Otherwise, the force will travel through solid things.)
  • 16: Disorient player if pushed - Jostles view significantly.

Keyvalues[edit | edit source]

Magnitude (magnitude) <string>
Amount of physics force applied by the explosion. Odd behavior may occur if set below 0 or above 100.
Clamp Radius (0 = auto) (radius) <string>
If specified, the radius in which the explosion damages entities. If unspecified, the radius will be based on the magnitude.
Limit to Entity (targetentityname) <target_destination>
If specified, the explosion will only affect the matching entity.
Inner radius (inner_radius) <float>
If not zero, the LOS is calculated from a point intersecting this sphere. (See flag 8.)

Inputs[edit | edit source]

Explode
Triggers the explosion.
ExplodeAndRemove  (available in all games since P2.png)
Triggers the explosion, then removes the entity.

Outputs[edit | edit source]

OnPushedPlayer
Fires when a player is pushed by the explosion.

See Also[edit | edit source]