// SPDX-FileCopyrightText: 2024 Ilya246 <57039557+Ilya246@users.noreply.github.com> // SPDX-FileCopyrightText: 2024 Piras314 // SPDX-FileCopyrightText: 2024 whateverusername0 // SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com> // SPDX-FileCopyrightText: 2025 Misandry // SPDX-FileCopyrightText: 2025 gus // // SPDX-License-Identifier: AGPL-3.0-or-later using Content.Shared.Destructible.Thresholds; using Robust.Shared.Audio; namespace Content.Server._Shitcode.Teleportation.Components; /// /// Component to store parameters for entities that teleport randomly. /// [RegisterComponent, Virtual] public partial class RandomTeleportComponent : Component { /// /// Up to how far to teleport the user in tiles. /// [DataField] public MinMax Radius = new MinMax(10, 20); /// /// How many times to try to pick the destination. Larger number means the teleport is more likely to be safe. /// [DataField] public int TeleportAttempts = 10; /// /// Will try harder to find a safe teleport. /// [DataField] public bool ForceSafeTeleport = true; [DataField] public SoundSpecifier ArrivalSound = new SoundPathSpecifier("/Audio/Effects/teleport_arrival.ogg"); [DataField] public SoundSpecifier DepartureSound = new SoundPathSpecifier("/Audio/Effects/teleport_departure.ogg"); }