This article's documentation is for anything that uses the Source engine. Click here for more information.

Grenade: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(-added class hierarchy, cleanup)
No edit summary
 
(7 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{TabsBar|main=Grenade}}
{{stub}}
{{stub}}
{{CD|CBaseGrenade}}
{{CD|CBaseGrenade|base=CBaseProjectile|file1=basegrenade_shared.cpp}}
{{entity|type=e0|grenade}} It serves as the basis for Grenades in all source games.
{{CD|CBaseGrenade|game={{l4ds|4}}}}
{{this is a|model entity|name=grenade}} It serves as the basis for grenades in all Source games.


{{note|If you want to add a frag grenade pickup to your level, you may want to use [[weapon_frag]]}}
{{note|If you want to add a frag grenade pickup to your level, you may want to use [[weapon_frag]]. If you want the actual exploding grenade entity, you may be looking for [[npc_grenade_frag]]}}

Latest revision as of 05:01, 27 May 2025

Source Engine ( General | Half-Life: Source | Black Mesa )
edit

Stub

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

C++ Class hierarchy
CBaseGrenade
CBaseProjectile
CBaseAnimating
CBaseEntity
C++ basegrenade_shared.cpp
C++ Class hierarchy
Left 4 Dead seriesLeft 4 Dead series Left 4 Dead series
CBaseGrenade
CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity

grenade is a model entity available in all Source Source games. It serves as the basis for grenades in all Source games.

Note.pngNote:If you want to add a frag grenade pickup to your level, you may want to use weapon_frag. If you want the actual exploding grenade entity, you may be looking for npc_grenade_frag