Env explosion: Difference between revisions
Jump to navigation
Jump to search

Thunder4ik (talk | contribs) m (→top: Unicodifying, replaced: {{language subpage → {{langsp) |
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) |
||
Line 1: | Line 1: | ||
<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang}}[[File:env_explosion.jpg|right|thumb|320px|The explosion in-game.]] | <!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang}}[[File:env_explosion.jpg|right|thumb|320px|The explosion in-game.]] | ||
{{this is a| | {{this is a|point entity|sprite=1|name=env_explosion}} It creates an explosion at its origin. | ||
{{code class|CEnvExplosion|explode.cpp}} | {{code class|CEnvExplosion|explode.cpp}} |
Revision as of 16:51, 17 May 2024

env_explosion
is a point entity available in all Source games. It creates an explosion at its origin.
Keyvalues
- Magnitude (iMagnitude) <integer>
- The amount of damage done by the explosion.
- Radius Override (iRadiusOverride) <integer>
- If specified, the radius in which the explosion damages entities. If unspecified, the radius will be based on the magnitude.
- Fireball Sprite (fireballsprite) <sprite>
- Sprite of the fireball.
- Render Mode (rendermode) <choices>
- Render mode of the fireball.
- 0: Normal
- 4: Solid
- 5: Additive
- Ignored Entity (ignoredEntity) <targetname>
- Do not harm or affect the named entity.
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Inputs
- Explode
- Triggers the explosion.
Flags
- No Damage : [1]
- Repeatable : [2]
- Once the explosion has happened, the entity will not remove itself. Otherwise, it will be removed 0.3 seconds after the
Explode
input is sent (during that time it could possibly re-fire).
- No Fireball : [4]
- No Smoke : [8]
No effect.
- No Decal : [16]
- Black scorch decal left at the explosion center.
- No Sparks : [32]
No effect.
- No Sound : [64]
- Random Orientation : [128]
- No Fireball Smoke : [256]
- Fireball smoke only spawns if the fireball itself can too.
- No Particles : [512]
- No DLights : [1024]
No effect.
- Don't clamp Min : [2048]
- Allow much smaller fire sprites.
- Don't clamp Max : [4096]
- Allow much larger fire sprites.
- Damage above surface only : [8192]
- Don't do damage to the player if they are underwater.
- Generic damage : [16384]
- Do
DMG_GENERIC
damage, as opposed toDMG_BLAST
.