fish-station/Content.Shared/Trigger/Components/Effects/ScramOnTriggerComponent.cs
KaiserMaus 867e941747
Черипик части апстрима вручную: Аплинк (#3813)
Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
Co-authored-by: Princess Cheeseballs <66055347+Princess-Cheeseballs@users.noreply.github.com>
Co-authored-by: SnappingOpossum <snappingopossum@outlook.com>
Co-authored-by: IProduceWidgets <107586145+IProduceWidgets@users.noreply.github.com>
2026-01-29 18:02:23 +03:00

26 lines
906 B
C#

using System.Numerics;
using Robust.Shared.Audio;
using Robust.Shared.GameStates;
namespace Content.Shared.Trigger.Components.Effects;
/// <summary>
/// Randomly teleports the entity when triggered.
/// If TargetUser is true the user will be teleported instead.
/// Used for scram implants.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class ScramOnTriggerComponent : BaseXOnTriggerComponent
{
/// <summary>
/// Up to how far to teleport the entity. Represented with X as Min Radius, and Y as Max Radius
/// </summary>
[DataField, AutoNetworkedField]
public Vector2 TeleportRadius = new (10f, 15f);
/// <summary>
/// the sound to play when teleporting.
/// </summary>
[DataField, AutoNetworkedField]
public SoundSpecifier TeleportSound = new SoundPathSpecifier("/Audio/Effects/teleport_arrival.ogg");
}