Adds the ability to add melee damage with some extras to attachments, also adds 1 Bayonet for the AK platform and adds melee damage to some vanilla attachments.
New Attachments: -Type 2 AKM bayonet for the AKM,Golden AKM, AK74, SVD Dragunov, RPK(requires EAC+)
Affected attachments:
-Facepunch Compensator: 250 Melee damage
-Shark Teeth Nozzle: 200 Melee damage
-King's Crown Compensator: 150 Melee damage
-Apex skin for the Winchester M1887: 400 Melee damage
-Mosin Nagant bayonet: 400 Melee damage
How to install:
1. ! This mod requires BeardLib ! 2. ! This mod requires WeaponLib ! 3. Simply put the Bayonet_attachment folder in your mod_overrides folder
How to use it (For modders): XML
<WeaponMod id="wpn_fps_upg_akm_bayonet" type="bayonet" based_on="wpn_fps_ass_l85a2_fg_medium" unit="units/mods/weapons/wpn_fps_upg_ak_reusable/wpn_fps_upg_akm_bayonet" drop="false" texture_bundle_folder="mods" is_a_unlockable="true">
<stats range="150" min_damage="45" max_damage="45" min_damage_effect="0" max_damage_effect="0" effect="poison" />
LUA
self.parts.wpn_fps_upg_ns_pis_meatgrinder.perks = {
"bayonet"
}
self.parts.wpn_fps_upg_ns_pis_meatgrinder.stats.min_damage = 25
self.parts.wpn_fps_upg_ns_pis_meatgrinder.stats.max_damage = 25
self.parts.wpn_fps_upg_ns_pis_meatgrinder.stats.range = 100
self.parts.wpn_fps_upg_ns_pis_meatgrinder.stats.bluntsound = true
How it works:
The melee code triggers with either the type of an attachment or the perk of an attachment being "bayonet"
Melee stats can be configured by having those stats in the attachment stats:
range: sets the range of the melee attack, values are in centimeters (150 = 1.5 meters)
min_damage = minimum damage of the melee attack (gets multiplied by 10, so 45 = 450 dmg)
max_damage = maximum damage of the melee attack (gets multiplied by 10)
min_damage_effect = minimum knockdown (gets multiplied by 10)
max_damage_effect = maximum knockdown (gets multiplied by 10)
bluntsound = true or false value that sets if a blunt impact sound should be used instead of a knife impact
effect = can either include "poison" or "taser" to add either effect to the melee attack.
Bugs: -None known currently
Incompatibilities:
-M.O.RE
-Probably anything else that touches melee code