Grenade helicopter: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (added missing megabomb fgd info)
m (Fix partial rewrite by bot)
 
(8 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang|Grenade helicopter}}
<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{LanguageBar|Grenade helicopter}}
{{CD|CGrenadeHelicopter|file1=npc_attackchopper.cpp}}
{{CD|CGrenadeHelicopter|file1=npc_attackchopper.cpp}}
[[File:Hunter_chopper_mine.jpg|thumb|200px|right|Episode Two model.]]
[[File:Hunter_chopper_mine.jpg|thumb|200px|right|Episode Two model.]]
{{this is a|point entity|name=grenade_helicopter|game=Half-Life 2|game1=Half-Life 2: Episode One|game2=Half-Life 2: Episode Two|game3=Half-Life 2: Deathmatch}} It's a time-bomb dropped by [[npc_helicopter]].<br>
{{this is a|model entity|name=grenade_helicopter|series=Half-Life 2}} It's a time-bomb dropped by [[npc_helicopter]].<br>
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 {{key|+use}} on it before it touches the ground, you'll be able to hold unarmed, until you touch it against anything.<br>
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 {{key|+use}} on it before it touches the ground, you'll be able to hold unarmed, until you touch it against anything.<br>
Upon touching an NPC or most other props it will detonate immediately. The bombs are also buoyant.
Upon touching an NPC or most other props it will detonate immediately. The bombs are also buoyant.
Line 12: Line 12:


==Flags==
==Flags==
{{fl|1|Megabomb|Basic heli bomb. (Rolls less, quiet, explodes on a timer or when damaged.)}}
{{fl|1|Megabomb|Basic heli bomb. (Rolls less, quiet, explodes on a timer or when damaged.)|nofgd=1)}}
{{fl|65536|Dud|Will only explode after being launched by the gravity gun.}}
{{fl|65536|Dud|Will only explode after being launched by the gravity gun. Since EP1, but sounds and flashing only work in EP2}}


==Inputs==
==Inputs==
{{IO|ExplodeIn|param=float|Tell the bomb to explode in this many seconds.}}
{{I|ExplodeIn|param=float|Tell the bomb to explode in this many seconds.}}


==Outputs==
==Outputs==
{{IO|OnPhysGunOnlyPickup|Fired when a player picks this object up with the gravity gun. {{ent|+use}} pickups do not fire this output.}}
{{O|OnPhysGunOnlyPickup|Fired when a player picks this object up with the gravity gun. {{ent|+use}} pickups do not fire this output.}}


==ConVars/Commands==
==Console variables and commands==
{{varcom|start}}
{{varcom|start}}
{{varcom|sk_helicopter_grenadedamage|30|Health amount|How much damage a bomb can do.}}
{{varcom|sk_helicopter_grenadedamage|30|Health amount|How much damage a bomb can do.}}

Latest revision as of 16:14, 18 July 2025

English (en)Translate (Translate)
C++ Class hierarchy
CGrenadeHelicopter
CBaseGrenade
CBaseProjectile
CBaseAnimating
CBaseEntity
C++ npc_attackchopper.cpp
Episode Two model.

grenade_helicopter is a model entity available in Half-Life 2 series Half-Life 2 series. 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>[ 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

Flags

Megabomb : [1] !FGD
Basic heli bomb. (Rolls less, quiet, explodes on a timer or when damaged.)
Dud : [65536]
Will only explode after being launched by the gravity gun. Since EP1, but sounds and flashing only work in EP2

Inputs

ExplodeIn <floatRedirectInput/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.

Console variables and 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.

See also