Item ammo smg1 grenade: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (highly relevant info, no need for parenthesis)
No edit summary
 
(15 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{{wrongtitle|title=item_ammo_smg1_grenade}}
{{LanguageBar}}
{{CD|CItem_AR2_Grenade|file1=item_ammo.cpp}}
[[File: item_ammo_smg1_grenade.png | right | 300px]]


==Entity Description==
{{this is a|model entity|game=Half-Life 2 series|name=item_ammo_smg1_grenade}} It's an explosive grenade, providing secondary ammunition for the [[weapon_smg1|submachine gun]]. The entity will always provide just 1 single grenade regardless of the current difficulty setting.
[[Image:item_ammo_smg1_grenade.jpg|frame|right|Submachine gun grenade.]]
An explosive grenade, providing secondary ammunition for the [[weapon_smg1|submachine gun]]. The entity will always provide 1 grenade regardless of the current difficulty setting.


==Keyvalues==
__NOTOC__
* {{kv item}}


==Inputs==
{{KVIO ItemHL2}}
* {{i item}}


==Outputs==
== See Also ==
* {{o item}}
* {{ent|weapon_smg1}}
 
[[Category:Entities]]
[[Category:Items]]

Latest revision as of 17:18, 1 June 2025

English (en)Translate (Translate)
C++ Class hierarchy
CItem_AR2_Grenade
CItem
CBaseAnimating
CBaseEntity
C++ item_ammo.cpp
Item ammo smg1 grenade.png

item_ammo_smg1_grenade is a model entity available in Half-Life 2 series Half-Life 2 series. It's an explosive grenade, providing secondary ammunition for the submachine gun. The entity will always provide just 1 single grenade regardless of the current difficulty setting.


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

Start Constrained : [1]
Spawns with motion disabled.

Outputs

Item:

OnPlayerTouch
Fires when the player touches this item. !activator is the player.
OnCacheInteraction
This output fires when the player proves they have "found" this item.
Fires on:
  • Player Touch (whether or not player actually acquires the item).
  • Picked up by +use.
  • Picked up by gravity gun.
  • Punted by gravity gun.

See Also