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 (Fix partial rewrite by bot)
m (Fix partial rewrite of partial rewrite (i messed up a lil))
 
Line 1: Line 1:
<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{LanguageBar}}, 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}}
{{LanguageBar}}{{Ent not in fgd}}
{{LanguageBar}}{{Ent not in fgd}}
{{CD|CGrenadeAR2|file1=grenade_ar2.cpp}}
{{CD|CGrenadeAR2|file1=grenade_ar2.cpp}}

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]