Npc grenade frag: Difference between revisions
Jump to navigation
Jump to search
Note:Default FGD mistakenly gave this BaseNPC Keyvalues/Inputs/Outputs
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{CD|CGrenadeFrag|file1=grenade_frag.cpp}} | {{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. | {{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 == | == Keyvalues == | ||
Line 9: | Line 8: | ||
{{I|SetTimer|This input makes the grenade live, and specifies how many seconds before it explodes.|param=float}} | {{I|SetTimer|This input makes the grenade live, and specifies how many seconds before it explodes.|param=float}} | ||
{{Note|Default [[ | {{Note|Default [[Half-Life_2.fgd|FGD]] mistakenly gave this BaseNPC Keyvalues/Inputs/Outputs}} | ||
== Dedicated Console Variables == | == Dedicated Console Variables == |
Latest revision as of 08:20, 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.
parentname
ortarget
).
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.
