Grenade mp5 contact: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{ent not in fgd|codeonly=1}} 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. Used <code>CBlackMesaBaseGrenade</code> as a base class. {{important|In {{bms12|4}} (the mod...")
 
No edit summary
Line 17: Line 17:


==Dedicated [[ConVars]]==
==Dedicated [[ConVars]]==
{{bms|4|nt=2}}
{{varcom|start}}
{{varcom|start}}
{{varcom|sk_detenator_mp5_airspeed|1000|[[Float]]|Grenade air speed.
{{varcom|sk_detenator_mp5_airspeed|1000|[[Float]]|Grenade air speed.
Line 27: Line 26:
{{varcom|npc_marines_detenator_mp5_airspeed|650|[[Float]]|Commander's grenade air speed.}}
{{varcom|npc_marines_detenator_mp5_airspeed|650|[[Float]]|Commander's grenade air speed.}}
{{varcom|end}}
{{varcom|end}}
<onlyinclude><!--
THIS CODE GONNA BE REMOVED AFTER THE grenade_mp5 PAGE GET READY!!!
{{bms12|4}} (the mod version)
{{varcom|start}}
{{varcom|sk_plr_dmg_grenade_mp5|100|[[Float]]|Amount of damage from player's grenade.}}
{{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.}}
{{varcom|end}}
-->

Revision as of 06:08, 7 December 2024

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 point 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.

Used CBlackMesaBaseGrenade as a base class.

Icon-Important.pngImportant:In Black Mesa (mod) Black Mesa (mod) (the mod version), this grenade type represented by grenade_mp5 entity, without _contact prefix. 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.

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.