Files
tbd-station-14/Content.Shared/Audio/SoundWhileAliveComponent.cs
GreaseMonk da618d791a Add Ability to stop sound when MobState is Dead (#26905)
* Add stopsWhenEntityDead to sound components

* Convert component

* Review

* Fix dupe sub

---------

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
2024-04-14 13:12:38 +10:00

11 lines
377 B
C#

using Content.Shared.Sound.Components;
using Robust.Shared.GameStates;
namespace Content.Shared.Audio;
/// <summary>
/// Toggles <see cref="AmbientSoundComponent"/> and <see cref="SpamEmitSoundComponent"/> off when this entity's MobState isn't Alive.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class SoundWhileAliveComponent : Component;