Makes the shotgun go off if it's modified while loaded.

This commit is contained in:
ForFoxSake
2016-12-09 13:22:04 +00:00
parent 8f74526064
commit 3e0af860e9

View File

@@ -90,10 +90,11 @@
if(istype(A, /obj/item/weapon/circular_saw) || istype(A, /obj/item/weapon/melee/energy) || istype(A, /obj/item/weapon/pickaxe/plasmacutter)) if(istype(A, /obj/item/weapon/circular_saw) || istype(A, /obj/item/weapon/melee/energy) || istype(A, /obj/item/weapon/pickaxe/plasmacutter))
user << "<span class='notice'>You begin to shorten the barrel of \the [src].</span>" user << "<span class='notice'>You begin to shorten the barrel of \the [src].</span>"
if(loaded.len) if(loaded.len)
for(var/i in 1 to max_shells) var/burstsetting = burst
afterattack(user, user) //will this work? //it will. we call it twice, for twice the FUN burst = 2
playsound(user, fire_sound, 50, 1)
user.visible_message("<span class='danger'>The shotgun goes off!</span>", "<span class='danger'>The shotgun goes off in your face!</span>") user.visible_message("<span class='danger'>The shotgun goes off!</span>", "<span class='danger'>The shotgun goes off in your face!</span>")
Fire_userless(user)
burst = burstsetting
return return
if(do_after(user, 30)) //SHIT IS STEALTHY EYYYYY if(do_after(user, 30)) //SHIT IS STEALTHY EYYYYY
icon_state = "sawnshotgun" icon_state = "sawnshotgun"