Tool Sound/Speed (#25529)

* Initial work on tool sounds

* Crowbars

* playtoolsound()

* aaaaaaaaaaaaaaaaaaaa

* HERE WE GO AGAIN

* Wrench

* Screwdriver.ogg REDUX, Cuffs

* drilling tools toolspeed is now a multiplier too

* Wirecutter
This commit is contained in:
jknpj
2020-02-08 12:07:00 -03:00
committed by GitHub
parent 6956c16e78
commit f6aae72618
192 changed files with 494 additions and 487 deletions

View File

@@ -156,7 +156,7 @@
/obj/structure/closet/crate/bin/attackby(var/obj/item/weapon/W, var/mob/user)
if(W.is_wrench(user) && wrenchable())
return wrenchAnchor(user)
return wrenchAnchor(user, W)
..()
/obj/structure/closet/crate/bin/wrenchable()
@@ -221,7 +221,7 @@
/obj/structure/closet/crate/secure/bin/attackby(var/obj/item/weapon/W, var/mob/user)
if(W.is_wrench(user) && wrenchable())
return wrenchAnchor(user)
return wrenchAnchor(user, W)
..()
/obj/structure/closet/crate/secure/bin/wrenchable()
@@ -609,7 +609,7 @@
else if(iswirecutter(W))
if(rigged)
to_chat(user, "<span class='notice'>You cut away the wiring.</span>")
playsound(loc, 'sound/items/Wirecutter.ogg', 100, 1)
W.playtoolsound(loc, 100)
rigged = 0
return
else if(!place(user, W))