Npc grenade frag: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
m (Classifying as model entity)  | 
				No edit summary  | 
				||
| Line 1: | Line 1: | ||
{{this is a|model entity|name=npc_grenade_frag|game=Half-Life 2  | {{CD|CGrenadeFrag|file1=grenade_frag.cpp}}  | ||
{{this is a|model entity|name=npc_grenade_frag|game=Half-Life 2 series}} It is the about-to-explode version of [[weapon_frag]] created when thrown.  | |||
== Keyvalues ==  | |||
{{KV Targetname}}  | |||
== Inputs ==  | |||
{{I|SetTimer|This input makes the grenade live, and specifies how many seconds before it explodes.|param=float}}  | |||
== Dedicated Console Variables ==  | == Dedicated Console Variables ==  | ||
;sk_plr_dmg_fraggrenade <[[int]]>  | ;sk_plr_dmg_fraggrenade <[[int]]>  | ||
| Line 9: | Line 17: | ||
;sk_fraggrenade_radius <[[int]]>  | ;sk_fraggrenade_radius <[[int]]>  | ||
: Explosion size (default 250).  | : Explosion size (default 250).  | ||
[[Category:Half-Life 2 NPCs|G]]  | [[Category:Half-Life 2 NPCs|G]]  | ||
{{immobile npc}}  | {{immobile npc}}  | ||
Revision as of 07:17, 26 May 2025
| CGrenadeFrag | 
npc_grenade_frag  is a   model entity  available in 
 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. 
parentnameortarget).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities 
Inputs
- SetTimer <float>
 - This input makes the grenade live, and specifies how many seconds before it explodes.