Npc handgrenade: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(try harding removing stub)
No edit summary
Line 2: Line 2:
{{CD|CBaseGrenadeTimed|file1=1}}
{{CD|CBaseGrenadeTimed|file1=1}}
{{this is a|[[entity]]|name=npc_handgrenade|game=hls|game1=Half-Life 2|game2=Portal series|game3=Team Fortress 2}} Grenade that explodes immediately after it is spawned.
{{this is a|[[entity]]|name=npc_handgrenade|game=hls|game1=Half-Life 2|game2=Portal series|game3=Team Fortress 2}} Grenade that explodes immediately after it is spawned.
{{todo|also exists in hlsdm, all hl2 games}}
{{note|Default model: <code>models/weapons/w_grenade.mdl</code>}}
{{note|Default model: <code>models/weapons/w_grenade.mdl</code>}}
{{note|Default touch behaviour [https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/shared/basegrenade_shared.cpp#L352 CBaseGrenade::BounceTouch]}}
{{note|Default touch behaviour [https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/shared/basegrenade_shared.cpp#L352 CBaseGrenade::BounceTouch]}}

Revision as of 17:47, 3 August 2024

Icon-NotInFGD.png
This entity is not in the FGD by default.
See below for instructions on making it available.
C++ Class hierarchy
CBaseGrenadeTimed
CBaseGrenade
CBaseProjectile
CBaseAnimating
CBaseEntity
C++ basegrenade_timed.cpp

npc_handgrenade is an entity available in Half-Life: Source Half-Life: Source, Half-Life 2 Half-Life 2, Portal series Portal series, and Team Fortress 2 Team Fortress 2.

Warning.pngWarning:
  • The {{{game}}} parameter is inconsistent with the name defined by the {{hls}} template. This can most likely be fixed by setting the value of the {{{game}}} parameter to Half-Life: Source.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

Grenade that explodes immediately after it is spawned.

Todo: also exists in hlsdm, all hl2 games
Note.pngNote:Default model: models/weapons/w_grenade.mdl
Note.pngNote:Default touch behaviour CBaseGrenade::BounceTouch
Note.pngNote:Default think CBaseGrenade::TumbleThink

See Also