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

Env physexplosion: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Substituted IO templates)
 
(27 intermediate revisions by 15 users not shown)
Line 1: Line 1:
[http://hentai.eskout.cn/hidden-pee.html hidden pee] [http://movies.eskout.cn/horny-coeds.html horny coeds] [http://playboy.eskout.cn/long-puffy-nipples.html long puffy nipples] [http://girl.eskout.cn/colorado-department.html colorado department of corrections] [http://incest.eskout.cn/framed-prints.html framed prints] [http://lesbian.eskout.cn/chun-li-nude.html chun li nude] [http://cakahrho.freehostingz.com home] [http://nastyha05.galeon.com here] [http://teen.eskout.cn/drafting-machine.html drafting machine] [http://lesbian.eskout.cn/cop-sex.html cop sex] [http://www.mike12394.00go.com home] [http://porno.eskout.cn/adult-fuck.html adult fuck] [http://playboy.eskout.cn/hot-teen-pics.html hot teen pics] [http://girl.eskout.cn/softcore.html softcore] [http://porn.eskout.cn/innocent-nude.html innocent nude] [http://xxx.eskout.cn/scat-clips.html scat clips] [http://porno.eskout.cn/young-lesbos.html young lesbos] [http://incest.eskout.cn/males-masturbating.html males masturbating] [http://porno.eskout.cn/party-naked.html party naked] [http://incest.eskout.cn/asian-schoolgirl.html asian schoolgirl] [http://women.eskout.cn/anal-virgins.html anal virgins] [http://hentai.eskout.cn/astroglide.html astroglide] [http://www.samabrow.9f.com page] [http://sex.eskout.cn/naughty-wife.html naughty wife] [http://fuck.eskout.cn/katie-nude.html katie nude] [http://www.tusjen.safewebshop.com page] [http://hardcore.eskout.cn/male-celebrities.html male celebrities nude] [http://anal.eskout.cn/keystone-colorado.html keystone colorado real estate] [http://site.voila.fr/kompr/ home] [http://personales.ciudad.com.ar/gipsylilya/ map] [http://lesbian.eskout.cn/brook-burk-nude.html brook burk nude] [http://naked.eskout.cn/juicygals.html juicygals] [http://anal.eskout.cn/naked-grandmas.html naked grandmas] [http://girl.eskout.cn/asian-virgins.html asian virgins] [http://girl.eskout.cn/bottle-insertion.html bottle insertion] [http://teens.eskout.cn/frat-initiations.html frat initiations] [http://blondes.eskout.cn/aim-profiles.html aim profiles] [http://incest.eskout.cn/latina-nudes.html latina nudes] [http://lesbian.eskout.cn/full-porn.html full porn] [http://fuck.eskout.cn/bordello.html bordello] [http://girls.eskout.cn/gas-scooter-performance.html gas scooter performance parts] [http://anal.eskout.cn/lita-nude.html lita nude] [http://playboy.eskout.cn/allison-mack-nude.html allison mack nude] [http://www.osweikei.1hwy.com page] [http://deviant-rus.freehostingz.com home] [http://girl.eskout.cn/zapa.html zapa] [http://fuck.eskout.cn/canopy-rental-colorado.html canopy rental colorado] [http://porn.eskout.cn/anime-schoolgirls.html anime schoolgirls] [http://teen.eskout.cn/lesbian-entertainment.html lesbian entertainment] [http://www.oviplokossokol.s5.com home] [http://naked.eskout.cn/granny-fucking.html granny fucking] [http://teens.eskout.cn/longest-yard.html longest yard soundtrack] [http://girl.eskout.cn/bondage-directory.html bondage directory] [http://movies.eskout.cn/gay-college.html gay college guys] [http://www.beepworld.it/members/listdove-89/ home] [http://teens.eskout.cn/naked-asian.html naked asian women] [http://porno.eskout.cn/asian-tits.html asian tits] [http://incest.eskout.cn/beckham-nude.html beckham nude] [http://blondes.eskout.cn/dad-incest.html dad incest] [http://girls.eskout.cn/domain-names.html domain names hosting] [http://girl.eskout.cn/women-fisting.html women fisting] [http://girl.eskout.cn/tons-of-cum.html tons of cum] [http://blondes.eskout.cn/gratuit.html gratuit] [http://porno.eskout.cn/bavarian-nordic.html bavarian nordic] [http://hentai.eskout.cn/horse-sex-videos.html horse sex videos] [http://playboy.eskout.cn/cartoon-girls.html cartoon girls] [http://anal.eskout.cn/pre-lolita.html pre lolita] [http://girls.eskout.cn/used-cell-phone.html used cell phone] [http://naked.eskout.cn/egyptian-sex.html egyptian sex] [http://sex.eskout.cn/tracks-eraser.html tracks eraser] [http://incest.eskout.cn/horse-cum.html horse cum] [http://women.eskout.cn/bullwhip.html bullwhip] [http://anal.eskout.cn/increasing-gas.html increasing gas mileage products] [http://www.legrandguignol.safewebshop.com here] [http://www.pistemme.mysite.com home] [http://lesbian.eskout.cn/lipgloss.html lipgloss] [http://porn.eskout.cn/real-world-nudes.html real world nudes] [http://girl.eskout.cn/real-fuck.html real fuck] [http://blondes.eskout.cn/sick-sex.html sick sex] [http://porn.eskout.cn/kevin-bacon-nude.html kevin bacon nude] [http://yujanin.piranho.de here] [http://teens.eskout.cn/blackbooty.html blackbooty] [http://sex.eskout.cn/hentai-shower.html hentai shower] [http://www.emptypages.htmlplanet.com map] [http://xxx.eskout.cn/tiny-teenies.html tiny teenies] [http://naked.eskout.cn/post-op-transexual.html post op transexual] [http://fuck.eskout.cn/hamptons-long.html hamptons long island] [http://women.eskout.cn/swedish-swim.html swedish swim goggles] [http://hentai.eskout.cn/nasty-hoes.html nasty hoes] [http://teens.eskout.cn/bdsm-lingerie.html bdsm lingerie] [http://incest.eskout.cn/simmering-pots.html simmering pots and hot cakes] [http://girls.eskout.cn/forearm-workout.html forearm workout] [http://naked.eskout.cn/karaoke-cd.html karaoke cd] [http://women.eskout.cn/blacklight-posters.html blacklight posters] [http://hentai.eskout.cn/marvel-hentai.html marvel hentai] [http://women.eskout.cn/winston-churchill.html winston churchill quotes] [http://women.eskout.cn/anime-fucking.html anime fucking] [http://blondes.eskout.cn/worked-up-so.html worked up so sexual] [http://incest.eskout.cn/vintage-tub.html vintage tub] [http://teens.eskout.cn/dogfart-galleries.html dogfart galleries]
{{LanguageBar}}
{{wrongtitle|title=env_physexplosion}}
{{CD|CPhysExplosion|file1=physobj.cpp}}
{{this is a|point entity|name=env_physexplosion|sprite=1}}
It applies a physical force to physics 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 {{ent|env_explosion}}.
{{toc-right}}
{{tip|Use this at a low force on hanging objects like lights or bodies to make them sway.}}


==Entity Description==
==Flags==
[[Image:{{PAGENAME}}.png|left]]
{{fl|1|No Damage|Only Force (Players are not ever damaged by the explosion (regardless of this flag), only objects.)}}
'''Env_physexplosion''' applies a physical force to physics 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]].
{{fl|2|Push players|}}
 
