Grenade ar2: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (removed {{DISPLAYTITLE}}, covered by the hl2 point template)
(updates)
Line 1: Line 1:
[[Image:item_ammo_smg1_grenade.jpg|thumb|200px|right|Submachine gun grenade.]]
{{lang|Grenade ar2}}
{{hl2 point|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 [[prop_combine_ball]] for secondary fire.
{{ent not in fgd}}
[[File:item_ammo_smg1_grenade.jpg|thumb|200px|right|Submachine gun grenade.]]
{{hl2 point|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==
{{varcom|start}}
{{varcom|sk_smg1_grenade_radius|250|dist|Radius inside which to damage objects, when a grenade explodes.}}
{{varcom|smoke_trail|1|01|Leaves a small smoke trail behind SMG grenades.}}
{{varcom|end}}
 
==FGD code==
{{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}}

Revision as of 17:50, 10 September 2018

English (en)Translate (Translate)
Icon-NotInFGD.png
This entity is not in the FGD by default.
See below for instructions on making it available.
Submachine gun grenade.

Template:Hl2 point 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.

C++ In code, it is represented by theCGrenadeAR2class, defined in thegrenade_ar2.cppfile.

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]

Keyvalues

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


Inputs

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


Outputs

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