using Robust.Shared.Audio; namespace Content.Shared.Sound.Components; /// /// Base sound emitter which defines most of the data fields. /// Accepts both single sounds and sound collections. /// public abstract partial class BaseEmitSoundComponent : Component { public static readonly AudioParams DefaultParams = AudioParams.Default.WithVolume(-2f); [AutoNetworkedField] [ViewVariables(VVAccess.ReadWrite)] [DataField(required: true)] public SoundSpecifier? Sound; /// /// Play the sound at the position instead of parented to the source entity. /// Useful if the entity is deleted after. /// [DataField] public bool Positional; }