Env explosion: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(-used fl template, moved flags down, concise page, for some reason couldn't save the page with shortened youtube links ?? and not sure how to escape the '=' character in fl template so removed the links. Feel free to add them) |
||
Line 6: | Line 6: | ||
{{clearleft}} | {{clearleft}} | ||
==Keyvalues== | ==Keyvalues== | ||
Line 35: | Line 18: | ||
{{KV|Damage Force|intn=DamageForce|float|nofgd=1|If set, use this value as a magnitude for physics force.}} | {{KV|Damage Force|intn=DamageForce|float|nofgd=1|If set, use this value as a magnitude for physics force.}} | ||
{{KV|Ignored Class|intn=ignoredClass|integer|Do not harm or affect this [[List_of_default_AI_relationships|class]] of NPC. }} | {{KV|Ignored Class|intn=ignoredClass|integer|Do not harm or affect this [[List_of_default_AI_relationships|class]] of NPC. }} | ||
{{KV | {{KV Targetname}} | ||
==Inputs== | ==Inputs== | ||
{{IO|Explode|Triggers the explosion.}} | {{IO|Explode|Triggers the explosion.}} | ||
== | ==Flags== | ||
{{ | {{fl|1|No Damage|}} | ||
{{fl|2|Repeatable |Once the explosion has happened, the entity will not remove itself. Otherwise, it will be removed 0.3 seconds after the <code>Explode</code> input is sent (during that time it could possibly re-fire).}} | |||
{{fl|4|No Fireball}} | |||
<s>{{fl|8|No Smoke|No effect.}}</s> | |||
{{fl|16|No Decal |Black scorch decal left at the explosion center.}} | |||
<s>{{fl|32|No Sparks|No effect.}}</s> | |||
{{fl|64|No Sound|}} | |||
{{fl|128|Random Orientation|}} | |||
{{fl|256|No Fireball Smoke|Fireball smoke only spawns if the fireball itself can too.}} | |||
{{fl|512|No Particles|}} | |||
<s>{{fl|1024|No DLights|No effect.}}</s> | |||
{{fl|2048|Don't clamp Min |Allow much smaller fire sprites.}} | |||
{{fl|4096|Don't clamp Max |Allow much larger fire sprites.}} | |||
{{fl|8192|Damage above surface only |Don't do damage to the player if they are underwater.}} | |||
{{fl|16384|Generic damage |Do <code>[[Damage_types#Damage_type_table|DMG_GENERIC]]</code> damage, as opposed to <code>DMG_BLAST</code>.}} | |||
==See Also== | ==See Also== | ||
*{{ent|env_physexplosion}} | *{{ent|env_physexplosion}} |
Revision as of 13:59, 30 October 2022
Template:Base point 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
.