Files
wwdpublic/Content.Server/_Goobstation/Teleportation/Components/RandomTeleportComponent.cs
Spatison 2a10c02eb5 No spead merge (#475)
* Revert "[GoobPort] WIZ REAL (#465)"

This reverts commit 091a8ff433.

* fix local
2025-04-26 10:50:32 +03:00

26 lines
837 B
C#

using Robust.Shared.Audio;
namespace Content.Server.Teleportation;
/// <summary>
/// Component to store parameters for entities that teleport randomly.
/// </summary>
[RegisterComponent]
public sealed partial class RandomTeleportComponent : Component
{
/// <summary>
/// Up to how far to teleport the user
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public float TeleportRadius = 100f;
/// <summary>
/// How many times to check for a valid tile to teleport to, higher number means less teleports into walls or open space
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public int TeleportAttempts = 20;
[DataField, ViewVariables(VVAccess.ReadWrite)]
public SoundSpecifier TeleportSound = new SoundPathSpecifier("/Audio/Effects/teleport_arrival.ogg");
}