Feature: Bang kitchen trays with rolling pin just like riot shield + baton

The public demands it!!
This commit is contained in:
GauHelldragon
2013-01-14 05:49:39 -08:00
parent 45f7783b6d
commit b093f04310

View File

@@ -210,6 +210,16 @@
return
return
/obj/item/weapon/tray/var/cooldown = 0 //shield bash cooldown. based on world.time
/obj/item/weapon/tray/attackby(obj/item/weapon/W as obj, mob/user as mob)
if(istype(W, /obj/item/weapon/kitchen/rollingpin))
if(cooldown < world.time - 25)
user.visible_message("<span class='warning'>[user] bashes [src] with [W]!</span>")
playsound(user.loc, 'sound/effects/shieldbash.ogg', 50, 1)
cooldown = world.time
else
..()
/*
===============~~~~~================================~~~~~====================