Env headcrabcanister: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Classifying as model entity)
 
(35 intermediate revisions by 19 users not shown)
Line 1: Line 1:
[http://potinz.servemp3.com/uniserve.htm uniserve] [http://aeson.servemp3.com/small/pc-speaker-driver.html pc speaker driver windows 2000] [http://unsafe.servemp3.com/web/chicken-dance.html chicken dance] [http://potinz.servemp3.com/explosive.htm explosive] [http://surfguitar.servemp3.com/off-switch.html off switch] [http://aeson.servemp3.com/small/tips-on-masterbating.html tips on masterbating] [http://potinz.servemp3.com/free-pan-hentai.htm free pan hentai] [http://surfguitar.servemp3.com/carmine-agnello.html carmine agnello] [http://aeson.servemp3.com/small/tanning-salon-supplies.html tanning salon supplies] [http://boors.servemp3.com/blog/anna-marek-teen.html anna marek teen] [http://espied.servemp3.com/content/school-loans.html school loans] [http://spying.servemp3.com/walmart-pharmacy.html walmart pharmacy] [http://surfguitar.servemp3.com/free-full-length.html free full length adult movies] [http://aeson.servemp3.com/small/lime-wire-free.html lime wire free version] [http://espied.servemp3.com/content/seymore-butts.html seymore butts] [http://spying.servemp3.com/tattoo-picture.html tattoo picture gallery] [http://spying.servemp3.com/melissa-tablature.html melissa tablature] [http://espied.servemp3.com/content/general-grievous.html general grievous] [http://robbed.servemp3.com/small/downshirt.htm downshirt] [http://surfguitar.servemp3.com/works-motion.html works motion] [http://espied.servemp3.com/content/beastiality-stories.html beastiality stories] [http://trump.servemp3.com/html/dirty-sex.html dirty sex] [http://unsafe.servemp3.com/web/adult-video-store.html adult video store] [http://spying.servemp3.com/peacock.html peacock] [http://aeson.servemp3.com/small/accident-attorney.html accident attorney car island long] [http://surfguitar.servemp3.com/assoc-california.html assoc california golf northern] [http://spying.servemp3.com/nassau-bahamas.html nassau bahamas] [http://unsafe.servemp3.com/web/lenka-gaborova.html lenka gaborova] [http://corner.servemp3.com/description/savastat-distributor.html savastat distributor] [http://espied.servemp3.com/content/international-white.html international white pages] [http://espied.servemp3.com/content/naked-male-bodybuilders.html naked male bodybuilders] [http://corner.servemp3.com/description/booty-hoe.html booty hoe] [http://surfguitar.servemp3.com/cocker-spaniel.html cocker spaniel breeders] [http://potinz.servemp3.com/uniformed-sex.htm uniformed sex] [http://aeson.servemp3.com/small/hustler-girls.html hustler girls] [http://spying.servemp3.com/information-on.html information on diabetes] [http://aeson.servemp3.com/small/gay-wrestling-videos.html gay wrestling videos] [http://spying.servemp3.com/sexual-tips.html sexual tips] [http://robbed.servemp3.com/small/tiara.htm tiara] [http://potinz.servemp3.com/misty-haze.htm misty haze] [http://espied.servemp3.com/content/wicked-clowns.html wicked clowns] [http://corner.servemp3.com/description/honey-hole.html honey hole] [http://unsafe.servemp3.com/web/microsoft-standard.html microsoft standard wireless optical desktop] [http://surfguitar.servemp3.com/free-gay-male.html free gay male porn] [http://spying.servemp3.com/malibu-ca-real.html malibu ca real estate] [http://aeson.servemp3.com/small/free-contests.html free contests] [http://corner.servemp3.com/description/sasha-music.html sasha music] [http://spying.servemp3.com/girl-pictur.html girl pictur] [http://surfguitar.servemp3.com/xm.html xm] [http://trump.servemp3.com/html/the-bible.html the bible] [http://espied.servemp3.com/content/radio-controls.html radio controls] [http://surfguitar.servemp3.com/wma-to-mp3-converter.html wma to mp3 converter] [http://robbed.servemp3.com/small/magick.htm magick] [http://trump.servemp3.com/html/cintas.html cintas] [http://corner.servemp3.com/description/rhapsody.html rhapsody] [http://corner.servemp3.com/description/hidden-camera-mom.html hidden camera mom] [http://corner.servemp3.com/description/messy-facial.html messy facial] [http://surfguitar.servemp3.com/work-at-home-internet.html work at home internet business] [http://aeson.servemp3.com/small/dog-stuff.html dog stuff] [http://surfguitar.servemp3.com/accessory-asian.html accessory asian wedding] [http://boors.servemp3.com/blog/sign-compatibility.html sign compatibility] [http://trump.servemp3.com/html/western-furniture.html western furniture] [http://boors.servemp3.com/blog/orange-county.html orange county public schools] [http://espied.servemp3.com/content/three-credit.html three credit bureaus addresses] [http://aeson.servemp3.com/small/remax-realtor.html remax realtor] [http://potinz.servemp3.com/genre-magazine.htm genre magazine] [http://trump.servemp3.com/html/black-men-fucking.html black men fucking] [http://trump.servemp3.com/html/womens-erotica.html womens erotica] [http://potinz.servemp3.com/gay-toon.htm gay toon] [http://unsafe.servemp3.com/web/sonic-amy-hentai.html sonic amy hentai] [http://aeson.servemp3.com/small/airsoft-gun-wholesale.html airsoft gun wholesale] [http://unsafe.servemp3.com/web/teenage-nudist.html teenage nudist beach] [http://aeson.servemp3.com/small/briteny-spears.html briteny spears] [http://espied.servemp3.com/content/spanks.html spanks] [http://spying.servemp3.com/young-red-heads.html young red heads nude] [http://espied.servemp3.com/content/satanic-bible.html satanic bible] [http://surfguitar.servemp3.com/red-hot-chili.html red hot chili peppers by the way] [http://corner.servemp3.com/description/unc.html unc] [http://spying.servemp3.com/american-funds.html american funds investment] [http://corner.servemp3.com/description/oxygen-therapy.html oxygen therapy] [http://trump.servemp3.com/html/ric-flair.html ric flair] [http://surfguitar.servemp3.com/simplicity-patterns.html simplicity patterns online] [http://espied.servemp3.com/content/picnic-recipes.html picnic recipes] [http://corner.servemp3.com/description/kryztal-red.html kryztal red] [http://boors.servemp3.com/blog/dried-cherries.html dried cherries] [http://boors.servemp3.com/blog/colorado-springs.html colorado springs home listings] [http://boors.servemp3.com/blog/preteen-pics.html preteen pics] [http://trump.servemp3.com/html/cancer-information.html cancer information lung cancer] [http://potinz.servemp3.com/myspace-html.htm myspace html layout] [http://surfguitar.servemp3.com/adult-buffet-thumbnail.html adult buffet thumbnail post] [http://robbed.servemp3.com/small/gay-thugs.htm gay thugs] [http://trump.servemp3.com/html/bondage-equipment.html bondage equipment] [http://surfguitar.servemp3.com/mary-kate-olsen.html mary kate olsen topless] [http://potinz.servemp3.com/japanese-sailor.htm japanese sailor uniform girls] [http://aeson.servemp3.com/small/sega-genesis-part.html sega genesis part] [http://potinz.servemp3.com/drunk-passed-out.htm drunk passed out women] [http://potinz.servemp3.com/order-xanax.htm order xanax] [http://surfguitar.servemp3.com/hairy-pussy.html hairy pussy galleries] [http://unsafe.servemp3.com/web/montana-map.html montana map] [http://boors.servemp3.com/blog/lllt.html lllt] [http://robbed.servemp3.com/small/triple-fisting.htm triple fisting] [http://corner.servemp3.com/description/tropicial-rainforests.html tropicial rainforests] [http://aeson.servemp3.com/small/chicken-salad-recipe.html chicken salad recipe] [http://surfguitar.servemp3.com/office-accessories.html office accessories and bookend] [http://boors.servemp3.com/blog/bighands-club.html bighands club] [http://trump.servemp3.com/html/submersible-pond.html submersible pond filter] [http://aeson.servemp3.com/small/trish-stratus.html trish stratus topless] [http://trump.servemp3.com/html/books-on-cd.html books on cd] [http://aeson.servemp3.com/small/free-full-length.html free full length porn video] [http://robbed.servemp3.com/small/coral-gables.htm coral gables real estate] [http://potinz.servemp3.com/sexy-platform.htm sexy platform shoes] [http://aeson.servemp3.com/small/riders-on-the-storm.html riders on the storm] [http://surfguitar.servemp3.com/nathan-bedford-forrest.html nathan bedford forrest] [http://spying.servemp3.com/thrice.html thrice] [http://trump.servemp3.com/html/boa.html boa] [http://surfguitar.servemp3.com/stencil.html stencil] [http://spying.servemp3.com/progressive-suspension.html progressive suspension] [http://aeson.servemp3.com/small/diaper-cover.html diaper cover] [http://unsafe.servemp3.com/web/aliens.html aliens] [http://surfguitar.servemp3.com/cock-balls-penis.html cock balls penis torture] [http://trump.servemp3.com/html/skirt.html skirt] [http://robbed.servemp3.com/small/lesbians-porn.htm lesbians porn] [http://potinz.servemp3.com/chicken-soup.htm chicken soup] [http://boors.servemp3.com/blog/shareholder-concept.html shareholder concept] [http://corner.servemp3.com/description/loliangels.html loliangels] [http://robbed.servemp3.com/small/girth.htm girth] [http://trump.servemp3.com/html/world-times.html world times] [http://unsafe.servemp3.com/web/wn-network.html wn network] [http://espied.servemp3.com/content/eminem-bush-fbi.html eminem bush fbi] [http://corner.servemp3.com/description/ac-drive-europe.html ac drive europe in market report research] [http://spying.servemp3.com/young-dick.html young dick] [http://potinz.servemp3.com/ramen-noodle-salad.htm ramen noodle salad] [http://potinz.servemp3.com/chat-rooms-for-adults.htm chat rooms for adults] [http://surfguitar.servemp3.com/nikki-sanderson.html nikki sanderson] [http://spying.servemp3.com/anonymizer.html anonymizer] [http://trump.servemp3.com/html/periods.html periods] [http://potinz.servemp3.com/webcam-porn.htm webcam porn] [http://unsafe.servemp3.com/web/router-for-dial.html router for dial up modem] [http://surfguitar.servemp3.com/teen-quizzes.html teen quizzes] [http://spying.servemp3.com/adolescence.html adolescence] [http://surfguitar.servemp3.com/pam-nude.html pam nude] [http://corner.servemp3.com/description/golden-nugget-las.html golden nugget las vegas] [http://aeson.servemp3.com/small/inuyashas-mother.html inuyashas mother and father] [http://unsafe.servemp3.com/web/breaking-benjamin.html breaking benjamin so cold] [http://aeson.servemp3.com/small/cewek.html cewek] [http://aeson.servemp3.com/small/prince-edward-island.html prince edward island airports] [http://corner.servemp3.com/description/big-dick-shemales.html big dick shemales] [http://potinz.servemp3.com/drop.htm drop] [http://surfguitar.servemp3.com/cartoon-naked.html cartoon naked] [http://boors.servemp3.com/blog/lesbians-girls.html lesbians girls] [http://aeson.servemp3.com/small/rent-an-rv-canada.html rent an rv canada] [http://surfguitar.servemp3.com/canon-s2.html canon s2] [http://unsafe.servemp3.com/web/pompino.html pompino] [http://aeson.servemp3.com/small/psp-hack.html psp hack] [http://boors.servemp3.com/blog/push-scooters.html push scooters] [http://spying.servemp3.com/aborigines-government.html aborigines government] [http://trump.servemp3.com/html/escorts-chicago.html escorts chicago] [http://unsafe.servemp3.com/web/fort-carson.html fort carson] [http://aeson.servemp3.com/small/sunny-isles-beach.html sunny isles beach florida] [http://spying.servemp3.com/etf.html etf] [http://espied.servemp3.com/content/hot-and-wet.html hot and wet] [http://aeson.servemp3.com/small/fat-girl.html fat girl] [http://robbed.servemp3.com/small/hyundai-santa-fe.htm hyundai santa fe review] [http://unsafe.servemp3.com/web/corrosion-of.html corrosion of conformity] [http://potinz.servemp3.com/team-speak.htm team speak] [http://surfguitar.servemp3.com/britneyspears.html britneyspears] [http://spying.servemp3.com/ecommerce-hosting.html ecommerce hosting solution web] [http://robbed.servemp3.com/small/trei.htm trei] [http://trump.servemp3.com/html/book-worm.html book worm] [http://robbed.servemp3.com/small/naked-women-fucking.htm naked women fucking] [http://surfguitar.servemp3.com/free-penis-pictures.html free penis pictures] [http://aeson.servemp3.com/small/guns-n-roses-welcome.html guns n roses welcome to the jungle] [http://aeson.servemp3.com/small/origin-of-words.html origin of words] [http://spying.servemp3.com/keychain-pill.html keychain pill fob] [http://corner.servemp3.com/description/boys-load.html boys load] [http://trump.servemp3.com/html/zoe-mcconnell.html zoe mcconnell] [http://trump.servemp3.com/html/ugly-whores.html ugly whores] [http://espied.servemp3.com/content/safety-supplies.html safety supplies] [http://corner.servemp3.com/description/tits-virgins.html tits virgins] [http://robbed.servemp3.com/small/figi.htm figi] [http://espied.servemp3.com/content/teen-ass-fucking.html teen ass fucking] [http://spying.servemp3.com/gellar-nude.html gellar nude] [http://unsafe.servemp3.com/web/internet-movie-database.html internet movie database] [http://robbed.servemp3.com/small/adult-clips.htm adult clips] [http://unsafe.servemp3.com/web/male-masterbating.html male masterbating tips] [http://espied.servemp3.com/content/vb-combo-boxes.html vb combo boxes] [http://robbed.servemp3.com/small/mortgage-broker.htm mortgage broker memphis tn] [http://espied.servemp3.com/content/pichunter-gallery.html pichunter gallery] [http://espied.servemp3.com/content/cat-girls.html cat girls] [http://robbed.servemp3.com/small/teen-clit.htm teen clit] [http://unsafe.servemp3.com/web/los-angeles.html los angeles] [http://aeson.servemp3.com/small/mass-transit.html mass transit magazines] [http://potinz.servemp3.com/miniputt.htm miniputt] [http://corner.servemp3.com/description/violent-comix-gary.html violent comix gary roberts] [http://unsafe.servemp3.com/web/r-kelly-sex.html r kelly sex] [http://surfguitar.servemp3.com/music-store-columbus.html music store columbus georgia] [http://spying.servemp3.com/exotic-wood.html exotic wood] [http://spying.servemp3.com/lewd.html lewd] [http://boors.servemp3.com/blog/gbf.html gbf] [http://boors.servemp3.com/blog/brazilian-women.html brazilian women]
{{LanguageBar}}
{{wrongtitle|title=env_headcrabcanister}}
{{CD|CEnvHeadcrabCanister|file1=env_headcrabcanister.cpp}}
[[File:Headcrabcanister.jpg|frame|right]]
{{this is a|model entity|name=env_headcrabcanister|game=Half-Life 2 series|game1=Source 2006|game2=Source 2013|game3=Portal}} The canister is a mortar shell containing a payload of [[headcrab]]s. The mortar shell inflicts damage within a radius of where it lands and releases headcrabs after impact. Inputs and keyvalues offer control over impact damage and when the headcrabs are released, among other options.


==Entity Description==
For an example of their use, see the shantytown in {{ent|d1_canals_05}}.
[[Image:Headcrabcanister.jpg|frame|right|[[Npc headcrab|Headcrab]] Canister]][[Npc_headcrab|Headcrab]] Canister.


The canister is a mortar containing a payload of headcrabs. The mortar inflicts damage within a radius of where it lands and releases headcrabs after impact. Triggers and entity options offer control over impact damage and when the headcrabs are released, among other options.
== Flags ==
{{fl|1|No Impact Sound}}
{{fl|2|No Launch Sound}}
{{fl|4096|Start Impacted}}
{{fl|8192|Land at initial position}}
{{fl|16384|Wait for input to open}}
{{fl|32768|Wait for input to spawn headcrabs}}
{{fl|65536|No smoke}}
{{fl|131072|No shake}}
{{fl|262144|Remove on impact}}
{{fl|524288|No impact effects}}


For an example of their use, see the shantytown in ''d1_canals_05''.
== Keyvalues ==
{{KV Targetname}}
{{KV|Which headcrab to Spawn?|intn=HeadcrabType|choices|Select which headcrab will jump out the canister.
:*0: Normal headcrabs
:*1: Fast Headcrabs
:*2: Poison Headcrabs}}
{{KV|Headcrab count|intn=HeadcrabCount|int|Number of headcrabs to spawn on impact.}}
{{KV|Min Refire time|intn=MinSkyboxRefireTime|float|Min number of seconds before the canister is refired. This will only work for canisters placed in the skybox.}}
{{KV|Max Refire time|intn=MaxSkyboxRefireTime|float|Max number of seconds before the canister is refired. This will only work for canisters placed in the skybox.}}
{{KV|Canister count|intn=SkyboxCannisterCount|int|Number of canisters to produce and fire across the skybox. The target should be positioned inside the skybox. 0 means fire continuously, forever.}}
{{KV|Impact damage|intn=Damage|float|Max damage the canister applies on impact.}}
{{KV|Impact damage Radius|intn=DamageRadius|float|Max radius of the impact damage for the canister.}}
{{KV|Smoke duration|intn=SmokeLifetime|float|Duration that the canister smokes. -1 means always smoke.}}
{{KV|Launch Position Name|intn=LaunchPositionName|target_destination|If the canister should launch to its origin from another point within the world, this should specify an {{ent|info_target}} at the launch origin.}}
{{KV|Flight Speed|intn=FlightSpeed|float|Speed to fly through the air.}}
{{KV|Flight Time|intn=FlightTime|float|Time to fly through the air in seconds.}}
{{KV|Starting Height|intn=StartingHeight|float|Relative height from the landing position at which the canister should be launched. Positive values mean launch it above the impact point, negative values mean launch it below.}}


==Dedicated Console Variables==
== Inputs ==
{{I|FireCanister|param=void|Fires the canister.}}
{{I|OpenCanister|param=void|Opens the canister (must be called after the <code>OnImpacted</code> output is fired).}}
{{I|SpawnHeadcrabs|param=void|Spawns headcrabs (must be called after the <code>OnImpacted</code> output is fired and after <code>OpenCanister</code> is triggered, if the ''Wait for Input to open''' flag is checked).)}}
{{I|StopSmoke|param=void|Causes the smoke effect to stop.}}


* '''sk_env_headcrabcanister_shake_amplitude'''
== Outputs ==
: <float> Crash effect's shake amplitude
{{O|OnLaunched|param=ehandle|ac-is-this=1|Fired when the canister is launched. {{outadd|the targetname of the canister}}}}
{{O|OnImpacted|param=void|ac-is-this=1|Fires when canister hits the ground.}}
{{O|OnOpened|param=void|ac-is-this=1|Fires when canister has finished opening.}}


* '''sk_env_headcrabcanister_shake_radius'''
== ConVars/Commands ==
: <float> Crash effect's shake radius
{{varcom|start}}
{{varcom|sk_env_headcrabcanister_shake_amplitude|50|Arbitrary decimal (float)|Crash effect's shake amplitude. Though the default is 50, the shake amplitude can only go up to 16.}}
{{varcom|sk_env_headcrabcanister_shake_radius|1024|dist|Radius the player must be within for the screen shake effect to occur. Shake amplitude is gradually decreased the farther away from the explosion the player is.}}
{{varcom|sk_env_headcrabcanister_shake_radius_vehicle|2500|dist|As above, but when in a vehicle.}}
{{varcom|end}}


* '''sk_env_headcrabcanister_shake_radius_vehicle'''
== See also ==
: <float> Crash effect's shake radius for vehicles
* {{ent|npc_headcrab}}
 
==Keyvalues==
 
* {{kv targetname}}
 
* {{kv parentname}}
 
* {{kv angles}}
 
* '''HeadcrabType'''
: <choices>
:{|
! Literal Value || Description
|-
| 0 || Normal headcrabs
|-
| 1 || Fast Headcrabs
|-
| 2 || Poison Headcrabs
|}
 
* '''HeadcrabCount'''
: <integer> Number of headcrabs to spawn on impact
 
* '''FlightSpeed'''
: <float> Speed to fly through the air
 
* '''FlightTime'''
: <float> Time to fly through the air in seconds
 
* '''StartingHeight'''
: <float> Relative height from the landing position at which the canister should be launched. Positive values mean launch it above the impact point, negative values mean launch it below.
 
* '''MinSkyboxRefireTime'''
: <float> Min number of seconds before the canister is refired. This will only work for canisters placed in the skybox.
 
* '''MaxSkyboxRefireTime'''
: <float> Max number of seconds before the canister is refired. This will only work for canisters placed in the skybox.
 
* '''SkyboxcanisterCount'''
: <integer> Number of canisters to fire in the skybox (0 means fire continuously, forever).
 
* '''Damage'''
: <float> Max damage the canister applies on impact
 
* '''DamageRadius'''
: <float> Max radius of the impact damage for the canister
 
* '''SmokeLifetime'''
: <float> Duration that the canister smokes.  -1 means always smoke.
 
* '''{{ep1 add|LaunchPositionName}}'''
: <target_destination> If the canister should launch to its origin from another point within the world, this should specify an info_target at the launch origin.
 
==Flags==
 
* 1 : No Impact Sound
 
* 2 : No Launch Sound
 
* 4096 : Start Impacted
 
* 8192 : Land at initial position
 
* 16384 : Wait for input to open
 
* 32768 : Wait for input to spawn headcrabs
 
* 65536 : No smoke
 
* 131072 : No shake
 
* 262144 : Remove on impact
 
* 524288 : No impact effects
 
==Inputs==
 
* {{i targetname}}
 
* {{i parentname}}
 
* '''FireCanister'''
 
* '''OpenCanister'''
: Opens the canister (must be called after the OnImpacted output is fired)
 
* '''SpawnHeadcrabs'''
: Spawns headcrabs (must be called after the OnImpacted output is fired and after OpenCanister is triggered, if the Wait for Input to open spawnflag is checked.)
 
* '''StopSmoke'''
 
==Outputs==
 
* {{o targetname}}
 
* '''OnLaunched <[[ehandle]]>'''
: Fired when the canister is launched. The ehandle points to the canister.
 
* '''OnImpacted'''
: Fires when canister hits the ground
 
* '''OnOpened'''
: Fires when canister has finished opening
 
[[Category:Entities]]

Latest revision as of 04:31, 19 May 2025

English (en)Translate (Translate)
C++ Class hierarchy
CEnvHeadcrabCanister
CBaseAnimating
CBaseEntity
C++ env_headcrabcanister.cpp
Headcrabcanister.jpg

env_headcrabcanister is a model entity available in Half-Life 2 series Half-Life 2 series, Source 2006 Source 2006, Source 2013 Source 2013, and Portal Portal. The canister is a mortar shell containing a payload of headcrabs. The mortar shell inflicts damage within a radius of where it lands and releases headcrabs after impact. Inputs and keyvalues offer control over impact damage and when the headcrabs are released, among other options.

For an example of their use, see the shantytown in d1_canals_05.

Flags

No Impact Sound : [1]
No Launch Sound : [2]
Start Impacted : [4096]
Land at initial position : [8192]
Wait for input to open : [16384]
Wait for input to spawn headcrabs : [32768]
No smoke : [65536]
No shake : [131072]
Remove on impact : [262144]
No impact effects : [524288]

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

Which headcrab to Spawn? (HeadcrabType) <choices>
Select which headcrab will jump out the canister.
  • 0: Normal headcrabs
  • 1: Fast Headcrabs
  • 2: Poison Headcrabs
Headcrab count (HeadcrabCount) <integer>
Number of headcrabs to spawn on impact.
Min Refire time (MinSkyboxRefireTime) <float>
Min number of seconds before the canister is refired. This will only work for canisters placed in the skybox.
Max Refire time (MaxSkyboxRefireTime) <float>
Max number of seconds before the canister is refired. This will only work for canisters placed in the skybox.
Canister count (SkyboxCannisterCount) <integer>
Number of canisters to produce and fire across the skybox. The target should be positioned inside the skybox. 0 means fire continuously, forever.
Impact damage (Damage) <float>
Max damage the canister applies on impact.
Impact damage Radius (DamageRadius) <float>
Max radius of the impact damage for the canister.
Smoke duration (SmokeLifetime) <float>
Duration that the canister smokes. -1 means always smoke.
Launch Position Name (LaunchPositionName) <targetname>
If the canister should launch to its origin from another point within the world, this should specify an info_target at the launch origin.
Flight Speed (FlightSpeed) <float>
Speed to fly through the air.
Flight Time (FlightTime) <float>
Time to fly through the air in seconds.
Starting Height (StartingHeight) <float>
Relative height from the landing position at which the canister should be launched. Positive values mean launch it above the impact point, negative values mean launch it below.

Inputs

FireCanister <void>
Fires the canister.
OpenCanister <void>
Opens the canister (must be called after the OnImpacted output is fired).
SpawnHeadcrabs <void>
Spawns headcrabs (must be called after the OnImpacted output is fired and after OpenCanister is triggered, if the Wait for Input to open' flag is checked).)
StopSmoke <void>
Causes the smoke effect to stop.

Outputs

OnLaunched <targetname*RedirectOutput/ehandle>
!activator = !caller = this entity
Fired when the canister is launched. This output automatically puts the targetname of the canister into the parameter box for inputs, if the mapper does not override the parameter with something else.
OnImpacted <void>
!activator = !caller = this entity
Fires when canister hits the ground.
OnOpened <void>
!activator = !caller = this entity
Fires when canister has finished opening.

ConVars/Commands

Cvar/Command Parameters or default value Descriptor Effect
sk_env_headcrabcanister_shake_amplitude 50 Arbitrary decimal (float) Crash effect's shake amplitude. Though the default is 50, the shake amplitude can only go up to 16.
sk_env_headcrabcanister_shake_radius 1024 Hammer units Radius the player must be within for the screen shake effect to occur. Shake amplitude is gradually decreased the farther away from the explosion the player is.
sk_env_headcrabcanister_shake_radius_vehicle 2500 Hammer units As above, but when in a vehicle.

See also