hegrenade_projectile

From Valve Developer Community
Jump to navigation Jump to search
Info.png
This entity is not in the Counter-Strike: Source FGD by default.
See below for instructions on making it available.

Stub

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

hegrenade_projectile is a point entity available in Counter-Strike: Source Counter-Strike: Source and Counter-Strike: Global Offensive Counter-Strike: Global Offensive.

A thrown frag grenade in the Counter-Strike: SourceCounter-Strike: Global Offensive Counter-Strike series.

Note.pngNote:This entity cannot be picked up or used by a player. In Counter-Strike: Global Offensive it can explode, but not until it receives the InitializeSpawnFromWorld input.

Keyvalues

Name (targetname) <string>
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]

Prevents the model from moving.

Inputs

InitializeSpawnFromWorld  (only in Counter-Strike: Global Offensive)
Activates the grenade, causing it to explode after a few seconds as if it was thrown by a player.

Outputs

OnPlayerPickup
Fires when a player picks up this weapon. (activator is the player)
OnPlayerUse
Fires when a player +uses this weapon. (activator is the player)