Hegrenade projectile: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Can't be picked up/used in css and if requires input in csgo then it's not spawned active in either game)
Line 3: Line 3:
{{this is a|point entity|game1=Counter-Strike: Global Offensive|name=hegrenade_projectile|game=Counter-Strike: Source}}
{{this is a|point entity|game1=Counter-Strike: Global Offensive|name=hegrenade_projectile|game=Counter-Strike: Source}}


A thrown [[weapon_hegrenade|frag grenade]] in the {{Counter-Strike series|4}}. When spawned is already active.
A thrown [[weapon_hegrenade|frag grenade]] in the {{Counter-Strike series|4}}.
{{note|In {{csgo}}, this entity can not be picked up or used by a player. It will not explode until it receives the InitializeSpawnFromWorld input.}}
{{note|This entity cannot be picked up or used by a player. In {{csgo}} it can explode, but not until it receives the InitializeSpawnFromWorld input.}}


== Keyvalues ==
== Keyvalues ==
Line 13: Line 13:


== Inputs ==
== Inputs ==
{{I|InitializeSpawnFromWorld|Activates the grenade, causing it to explode after a few seconds as if it was thrown by a player.}}
{{I|InitializeSpawnFromWorld|only={{csgo}}|Activates the grenade, causing it to explode after a few seconds as if it was thrown by a player.}}


== Outputs ==
== Outputs ==
{{O|OnPlayerPickup|Fires when a player picks up this weapon. ([[activator]] is the player)}}
{{O|OnPlayerPickup|Fires when a player picks up this weapon. ([[activator]] is the player)}}
{{O|OnPlayerUse|Fires when a player [[use|+uses]] this weapon. ([[activator]] is the player)}}
{{O|OnPlayerUse|Fires when a player [[use|+uses]] this weapon. ([[activator]] is the player)}}

Revision as of 07:04, 18 November 2024

Icon-NotInFGD.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 seriesCounter-Strike series 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>[ 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]
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)