npc_grenade_frag

From Valve Developer Community
Jump to navigation Jump to search
Class hierarchy
CGrenadeFrag
CBaseGrenade
CBaseProjectile
CBaseAnimating
CBaseEntity
grenade_frag.cpp

npc_grenade_frag is a model entity available in Half-Life 2 series Half-Life 2 series. It is the about-to-explode version of weapon_frag created when thrown.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Inputs

SetTimer <floatRedirectInput/float>
This input makes the grenade live, and specifies how many seconds before it explodes.
Note.pngNote:Default FGD mistakenly gave this BaseNPC Keyvalues/Inputs/Outputs

Dedicated Console Variables

sk_plr_dmg_fraggrenade <int>
Damage of grenades thrown by the player.
sk_npc_dmg_fraggrenade <int>
Damage of grenades thrown by NPCs.
sk_fraggrenade_radius <int>
Explosion size (default 250).