diff --git a/code/modules/cargo/blackmarket/blackmarket_items/weapons.dm b/code/modules/cargo/blackmarket/blackmarket_items/weapons.dm index 096edd5707f9..6eae1c1a1484 100644 --- a/code/modules/cargo/blackmarket/blackmarket_items/weapons.dm +++ b/code/modules/cargo/blackmarket/blackmarket_items/weapons.dm @@ -425,3 +425,14 @@ stock_min = 1 stock_max = 5 availability_prob = 10 + +/datum/blackmarket_item/weapon/skm_lmg + name = "SKM-24u Light Machinegun" + desc = "Your regular rifles not have enough oomph for you? This SKM-24 was converted with help from a 'liberated' CM-40 parts shipment into a light machinegun, ready to blow away whatever you point it at. Increased firerate makes it buck like a mule, so keep that bipod on the ground. Drums sold separately!" + item = /obj/item/gun/ballistic/automatic/hmg/skm_lmg + + price_min = 5000 + price_max = 7000 + stock_max = 2 + availability_prob = 15 + spawn_weighting = FALSE diff --git a/code/modules/projectiles/guns/ballistic/hmg.dm b/code/modules/projectiles/guns/ballistic/hmg.dm index a55a26063f5f..1c318164ee76 100644 --- a/code/modules/projectiles/guns/ballistic/hmg.dm +++ b/code/modules/projectiles/guns/ballistic/hmg.dm @@ -65,6 +65,22 @@ else retract_bipod(user=user) +/obj/item/gun/ballistic/automatic/hmg/calculate_recoil(mob/user, recoil_bonus = 0) + var/total_recoil = recoil_bonus + + if(bipod_deployed) + total_recoil += deploy_recoil_bonus + + return ..(user, total_recoil) + +/obj/item/gun/ballistic/automatic/hmg/calculate_spread(mob/user, bonus_spread) + var/total_spread = bonus_spread + + if(bipod_deployed) + total_spread += deploy_spread_bonus + + return ..(user, total_spread) + /obj/item/gun/ballistic/automatic/hmg/proc/deploy_bipod(mob/user) //we check if we can actually deploy the thing var/can_deploy = TRUE