diff --git a/code/modules/projectiles/guns/ballistic/minigun.dm b/code/modules/projectiles/guns/ballistic/minigun.dm index 11c740f869c5..2559f6567a91 100644 --- a/code/modules/projectiles/guns/ballistic/minigun.dm +++ b/code/modules/projectiles/guns/ballistic/minigun.dm @@ -113,15 +113,17 @@ slot_flags = null w_class = WEIGHT_CLASS_HUGE materials = list() - burst_size = 3 + burst_size = 5 + var/select = TRUE automatic = FALSE fire_delay = 1 recoil = 0.5 - spread = 34 + spread = 30 fire_sound_volume = 60 weapon_weight = WEAPON_HEAVY fire_sound = 'sound/weapons/gunshot.ogg' mag_type = /obj/item/ammo_box/magazine/internal/minigunosprey + actions_types = list(/datum/action/item_action/toggle_firemode) tac_reloads = FALSE casing_ejector = FALSE item_flags = NEEDS_PERMIT | SLOWS_WHILE_IN_HAND @@ -172,3 +174,21 @@ /obj/item/gun/ballistic/minigunosprey/dropped(mob/living/user) . = ..() ammo_pack.attach_gun(user) + +/obj/item/gun/ballistic/minigunosprey/ui_action_click(mob/user, actiontype) + if(istype(actiontype, /datum/action/item_action/toggle_firemode)) + burst_select() + . = ..() + +/obj/item/gun/ballistic/minigunosprey/proc/burst_select() + var/mob/living/carbon/user = usr + if(!select) + select = TRUE + burst_size = initial(burst_size) + to_chat(user, span_notice("You switch to [burst_size]-rnd burst.")) + else + select = FALSE + burst_size = 7 + to_chat(user, span_notice("You switch to [burst_size]-rnd burst. BRRRRRRRT.")) + playsound(user, 'sound/weapons/empty.ogg', 100, TRUE) + return