item_grubnugget

From Valve Developer Community
Jump to navigation Jump to search
Info.png
This entity is not in the FGD by default.
See below for instructions on making it available.

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

Class hierarchy
CGrubNugget
CItem
CBaseAnimating
CBaseEntity
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