Grenade mp5: Difference between revisions
Jump to navigation
Jump to search
Important:In
Black Mesa Steam versions, this grenade type represented by grenade_mp5_contact entity. See the page for information about this version of the grenade.
Note:It explodes if hits skybox.
MyGamepedia (talk | contribs) (Created page with "{{ent not in fgd|nolink=1|because=it wasn't supposed to be used via {{hammer|4}} by the developers. You still can use it for your map or mod, just add required code to the FGD}} 100px|right {{code|grenade_mp5}} is a point entity available in {{bms12|4}} (the mod version). The grenade entity that used by {{ent|weapon_mp5}}. It is a grenade launched from the MP5 grenade launcher that explodes instantly upon impact with a surface. Most inputs...") |
MyGamepedia (talk | contribs) No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:grenade_mp5}} | |||
{{ent not in fgd|nolink=1|because=it wasn't supposed to be used via {{hammer|4}} by the developers. You still can use it for your map or mod, just add required code to the FGD}} | {{ent not in fgd|nolink=1|because=it wasn't supposed to be used via {{hammer|4}} by the developers. You still can use it for your map or mod, just add required code to the FGD}} | ||
[[File: | [[File:Grenade_mp5_2012alt.png|100px|right]] | ||
{{code|grenade_mp5}} is a [[ | {{code|grenade_mp5}} is a [[model entity]] available in {{bms12|4}}. The grenade entity that used by {{ent|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 <code>CGrenade_MP5</code>. | |||
{{important|In {{bms|4}} [[Steam]] versions, this grenade type represented by {{ent|grenade_mp5_contact}} entity. See the page for information about this version of the grenade.}} | {{important|In {{bms|4}} [[Steam]] versions, this grenade type represented by {{ent|grenade_mp5_contact}} entity. See the page for information about this version of the grenade.}} | ||
{{note|It explodes if hits [[skybox]].}} | |||
==Inputs== | ==Inputs== | ||
Line 18: | Line 20: | ||
{{varcom|start}} | {{varcom|start}} | ||
{{varcom|sk_plr_dmg_grenade_mp5|100|[[Float]]|Amount of damage from player's grenade.}} | {{varcom|sk_plr_dmg_grenade_mp5|100|[[Float]]|Amount of damage from player's grenade.}} | ||
{{varcom|sk_npc_dmg_grenade_mp5|0| | {{varcom|sk_npc_dmg_grenade_mp5|0|Float|Amount of damage from NPC's grenade. The value is 0 because {{ent|npc_human_commander}} don't use this entity in this version of the game.}} | ||
{{varcom|end}} | {{varcom|end}} |
Latest revision as of 12:47, 1 July 2025

grenade_mp5 is a model entity available in Black Mesa (mod). 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
.



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/Command | Parameters or default value | Descriptor | Effect |
---|---|---|---|
sk_plr_dmg_grenade_mp5 | 100 | Float | Amount of damage from player's grenade. |
sk_npc_dmg_grenade_mp5 | 0 | Float | Amount 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. |