This article relates to the game "Counter-Strike: Global Offensive". Click here for more information.
This article relates to the game "Counter-Strike: Source". Click here for more information.

weapon_hegrenade

From Valve Developer Community
Jump to: navigation, search

English (en)Translate (Translate)
Class hierarchy
CHEGrenade
CBaseCSGrenade
CWeaponCSBase
CBaseCombatWeapon
CBaseAnimating
CBaseEntity
weapon_hegrenade.cpp
Weapon hegrenade.PNG

weapon_hegrenade is a point entity available in Counter-Strike: Source Counter-Strike: Source and Counter-Strike: Global Offensive Counter-Strike: Global Offensive. A frag grenade. Usable by both teams.


KeyValues

CS:S Weapon:

Ammo (ammo) <integer> (only in Counter-Strike: Source)
Amount of reserve ammo to be added. Fallback value is 0. !FGD


Flags

Start Constrained : [1]

Prevents the model from moving.

Inputs

CS:S Weapon:

Outputs

CS:S Weapon:

OnPlayerUse
Fires when a player +uses this weapon (!activator is the player.). Does not fire if the weapon is picked up successfully.
OnPlayerPickup
Fires when a player picks this weapon up (!activator is the player.).
OnCacheInteraction  (removed since Counter-Strike 2) !FGD
When dropped, fires every tick on player touch (!activator is the player.).
OnNPCPickup  (removed since Counter-Strike 2) !FGD
Fires when an NPC picks up this weapon (!activator is the NPC). Bots are considered players, so this output has no functionality.
Counter-Strike: Source Hostages might be NPCs, but they don't pick weapons up.

Stub

This article or section is a stub. You can help by adding to it.