diff --git a/Content.Server/CosmaticDrift/CryoSleep/CryoSleepSystem.cs b/Content.Server/CosmaticDrift/CryoSleep/CryoSleepSystem.cs index 9ace1995fa..4c08e34c91 100644 --- a/Content.Server/CosmaticDrift/CryoSleep/CryoSleepSystem.cs +++ b/Content.Server/CosmaticDrift/CryoSleep/CryoSleepSystem.cs @@ -21,8 +21,10 @@ using Content.Shared.StationRecords; using Content.Shared.Verbs; using Robust.Server.Containers; +using Robust.Shared.Audio; using Robust.Shared.Containers; using Robust.Shared.Enums; +using Robust.Shared.Player; namespace Content.Server.CryoSleep; @@ -72,6 +74,9 @@ private bool InsertBody(EntityUid uid, EntityUid? toInsert, CryoSleepComponent c public bool RespawnUser(EntityUid? toInsert, CryoSleepComponent component, bool force) { + // Play the cryosleep pod opening sound effect. + SoundSystem.Play("/Audio/SimpleStation14/Effects/cryosleepopen.ogg", Filter.Pvs(component.Owner), component.Owner, AudioParams.Default.WithVolume(5f)); + if (toInsert == null) return false; @@ -113,6 +118,9 @@ public void CryoStoreBody(EntityUid mindId) if (body == null) return; + // Play the cryostasis sound effect. + SoundSystem.Play("/Audio/SimpleStation14/Effects/cryostasis.ogg", Filter.Pvs(body.Value), body.Value, AudioParams.Default.WithVolume(5f)); + // Remove the record. Hopefully. foreach (var item in _inventory.GetHandOrInventoryEntities(body.Value)) { diff --git a/Resources/Audio/SimpleStation14/Effects/attributions.yml b/Resources/Audio/SimpleStation14/Effects/attributions.yml new file mode 100644 index 0000000000..a62f1b325b --- /dev/null +++ b/Resources/Audio/SimpleStation14/Effects/attributions.yml @@ -0,0 +1,4 @@ +- files: ["cryostasis", "cryosleepopen"] + license: "CC-BY-SA-3.0" + copyright: "Created by Finket for SS14" + source: "https://github.com/Finket/" \ No newline at end of file diff --git a/Resources/Audio/SimpleStation14/Effects/cryosleepopen.ogg b/Resources/Audio/SimpleStation14/Effects/cryosleepopen.ogg new file mode 100644 index 0000000000..f09a9edb26 Binary files /dev/null and b/Resources/Audio/SimpleStation14/Effects/cryosleepopen.ogg differ diff --git a/Resources/Audio/SimpleStation14/Effects/cryostasis.ogg b/Resources/Audio/SimpleStation14/Effects/cryostasis.ogg new file mode 100644 index 0000000000..2825d52519 Binary files /dev/null and b/Resources/Audio/SimpleStation14/Effects/cryostasis.ogg differ