mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 22:42:26 +01:00
Updated the sound system (#18724)
* sdaf * sdaf * sdfa * sadf * sfda * gfd * reduce thrusters volume * sdafsadsdaf * sdfa * Reduced some sound ranges and made some/more not ignore walls for loops * health analyzers too * ivdrip adjustment * most tools now use play_tool_sound to have the sound played, reduced range for it
This commit is contained in:
@@ -244,7 +244,7 @@
|
||||
return
|
||||
// Wrench Open
|
||||
else
|
||||
playsound(get_turf(src), attacking_item.usesound, 50, TRUE)
|
||||
attacking_item.play_tool_sound(get_turf(src), 50)
|
||||
if(density)
|
||||
user.visible_message(SPAN_NOTICE("\The [user] wrenches \the [src] open."), SPAN_NOTICE("You wrench \the [src] open."))
|
||||
density = FALSE
|
||||
@@ -260,7 +260,7 @@
|
||||
if(health >= maxhealth)
|
||||
to_chat(user, SPAN_WARNING("\The [src] does not need repairs."))
|
||||
return
|
||||
playsound(get_turf(src), attacking_item.usesound, 50, TRUE)
|
||||
attacking_item.play_tool_sound(get_turf(src), 50)
|
||||
if(do_after(user, 20, src))
|
||||
if(health >= maxhealth)
|
||||
return
|
||||
@@ -274,7 +274,7 @@
|
||||
to_chat(user, SPAN_NOTICE("You need to wrench \the [src] from back into place first."))
|
||||
return
|
||||
user.visible_message(anchored ? "<span class='notice'>\The [user] begins unscrewing \the [src].</span>" : "<span class='notice'>\The [user] begins fastening \the [src].</span>" )
|
||||
playsound(get_turf(src), attacking_item.usesound, 75, TRUE)
|
||||
attacking_item.play_tool_sound(get_turf(src), 75)
|
||||
if(do_after(user, 10, src) && density)
|
||||
to_chat(user, (anchored ? "<span class='notice'>You have unfastened \the [src] from the floor.</span>" : "<span class='notice'>You have fastened \the [src] to the floor.</span>"))
|
||||
anchored = !anchored
|
||||
|
||||
Reference in New Issue
Block a user