Env headcrabcanister: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added some detail to entity description)
No edit summary
Line 1: Line 1:
{{wrongtitle|title=env_headcrabcanister}}
I have a problem. I searched all over the net without result:(
 
When u open hammer u got 4 screens. 1 in 3D and 3 in 2D. First it was normal but now it looks like this.[[http://users.telenet.be/downloadarea/hammer.jpg]] plz help
==Entity Description==
send reply here or to vancaeneghempieter@hotmail.com
[[Npc_headcrab|Headcrab]] Canister.
thx
 
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 this damage and when the headcrabs are released, among other options.
 
For an example of their use, see the shantytown in ''d1_canals_05''.
 
[[Image:Headcrabcanister.jpg|frame|right|[[Npc headcrab|Headcrab]] Canister]]
 
==Dedicated Console Variables==
 
* '''sk_env_headcrabcanister_shake_amplitude'''
: <float>
 
* '''sk_env_headcrabcanister_shake_radius'''
: <float>
 
* '''sk_env_headcrabcanister_shake_radius_vehicle'''
: <float>
 
==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.
 
==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 <string>'''
: Fired when the canister is launched
 
* '''OnImpacted'''
: Fires when canister hits the ground
 
* '''OnOpened'''
: Fires when canister has finished opening
 
[[Category:Entities]]

Revision as of 10:47, 8 February 2006

I have a problem. I searched all over the net without result:( When u open hammer u got 4 screens. 1 in 3D and 3 in 2D. First it was normal but now it looks like this.[[1]] plz help send reply here or to vancaeneghempieter@hotmail.com thx