Grenade mp5 contact: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Classifying as model entity)
Line 1: Line 1:
{{ent not in fgd|codeonly=1}}
{{ent not in fgd|codeonly=1}}
[[File:Grenade_mp5.png|100px|right]]
[[File:Grenade_mp5.png|100px|right]]
{{this is a|point entity|name=grenade_mp5_contact|game=Black Mesa}} The grenade entity that used by {{ent|weapon_mp5}} and {{ent|npc_human_commander}}. It is a grenade launched from the MP5 grenade launcher that explodes instantly upon impact with a surface. All inputs and outputs are same as [[CBaseAnimating]].
{{this is a|model entity|name=grenade_mp5_contact|game=Black Mesa}} The grenade entity that used by {{ent|weapon_mp5}} and {{ent|npc_human_commander}}. It is a grenade launched from the MP5 grenade launcher that explodes instantly upon impact with a surface. All inputs and outputs are same as [[CBaseAnimating]].


Represented by class <code>CGrenade_MP5</code>.
Represented by class <code>CGrenade_MP5</code>.

Revision as of 05:30, 19 May 2025

Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map because it can only be configured through code.
Grenade mp5.png

grenade_mp5_contact is a model entity available in Black Mesa Black Mesa. The grenade entity that used by weapon_mp5 and npc_human_commander. It is a grenade launched from the MP5 grenade launcher that explodes instantly upon impact with a surface. All inputs and outputs are same as CBaseAnimating.

Represented by class CGrenade_MP5.

Icon-Important.pngImportant:In Black Mesa (mod) Black Mesa (mod), this grenade type represented by grenade_mp5 entity, without _contact postfix. See the page for information about this version of the grenade.
Icon-Bug.pngBug:It bounce of dynamic (not physics) objects, such as prop_dynamic. Usually happens with objects that have a dynamic collision, or objects that are in motion.
Example.


Note.pngNote:For some reason it's spinning.
Note.pngNote:It disappears if hits skybox.

Dedicated ConVars

Cvar/Command Parameters or default value Descriptor Effect
sk_detenator_mp5_airspeed 1000 Float Grenade air speed.
Icon-Bug.pngBug:Values ​​above 2002 will cause grenade to disappear at certain view angles.
sk_detenator_mp5_gravity 400 Float Gravity scale, or how much gravity will affect the grenade.
sk_detenator_mp5_plr_dmg 115 Float Amount of damage from direct hit for grenade.
sk_detenator_mp5_plr_dmg_radius 250 Float Amount of damage from indirect hit for grenade (the damage from explosion).
npc_marines_detenator_mp5_airspeed 650 Float Commander's grenade air speed.