From 74b715a832a0da56cfc161e5017846926fb9b3cd Mon Sep 17 00:00:00 2001 From: Blundir <100090741+Blundir@users.noreply.github.com> Date: Wed, 17 Jul 2024 05:42:15 +0300 Subject: [PATCH] Update smgs.dm --- code/modules/projectiles/guns/smgs.dm | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/code/modules/projectiles/guns/smgs.dm b/code/modules/projectiles/guns/smgs.dm index 1004e061410c..5b568d64ff79 100644 --- a/code/modules/projectiles/guns/smgs.dm +++ b/code/modules/projectiles/guns/smgs.dm @@ -174,6 +174,10 @@ flags_gun_features = GUN_CAN_POINTBLANK|GUN_ANTIQUE + random_spawn_chance = 10 + random_spawn_under = list( + /obj/item/attachable/attached_gun/grenade/m203, + ) /obj/item/weapon/gun/smg/mp5/set_gun_attachment_offsets() @@ -193,13 +197,6 @@ damage_mult = BASE_BULLET_DAMAGE_MULT + BULLET_DAMAGE_MULT_TIER_4 recoil_unwielded = RECOIL_AMOUNT_TIER_5 -/obj/item/weapon/gun/smg/mp5/Initialize(mapload, spawn_empty) - . = ..() - if(prob(10)) - var/obj/item/attachable/attached_gun/grenade/m203/UGL = new(src) - UGL.Attach(src) - update_attachable(UGL.slot) - /obj/item/weapon/gun/smg/mp5/tactical random_spawn_chance = 100 random_spawn_rail = list(