Added in a new UPS-powered, laser shooting rifle with an integrated bayonet (One already exists in the vanilla game so I’m using that) as a built in modification. Tested it out and discovered that attempting to melee stuff with the integrated bayonet, even with 10 in all skills and 20 in all stats, results in “You swing wildly and miss” or “Your torso encumbrance throws you off balance” messages (21 Encumbrance). What exactly is causing the bayonet to be so inaccurate?
For reference, this is the vanilla “Integrated Bayonet” mod that the new rifle has, which can be seen here:
{
"id": "inter_bayonet",
"type": "GUNMOD",
"name": "integrated bayonet",
"description": "This is the bayonet integrated in the firearm.",
"weight": 1,
"volume": 1,
"price": 4000,
"to_hit": -1,
"cutting": 10,
"material": [ "steel" ],
"symbol": ":",
"color": "light_gray",
"location": "underbarrel",
"mod_targets": [ "shotgun", "rifle" ],
"dispersion_modifier": 10,
"mode_modifier": [ [ "REACH", "bayonet", 2, [ "MELEE" ] ] ],
"flags": [ "SLOW_WIELD", "IRREMOVABLE", "STAB" ]
},