diff --git a/code/datums/looping_sounds/machinery_sounds.dm b/code/datums/looping_sounds/machinery_sounds.dm index 9e33a124e3b..92f78074c98 100644 --- a/code/datums/looping_sounds/machinery_sounds.dm +++ b/code/datums/looping_sounds/machinery_sounds.dm @@ -206,3 +206,19 @@ end_volume = 60 extra_range = MEDIUM_RANGE_SOUND_EXTRARANGE falloff_exponent = 4 + +/datum/looping_sound/cryo_cell + mid_sounds = list( + 'sound/machines/cryo/cryo_1.ogg', + 'sound/machines/cryo/cryo_2.ogg', + 'sound/machines/cryo/cryo_3.ogg', + 'sound/machines/cryo/cryo_4.ogg', + 'sound/machines/cryo/cryo_5.ogg', + 'sound/machines/cryo/cryo_6.ogg', + 'sound/machines/cryo/cryo_7.ogg', + 'sound/machines/cryo/cryo_8.ogg', + 'sound/machines/cryo/cryo_9.ogg', + 'sound/machines/cryo/cryo_10.ogg', + ) + mid_length = 5 SECONDS + volume = 50 diff --git a/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm b/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm index 97b9741701f..65a587578e5 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm @@ -101,6 +101,8 @@ var/datum/gas_machine_connector/internal_connector /// Check if the machine has been turned on var/on = FALSE + /// The sound loop that can be heard when the generator is processing. + var/datum/looping_sound/cryo_cell/soundloop /datum/armor/unary_cryo_cell energy = 100 @@ -119,6 +121,7 @@ occupant_vis = new(mapload, src) vis_contents += occupant_vis internal_connector = new(loc, src, dir, CELL_VOLUME * 0.5) + soundloop = new(src) register_context() @@ -130,6 +133,7 @@ QDEL_NULL(radio) QDEL_NULL(beaker) QDEL_NULL(internal_connector) + QDEL_NULL(soundloop) return ..() @@ -378,10 +382,14 @@ /obj/machinery/cryo_cell/begin_processing() . = ..() SSair.start_processing_machine(src) + if(soundloop) + soundloop.start() /obj/machinery/cryo_cell/end_processing() . = ..() SSair.stop_processing_machine(src) + if(soundloop) + soundloop.stop() /obj/machinery/cryo_cell/on_set_is_operational(old_value) //Turned off diff --git a/sound/attributions.txt b/sound/attributions.txt index 22430ed3118..bd2e408c6c5 100644 --- a/sound/attributions.txt +++ b/sound/attributions.txt @@ -214,4 +214,7 @@ sound\items\weapons\hammer_death_scream.ogg - Undefeatablesos' scream recorded b sound/machines/sink-faucet.ogg -- https://freesound.org/people/FOSSarts/sounds/740086/ -- by FOSSarts (CC0) +cryo_1.ogg, cryo_2.ogg, cryo_3.ogg, cryo_4.ogg, cryo_5.ogg, cryo_6.ogg, cryo_7.ogg, cryo_8.ogg, cryo_9.ogg, cryo_10.ogg: +converted to OGG / split apart (but is otherwise unchanged) -- original from https://freesound.org/people/DudeAwesome/sounds/386023/ by DudeAwesome -- License: CC BY 4.0 + sound/items/dice_roll.ogg -- https://freesound.org/people/Crovic/sounds/661935/ -- by Crovic (CC0) diff --git a/sound/machines/cryo/cryo_1.ogg b/sound/machines/cryo/cryo_1.ogg new file mode 100644 index 00000000000..daad20b1f49 Binary files /dev/null and b/sound/machines/cryo/cryo_1.ogg differ diff --git a/sound/machines/cryo/cryo_10.ogg b/sound/machines/cryo/cryo_10.ogg new file mode 100644 index 00000000000..eedc518222f Binary files /dev/null and b/sound/machines/cryo/cryo_10.ogg differ diff --git a/sound/machines/cryo/cryo_2.ogg b/sound/machines/cryo/cryo_2.ogg new file mode 100644 index 00000000000..7375eff09eb Binary files /dev/null and b/sound/machines/cryo/cryo_2.ogg differ diff --git a/sound/machines/cryo/cryo_3.ogg b/sound/machines/cryo/cryo_3.ogg new file mode 100644 index 00000000000..4cbb033daff Binary files /dev/null and b/sound/machines/cryo/cryo_3.ogg differ diff --git a/sound/machines/cryo/cryo_4.ogg b/sound/machines/cryo/cryo_4.ogg new file mode 100644 index 00000000000..6dff7c7a1c1 Binary files /dev/null and b/sound/machines/cryo/cryo_4.ogg differ diff --git a/sound/machines/cryo/cryo_5.ogg b/sound/machines/cryo/cryo_5.ogg new file mode 100644 index 00000000000..ff11f6d173d Binary files /dev/null and b/sound/machines/cryo/cryo_5.ogg differ diff --git a/sound/machines/cryo/cryo_6.ogg b/sound/machines/cryo/cryo_6.ogg new file mode 100644 index 00000000000..575b727958b Binary files /dev/null and b/sound/machines/cryo/cryo_6.ogg differ diff --git a/sound/machines/cryo/cryo_7.ogg b/sound/machines/cryo/cryo_7.ogg new file mode 100644 index 00000000000..f6fcb2bd0e3 Binary files /dev/null and b/sound/machines/cryo/cryo_7.ogg differ diff --git a/sound/machines/cryo/cryo_8.ogg b/sound/machines/cryo/cryo_8.ogg new file mode 100644 index 00000000000..2884ffa5bd2 Binary files /dev/null and b/sound/machines/cryo/cryo_8.ogg differ diff --git a/sound/machines/cryo/cryo_9.ogg b/sound/machines/cryo/cryo_9.ogg new file mode 100644 index 00000000000..c650837ed8b Binary files /dev/null and b/sound/machines/cryo/cryo_9.ogg differ