This article's documentation is for anything that uses the Source engine. Click here for more information.

Env explosion: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
(41 intermediate revisions by 23 users not shown)
Line 1: Line 1:
[http://ebooks.catchers.cn/ ebooks] [http://sna309.orbitar.cn/ sna309] [http://olderwoman.peyote.cn/ older woman] [http://angelinajolie.drover.cn/ angelina jolie] [http://chaiseloungesofa.peyote.cn/ chaise lounge sofa] [http://metabolismo.outstay.cn/ metabolismo] [http://jobsusa.outstay.cn/ jobs usa] [http://guitar.catchers.cn/ guitar] [http://evoker.cn/index4_666.html homepage] [http://texashistory.outstay.cn/ texas history] [http://redkencolorchart.peyote.cn/ redken color chart] [http://phentermineonline.peyote.cn/ phentermine online pharmacy] [http://sexocaliente.clootie.cn/ sexo caliente] [http://webcamgirls.vulkanik.cn/ webcam girls] [http://pfizerviagra.peyote.cn/ pfizer viagra] [http://allposter.clootie.cn/ all poster] [http://goaapartment.catchers.cn/ goa apartment] [http://drover.cn/index0_250.html page] [http://dreamboximage.evoker.cn/ dreambox image] [http://bonethugsnharmony.drover.cn/ bone thugs n harmony] [http://drover.cn/index4_666.html link] [http://onlinesportsbook.peyote.cn/ online sports book] [http://bodybuilding.evoker.cn/ bodybuilding] [http://peyote.cn/index7_250.html map] [http://emptio.cn/index6_666.html url] [http://publicschools.evoker.cn/ public schools] [http://powerballnumbers.vulkanik.cn/ powerball numbers] [http://chloe.drover.cn/ chloe] [http://partypokerbonus.emptio.cn/ partypoker bonus] [http://100freeringtones.emptio.cn/ 100 free ringtones] [http://lasagnareceipe.evoker.cn/ lasagna receipe] [http://doll.vulkanik.cn/ doll] [http://myspacelayouts.emptio.cn/ myspace layouts fox racing] [http://tenniselbow.vulkanik.cn/ tennis elbow] [http://xaviernaidoo.vulkanik.cn/ xavier naidoo] [http://adultchatcyber.emptio.cn/ adult chat cyber room sex] [http://freesexcam.emptio.cn/ free sex cam] [http://bakersrack.vulkanik.cn/ bakers rack] [http://kitcars.emptio.cn/ kit cars] [http://concerta.peyote.cn/ concerta] [http://commondiets.peyote.cn/ common diets for irritable bowel syndrome] [http://nissantitan.evoker.cn/ nissan titan accesories] [http://airtrans.peyote.cn/ air trans] [http://lowrides.vulkanik.cn/ low rides] [http://famousmalemodels.evoker.cn/ famous male models] [http://fredericksof.orbitar.cn/ fredericks of hollywood home page] [http://northerntools.outstay.cn/ northern tools and equipment] [http://googlemapsatellite.emptio.cn/ google map satellite] [http://orangecountychoppers.emptio.cn/ orange county choppers] [http://unitedhealth.emptio.cn/ united health group company] [http://sacramentoairport.evoker.cn/ sacramento airport] [http://chipotlemexican.clootie.cn/ chipotle mexican restaurant] [http://chlordiazepoxide.outstay.cn/ chlordiazepoxide] [http://sportsstores.peyote.cn/ sports stores] [http://furnituremanufacturers.peyote.cn/ furniture manufacturers] [http://datingwomen.evoker.cn/ dating women] [http://softporn.orbitar.cn/ softporn] [http://windowupdates.orbitar.cn/ window updates] [http://videopornoparis.drover.cn/ video porno paris hilton] [http://wallpaperpaintball.clootie.cn/ wallpaper paintball] [http://barcelonacheap.vulkanik.cn/ barcelona cheap hotel] [http://peyote.cn/index0_666.html link] [http://amateurorgy.vulkanik.cn/ amateur orgy] [http://seminars.drover.cn/ seminars] [http://longxxxmovies.drover.cn/ long xxx movies free] [http://vintagewedding.emptio.cn/ vintage wedding gowns] [http://coffee.drover.cn/ coffee] [http://socialsecurity.vulkanik.cn/ social security administration] [http://krystalsteal.emptio.cn/ krystal steal] [http://jordanshoe.orbitar.cn/ jordan shoe] [http://clootie.cn/index5_666.html index] [http://pornwebcams.drover.cn/ porn webcams] [http://drugsforerectile.peyote.cn/ drugs for erectile dysfunction] [http://cheapphentermine.peyote.cn/ cheap phentermine free shipping] [http://strattera.drover.cn/ strattera] [http://fakefireplace.evoker.cn/ fake fireplace] [http://stadiumchairs.emptio.cn/ stadium chairs] [http://cheapwholesale.orbitar.cn/ cheap wholesale jordan shoes] [http://kirklandshomedecor.vulkanik.cn/ kirklands home decor] [http://furnitureparts.peyote.cn/ furniture parts] [http://americandoll.catchers.cn/ american doll] [http://huntingfordeerinfo.mary-jane.cn/ hunting for deer info] [http://diningtables.mary-jane.cn/ dining tables] [http://fatwomanphoto.peyote.cn/ fat woman photo] [http://software.catchers.cn/ software] [http://outstay.cn/index0_666.html index] [http://black.orbitar.cn/ black] [http://outstay.cn/index7_666.html site] [http://morphinepill.catchers.cn/ morphine pill] [http://directory.outstay.cn/ directory] [http://computersoftware.emptio.cn/ computer software] [http://drawspiderman.emptio.cn/ draw spiderman] [http://napaautoparts.peyote.cn/ napa auto parts store] [http://girlbike.orbitar.cn/ girl bike] [http://peyote.cn/ peyote.cn] [http://vaughnbassett.peyote.cn/ vaughn bassett bedroom furniture] [http://orchardbanksilver.peyote.cn/ orchard bank silver master card] [http://lesbienporn.evoker.cn/ lesbien porn] [http://datingsingles.emptio.cn/ dating singles] [http://passportapplications.emptio.cn/ passport applications]
{{LanguageBar}}
{{wrongtitle|title=env_explosion}}
{{this is a|point entity|name=env_explosion|sprite=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. -->[[File:env_explosion.jpg|right|thumb|320px|The explosion in-game.]]
It creates an explosion at its origin.


==Entity Description==
{{CD|CEnvExplosion|file1=explode.cpp}}
[[Image:{{PAGENAME}}.png|left]]An entity that creates an explosion at its origin.{{clr}}
 
{{clearleft}}


==Keyvalues==
==Keyvalues==
{{KV|Magnitude|intn=iMagnitude|integer|The amount of damage done by the explosion.}}
{{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|intn=fireballsprite|sprite|Sprite of the fireball.}}
{{KV|Render Mode|intn=rendermode|choices|[[Render mode]] of the fireball.
:*0: Normal
:*4: Solid
:*5: Additive}}
{{KV|Ignored Entity|intn=ignoredEntity|target_destination|Do not harm or affect the named entity.}}
{{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.|not={{bms}}}}
{{KV Targetname}}


* {{kv targetname}}
==Inputs==
 
{{I|Explode|Triggers the explosion.}}
*{{kv parentname}}
 
* '''iMagnitude'''
: <integer> The amount of damage done by the explosion.
 
* '''iRadiusOverride'''
: <integer> If specified, the radius in which the explosion damages entities. If unspecified, the radius will be based on the magnitude.
 
* '''fireballsprite'''
: <sprite>
 
* '''rendermode'''
: <choices>
:{|
! Literal Value || Description
|-
| 0 || Normal
|-
| 4 || Solid
|-
| 5 || Additive
|}


==Flags==
==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|}}
{{fl|1024|No DLights|Works only in {{bms|4}}. This flag prevents [[newLight_Point|dynamic deferred light]] spawn once the explosion has happened.}}
{{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>.}}


* 1 : No Damage
==See also==
* 2 : Repeatable
*{{ent|env_physexplosion}}
* 4 : No Fireball
* 8 : No Smoke
* 16 : No Decal
* 32 : No Sparks
* 64 : No Sound
* 128 : Random Orientation
* 256 : No Fireball Smoke
* 512 : No particles
* 1024 : No DLights
* 2048 : Don't clamp Min
* 4096 : Don't clamp Max
 
==Inputs==
 
* {{i targetname}}
 
* {{i parentname}}
 
* '''Explode'''
: Triggers the explosion.
 
==Outputs==
 
* {{o targetname}}
 
[[Category:Entities]]

Latest revision as of 04:44, 5 September 2025

English (en)中文 (zh)Translate (Translate)
Env explosion.png

env_explosion is a point entity available in all Source Source games.

The explosion in-game.

It creates an explosion at its origin.

C++ Class hierarchy
CEnvExplosion
CPointEntity
CBaseEntity
C++ explode.cpp

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.
Damage Force (DamageForce) <float> !FGD
If set, use this value as a magnitude for physics force.
Ignored Class (ignoredClass) <integer> (not in Black Mesa)
Do not harm or affect this class of NPC.
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
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]
Works only in Black Mesa Black Mesa. This flag prevents dynamic deferred light spawn once the explosion has happened.
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 to DMG_BLAST.

See also