Item grubnugget: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Classifying as model entity)
 
Line 1: Line 1:
{{ent not in fgd}}
{{ent not in fgd}}
{{this is a|point entity|name=item_grubnugget|game=Half-Life 2: Episode Two}}  
{{this is a|model entity|name=item_grubnugget|game=Half-Life 2: Episode Two}}  
{{CD|CGrubNugget|file1=1}}
{{CD|CGrubNugget|file1=1}}
It's a small yellow chunk that falls out of [[npc_antlion_grub|antlion grubs]] when they get squashed. When player is not on full health, it heals the player by 1 health point when they come close to it. If player has full health, player can pick it up and throw it just like a [[prop_physics|physics object]] but it's fragile and will break easily.
It's a small yellow chunk that falls out of [[npc_antlion_grub|antlion grubs]] when they get squashed. When player is not on full health, it heals the player by 1 health point when they come close to it. If player has full health, player can pick it up and throw it just like a [[prop_physics|physics object]] but it's fragile and will break easily.

Latest revision as of 04:32, 19 May 2025

Icon-NotInFGD.png
This entity is not in the FGD by default.
See below for instructions on making it available.

item_grubnugget is a model entity available in Half-Life 2: Episode Two Half-Life 2: Episode Two.

C++ Class hierarchy
CGrubNugget
CItem
CBaseAnimating
CBaseEntity
C++ npc_antliongrub.cpp

It's a small yellow chunk that falls out of antlion grubs when they get squashed. When player is not on full health, it heals the player by 1 health point when they come close to it. If player has full health, player can pick it up and throw it just like a physics object but it's fragile and will break easily.

Note.pngNote:This entity inherits all keyvalues, inputs and outputs from CBaseAnimating.

Console variables

sk_grubnugget_health_small <int>
Health restored by the health-nugget (Default: 1)
sk_grubnugget_health_medium <int>
Default: 4
sk_grubnugget_health_large <int>
Default: 6
sk_grubnugget_enabled <int>
Whether the grub should drop a health-nugget or not. (Default: 1)

See also