mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
Makes the shotgun go off if it's modified while loaded.
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user