using Content.Shared.EntityEffects; using Robust.Shared.Audio; using Robust.Shared.GameStates; using Robust.Shared.Prototypes; namespace Content.Shared.Trigger.Components.Effects; /// /// Will cause a screech to happen at a location, similiar to /// If TargetUser is true then their location will be used. /// [RegisterComponent, NetworkedComponent, AutoGenerateComponentState] public sealed partial class ScreechOnTriggerComponent : BaseXOnTriggerComponent { /// /// The range of the screech's effects. /// [DataField] public float Range = 6f; /// /// Entity that will be spawned attached to the the screecher to display effects. /// [DataField] public EntProtoId? Vfx = "EffectScreech"; /// /// Sound that will be played by the screech. /// [DataField] public SoundSpecifier? ScreechSound = new SoundPathSpecifier("/Audio/Effects/Screech/changeling_screech_strong.ogg", AudioParams.Default.WithVolume(1f)); /// /// Entity effects applied to entities that heard the screech. /// [DataField] public List Effects = []; }