This article relates to the game "Half-Life 2". Click here for more information.

Grenade ar2: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
m (Fix partial rewrite of partial rewrite (i messed up a lil))
 
(4 intermediate revisions by 4 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. -->{{HL2 topicon}}
<!-- 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. -->{{HL2 topicon}}
{{lang}}{{Ent not in fgd}}
{{LanguageBar}}{{Ent not in fgd}}
{{CD|CGrenadeAR2|file1=grenade_ar2.cpp}}
[[File:item_ammo_smg1_grenade.jpg|thumb|200px|right|Submachine gun grenade.]]
[[File:item_ammo_smg1_grenade.jpg|thumb|200px|right|Submachine gun grenade.]]
{{this is a|point entity|game=Half-Life 2|name=grenade_ar2}} This is the grenade created and launched by the [[weapon_smg1|SMG]] alt-fire. It is not affected by the gravity gun. Despite the name, it is not related to the [[AR2]], which emits a {{ent|prop_combine_ball}} for secondary fire.
{{this is a|model entity|game=Half-Life 2|name=grenade_ar2}} This is the grenade created and launched by the [[weapon_smg1|SMG]] alt-fire. It is not affected by the gravity gun. Despite the name, it is not related to the [[AR2]], which emits a {{ent|prop_combine_ball}} for secondary fire.
 
{{code class|CGrenadeAR2|grenade_ar2.cpp}}


==ConVars/Commands==
==ConVars/Commands==
Line 15: Line 14:
{{todo}}<!--Hoping to get Ficool's FGD base classes for this. -Pinsplash -->
{{todo}}<!--Hoping to get Ficool's FGD base classes for this. -Pinsplash -->


==Keyvalues==
{{KV BaseAnimating|base=1}}
{{KV BaseEntity|base=1}}
==Inputs==
{{I BaseAnimating}}
{{I BaseEntity|prel4d=1|base=1}}
==Outputs==
{{O BaseAnimating}}
{{O BaseEntity}}


[[Category:Half-Life 2 Weapons]]
[[Category:Half-Life 2 Weapons]]

Latest revision as of 16:15, 18 July 2025

English (en)Translate (Translate)
Icon-NotInFGD.png
This entity is not in the FGD by default.
See below for instructions on making it available.
C++ Class hierarchy
CGrenadeAR2
CBaseGrenade
CBaseProjectile
CBaseAnimating
CBaseEntity
C++ grenade_ar2.cpp
Submachine gun grenade.

grenade_ar2 is a model entity available in Half-Life 2 Half-Life 2. This is the grenade created and launched by the SMG alt-fire. It is not affected by the gravity gun. Despite the name, it is not related to the AR2, which emits a prop_combine_ball for secondary fire.

ConVars/Commands

Cvar/Command Parameters or default value Descriptor Effect
sk_smg1_grenade_radius 250 Hammer units Radius inside which to damage objects, when a grenade explodes.
smoke_trail 1 0 disables, 1 enables Leaves a small smoke trail behind SMG grenades.

FGD code

[Todo]