Grenade mp5

From Valve Developer Community
Jump to navigation Jump to search
Info.png
This entity is not in the FGD by default.
It should not be put directly in a map because it wasn't supposed to be used via Hammer Hammer by the developers. You still can use it for your map or mod, just add required code to the FGD.
Grenade mp5 2012alt.png

grenade_mp5 is a point entity available in Black Mesa Black Mesa (the mod version). The grenade entity that used by weapon_mp5. It is a grenade launched from the MP5 grenade launcher that explodes instantly upon impact with a surface. Most inputs and outputs are same as CBaseAnimating.

Represented by class CGrenade_MP5.

Icon-Important.pngImportant:In Black Mesa Black Mesa Steam versions, this grenade type represented by grenade_mp5_contact entity. See the page for information about this version of the grenade.

Inputs

SetTimer <float>
Sets amount of time before detonate.
Detonate <void>
Detonates this entity.
SetThrower <void>
Fired by this entity when launched. Doesn't do anything.

Outputs

OnDetonate <void>
Fired by this entity when detonated.

Dedicated ConVars

Cvar/CommandParameters or default valueDescriptorEffect
sk_plr_dmg_grenade_mp5100FloatAmount of damage from player's grenade.
sk_npc_dmg_grenade_mp50FloatAmount of damage from NPC's grenade. The value is 0 because npc_human_commander don't use this entity in this version of the game.