Skip to content

Commit

Permalink
Add cryo sound effects
Browse files Browse the repository at this point in the history
  • Loading branch information
vaketola committed Jan 16, 2024
1 parent df63e85 commit 845d2de
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Content.Server/CosmaticDrift/CryoSleep/CryoSleepSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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))
{
Expand Down
4 changes: 4 additions & 0 deletions Resources/Audio/SimpleStation14/Effects/attributions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- files: ["cryostasis", "cryosleepopen"]
license: "CC-BY-SA-3.0"
copyright: "Created by Finket for SS14"
source: "https://github.com/Finket/"
Binary file not shown.
Binary file not shown.

0 comments on commit 845d2de

Please sign in to comment.