{{fl|4|Push radially|not as a sphere (Radially meaning as a circle/cylinder. No upward or downward force will be generated.)}}
If the ''No Damage - Only Force'' flag isn't set, the object will also take damage from the explosion. (Damage is applied to the object only - the explosion will never directly damage the player.)
{{fl|8|Test [[LOS]] before pushing|}}
 
{{fl|16|Disorient player if pushed|}}
Env_physexplosions set to emit a fairly low force can be useful to get lights swinging or floating debris moving.
 
{{note|Beyond a certain point, increasing the magnitude will not increase the force of the explosion. If you require a bigger explosion than this, create multiple identical copies of the entity.}}
 
==Availability==
{{in game|point}} {{game-base}}
{{in code|class=class_c_phys_explosion.html CPhysExplosion|file=physobj_8cpp-source.html physobj.cpp}}


==Keyvalues==
==Keyvalues==
* {{kv targetname}}
{{KV Targetname}}
* {{kv parentname}}
{{KV|Magnitude|intn=magnitude|string|Amount of physics force applied by the explosion.
* '''magnitude'''
:{{note|The magnitude value is clamped between 1 and 100. If you require a bigger explosion than this, create multiple instances of the entity.}}}}
: <float> Amount of physics force applied by the explosion.  
{{KV|Clamp Radius (0 {{=}} auto)|intn=radius|string|If specified, the radius in which the explosion damages entities. If unspecified, the radius will be based on the magnitude.}}
* '''radius'''
{{KV|Limit to Entity|intn=targetentityname|target_destination|If specified, the explosion will only affect the matching entity.}}
: <float> Clamp radius (0 = auto) If specified, the radius in which the explosion damages entities. If unspecified, the radius will be based on the magnitude.
{{KV|Inner radius|intn=inner_radius|float|If not zero, the [[LOS]] is calculated from a point intersecting this sphere.}}
* '''targetentityname'''
: <target_destination> If specified, the explosion will only affect the matching entity.
* '''{{ep1 add|inner_radius}}
: <float> If not zero, the LOS is calculated from a point intersecting this sphere.
==Flags==
* 1 : No Damage - Only Force
: Don't make the object take damage from the explosion.
* {{ep1 add|2 : Push players}}
* {{ep1 add|4 : Push radially - not as a sphere}}
* {{ep1 add|8 : Test LOS before pushing}}
* {{ep1 add|16 : Disorient player if pushed}}


==Inputs==
==Inputs==
* {{i targetname}}
{{I|Explode|Trigger the explosion.}}
* {{i parentname}}
{{I|ExplodeAndRemove|since=p2|Trigger the explosion, then remove the entity.}}
* '''Explode'''
: Trigger the explosion.


==Outputs==
==Outputs==
* {{o targetname}}
{{O|OnPushedPlayer|Fires when the player is pushed by the explosion.}}
* '''{{ep1 add|OnPushedPlayer}}
: Fires when the player is pushed by the explosion.


[[Category:Entities]]
[[Category:Physics]]

Latest revision as of 21:43, 19 April 2025

English (en)中文 (zh)Translate (Translate)
C++ Class hierarchy
CPhysExplosion
CPointEntity
CBaseEntity
C++ physobj.cpp
Env physexplosion.png

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

It applies a physical force to physics 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.pngTip:Use this at a low force on hanging objects like lights or bodies to make them sway.

Flags

No Damage : [1]
Only Force (Players are not ever damaged by the explosion (regardless of this flag), only objects.)
Push players : [2]
Push radially : [4]
not as a sphere (Radially meaning as a circle/cylinder. No upward or downward force will be generated.)
Test LOS before pushing : [8]
Disorient player if pushed : [16]

Keyvalues

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

Magnitude (magnitude) <string>
Amount of physics force applied by the explosion.
Note.pngNote:The magnitude value is clamped between 1 and 100. If you require a bigger explosion than this, create multiple instances of the entity.
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) <targetname>
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.

Inputs

Explode
Trigger the explosion.
ExplodeAndRemove  (in all games since Portal 2)
Trigger the explosion, then remove the entity.

Outputs

OnPushedPlayer
Fires when the player is pushed by the explosion.