Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
24 changes: 22 additions & 2 deletions code/modules/projectiles/guns/ballistic/minigun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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