Npc handgrenade: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(try harding removing stub)
Line 1: Line 1:
{{stub}}
{{Ent not in fgd}}
{{Ent not in fgd}}
{{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.
{{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 think [https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/shared/basegrenade_shared.cpp#L453 CBaseGrenade::TumbleThink]}}
 
== See Also ==
* {{ent|grenade}}

Revision as of 14:30, 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.

Note.pngNote:Default model: models/weapons/w_grenade.mdl
Note.pngNote:Default touch behaviour CBaseGrenade::BounceTouch
Note.pngNote:Default think CBaseGrenade::TumbleThink

See Also