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

@@ -55,7 +55,7 @@
to_chat(user, "<span class='notice'>There are no screws on \the [src], it appears to be nailed together. You could probably disassemble it with just a crowbar.</span>")
return
else if(iscrowbar(O) && user.a_intent == I_HELP) //Only way to deconstruct, needs help intent
playsound(src, 'sound/items/Crowbar.ogg', 75, 1)
O.playtoolsound(src, 75)
user.visible_message("<span class='warning'>[user] starts disassembling \the [src].</span>", \
"<span class='notice'>You start disassembling \the [src].</span>")
busy = 1
@@ -73,7 +73,7 @@
return
else if(O.is_wrench(user))
anchored = !anchored
playsound(src, 'sound/items/Ratchet.ogg', 50, 1)
O.playtoolsound(src, 50)
user.visible_message("<span class='warning'>[user] [anchored ? "":"un"]anchors \the [src] [anchored ? "to":"from"] the floor.</span>", \
"<span class='notice'>You [anchored ? "":"un"]anchor the [src] [anchored ? "to":"from"] the floor.</span>")
else if(istype(O, /obj/item/weapon/pen))