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: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎Entity description: clean up, added stub tag)
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
Line 2: Line 2:
{{Lang}}
{{Lang}}
[[Image:weapon_hegrenade.PNG|thumb|right|110px]]
[[Image:weapon_hegrenade.PNG|thumb|right|110px]]
{{Base point multi|weapon_hegrenade|game1=Counter-Strike: Source|game2=Counter-Strike: Global Offensive}}
{{this is a|e0|game1=Counter-Strike: Global Offensive|name=weapon_hegrenade|game=Counter-Strike: Source}}


== Entity description ==
== Entity description ==

Revision as of 06:02, 7 January 2024

English (en)Translate (Translate)
Weapon hegrenade.PNG

weapon_hegrenade is an e0 available in Counter-Strike: Source Counter-Strike: Source and Counter-Strike: Global Offensive Counter-Strike: Global Offensive.

Entity description

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.
Deny Player Pickup : [2] !FGD
Prevents player from being able to pick up the 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  !FGD
When dropped, fires every tick on player touch (!activator is the player.).
OnNPCPickup  !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 expanding it.