Sound Additions + Tweaks

Changes listed below:
* Makes Death Sounds mutable on their own audio channel.
* Makes Ear Ringing use the HUD Channel for sounds

Additions:
* [Adds On Fire effect](https://streamable.com/c1fxeo)
* Adds Stunned effect(https://streamable.com/v2if0s)
* [Adds SMES humming based on power usage in/out. Affected by walls, will only play if in LOS and visible.](https://streamable.com/z41x90)
* [Adds Atmos Alerts making a noise on the monitor](https://streamable.com/uhegq6)
* [Tcomms + PDA servers hum when powered and active, also respects walls/LOS](https://streamable.com/vb08x1)
* [Fridges hum quietly while powered](https://streamable.com/c3zsz7)
* [Point Defense turrets now make a sound audible from inside the station when firing, to add more spice to meteor waves.](https://streamable.com/bf8mwl)
* Shield Generators now hum when active.
This commit is contained in:
Rykka Stormheart
2023-06-15 12:27:23 -07:00
parent d4c5742d6c
commit 1de51fb4b8
50 changed files with 304 additions and 20 deletions

View File

@@ -86,9 +86,9 @@
. += emissive_appearance(overlay_icon, icon_state_screensaver)
set_light(0)
return add_overlay(.)
set_light(light_strength)
if(active_program)
var/program_state = active_program.program_icon_state ? active_program.program_icon_state : icon_state_menu
. += mutable_appearance(overlay_icon, program_state)
@@ -98,7 +98,7 @@
else
. += mutable_appearance(overlay_icon, icon_state_menu)
. += emissive_appearance(overlay_icon, icon_state_menu)
return add_overlay(.)
/obj/item/modular_computer/proc/turn_on(var/mob/user)
@@ -119,6 +119,7 @@
else
to_chat(user, "You press the power button and start up \the [src]")
enable_computer(user)
playsound(src, 'modular_chomp/sound/machines/console_power_on.ogg', 60, 1, volume_channel = VOLUME_CHANNEL_MACHINERY)
else // Unpowered
if(issynth)
@@ -297,4 +298,4 @@
if(hard_drive)
. = hard_drive.find_file_by_uid(uid)
if(portable_drive && !.)
. = portable_drive.find_file_by_uid(uid)
. = portable_drive.find_file_by_uid(uid)