Confetti cannon

-Adds confetti cannon
-Adds grenade object needed to make the cannon work
-Makes the cannon printable at RnD
This commit is contained in:
Darlantan
2020-09-05 07:15:49 -04:00
parent c6862558c8
commit 09768ea90c
4 changed files with 81 additions and 0 deletions
@@ -28,4 +28,24 @@
sleep(10)
qdel(src)
return
/obj/item/weapon/grenade/confetti/party_ball //Intended to be used only with the confetti cannon.
name = "party ball"
desc = "Full of !!FUN!!"
icon = 'icons/obj/grenade_ch.dmi'
icon_state = "party_ball"
confetti_strength = 2
det_time = 1
throwforce = 0 //Confetti cannon is only fun to shoot at people if it deals no damage.
/obj/item/weapon/grenade/confetti/party_ball/detonate() //Could condense this by making the sound a variable in the parent but I'm lazy.
playsound(src.loc, 'sound/effects/confetti_ball.ogg', 50, 1, -3)
src.confetti_spread.set_up(10, 0, usr.loc)
spawn(0)
for(var/i = 1 to confetti_strength)
src.confetti_spread.start()
sleep(10)
qdel(src)
return