Env explosion: Difference between revisions
Jump to navigation
Jump to search
TeamSpen210 (talk | contribs) (Describe damage force/ignored class) |
mNo edit summary |
||
Line 25: | Line 25: | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV|Magnitude | {{KV|Magnitude|intn=iMagnitude|integer|The amount of damage done by the explosion.}} | ||
{{KV|Radius Override | {{KV|Radius Override|intn=iRadiusOverride|integer|If specified, the radius in which the explosion damages entities. If unspecified, the radius will be based on the magnitude.}} | ||
{{KV|Fireball Sprite | {{KV|Fireball Sprite|intn=fireballsprite|sprite|Sprite of the fireball.}} | ||
{{KV|Render Mode | {{KV|Render Mode|intn=rendermode|choices|[[Render mode]] of the fireball. | ||
:*0: Normal | :*0: Normal | ||
:*4: Solid | :*4: Solid | ||
:*5: Additive}} | :*5: Additive}} | ||
{{KV|Ignored Entity | {{KV|Ignored Entity|intn=ignoredEntity|target_destination|Do not harm or affect the named entity.}} | ||
{{KV|Damage Force | {{KV|Damage Force|intn=DamageForce|float|nofgd=1|If set, use this value as a magnitude for physics force.}} | ||
{{KV|Ignored Class | {{KV|Ignored Class|intn=ignoredClass|integer|Do not harm or affect this [[List_of_default_AI_relationships|class]] of NPC. }} | ||
{{KV BaseEntity|css=1}} | {{KV BaseEntity|css=1}} | ||
Line 42: | Line 42: | ||
==Outputs== | ==Outputs== | ||
{{O BaseEntity | {{O BaseEntity}} | ||
==See Also== | ==See Also== | ||
*{{ent|env_physexplosion}} | *{{ent|env_physexplosion}} |
Revision as of 10:48, 22 September 2022
Template:Base point It creates an explosion at its origin.
Flags
- 1: No Damage
- 2: Repeatable - 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). - 4: No Fireball
8: No Smoke- No effect.- 16: No Decal - Black scorch decal left at the explosion center.
32: No Sparks- No effect.- 64: No Sound
- 128: Random Orientation
- 256: No Fireball Smoke - Fireball smoke only spawns if the fireball itself can too.
- 512: No Particles
1024: No DLights- No effect.- 2048: Don't clamp Min - Allow much smaller fire sprites.
- 4096: Don't clamp Max - Allow much larger fire sprites.
- 8192: Damage above surface only - Don't do damage to the player if they are underwater.
- 16384: Generic damage - Do
DMG_GENERIC
damage, as opposed toDMG_BLAST
.
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.
Inputs
- Explode
- Triggers the explosion.