SoundWhileAliveComponent.cs 377 B

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