grenade_helicopter

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)
Class hierarchy
CGrenadeHelicopter
CBaseGrenade
CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity
npc_attackchopper.cpp
Episode Two model.

grenade_helicopter is a point entity available in Half-Life 2 Half-Life 2, Half-Life 2: Episode One Half-Life 2: Episode One, Half-Life 2: Episode Two Half-Life 2: Episode Two, and Half-Life 2: Deathmatch Half-Life 2: Deathmatch. It's a time-bomb dropped by npc_helicopter.
The timer is only activated when the bomb comes in contact with the world geometry, or any props. If You manage to catch one by pressing +use on it before it touches the ground, you'll be able to hold unarmed, until you touch it against anything.
Upon touching an NPC or most other props it will detonate immediately. The bombs are also buoyant.

Note.pngNote:In the HL2 Episodes, these bombs have double velocity when launched by the gravity gun. They will also delay the timer when picked up with the gravity gun, so that they can be aimed.

Keyvalues

Name (targetname) <string>
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

Flags

Dud : [65536]

Will only explode after being launched by the gravity gun.

Inputs

ExplodeIn <float>
Tell the bomb to explode in this many seconds.

Outputs

OnPhysGunOnlyPickup
Fired when a player picks this object up with the gravity gun. +use pickups do not fire this output.

ConVars/Commands

Cvar/CommandParameters or default valueDescriptorEffect
sk_helicopter_grenadedamage30Health amountHow much damage a bomb can do.
sk_helicopter_grenaderadius275Hammer unitsRadius in which a bomb will damage objects, when it explodes.
sk_helicopter_grenadeforce55000Arbitrary number?[confirm]Amount of force given to moveable objects when an explosion occurs. This seems to be tied in to the damage and radius in some manner.
sk_helicopter_grenade_puntscale1.5MultiplierExists, but does nothing. Intended to be a scalar for how much force the gravity gun gives to helicopter bombs when launching.
sk_helicopter_num_bombs13Arbitrary numberNumber of bombs needed to kill a helicopter, on Easy difficulty.
sk_helicopter_num_bombs25Arbitrary numberNumber of bombs needed to kill a helicopter, on Medium difficulty.
sk_helicopter_num_bombs25Arbitrary numberNumber of bombs needed to kill a helicopter, on Hard difficulty.

See also