grenade_helicopter

From Valve Developer Community
Revision as of 17:36, 17 May 2024 by PeeBot (talk | contribs) (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
Jump to navigation Jump to search
Underlinked - Logo.png
This article needs more Wikipedia icon links to other articles to help Wikipedia icon integrate it into the encyclopedia. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024
English (en)Translate (Translate)
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.
C++ In code, it is represented by theCGrenadeHelicopterclass, defined in thenpc_attackchopper.cppfile.

ConVars/Commands

Cvar/Command Parameters or default value Descriptor Effect
sk_helicopter_grenadedamage 30 Health amount How much damage a bomb can do.
sk_helicopter_grenaderadius 275 Hammer units Radius in which a bomb will damage objects, when it explodes.
sk_helicopter_grenadeforce 55000 Arbitrary 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_puntscale 1.5 Multiplier Exists, but does nothing. Intended to be a scalar for how much force the gravity gun gives to helicopter bombs when launching.
sk_helicopter_num_bombs1 3 Arbitrary number Number of bombs needed to kill a helicopter, on Easy difficulty.
sk_helicopter_num_bombs2 5 Arbitrary number Number of bombs needed to kill a helicopter, on Medium difficulty.
sk_helicopter_num_bombs2 5 Arbitrary number Number of bombs needed to kill a helicopter, on Hard difficulty.

Flags

  • 65536: Dud. Will only explode after being launched by the gravity gun.

Keyvalues

Note.pngNote:Content moved to Rendering and studio model related KIO/Keyvalues for continuation of page history


Inputs

ExplodeIn <floatRedirectInput/float>
Tell the bomb to explode in this many seconds.
Note.pngNote:Content moved to Rendering and studio model related KIO/Inputs for continuation of page history


Outputs

OnPhysGunOnlyPickup
Fired when a player picks this object up with the gravity gun. +use pickups do not fire this output.
Note.pngNote:Content moved to Rendering and studio model related KIO/Outputs for continuation of page history


See also