21 lines
595 B
C#
21 lines
595 B
C#
using Content.Server.Implants;
|
|
using Robust.Shared.Audio;
|
|
|
|
namespace Content.Server.Implants.Components;
|
|
|
|
/// <summary>
|
|
/// Randomly teleports entity when triggered.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed partial class ScramImplantComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Up to how far to teleport the user
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public float TeleportRadius = 100f;
|
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public SoundSpecifier TeleportSound = new SoundPathSpecifier("/Audio/Effects/teleport_arrival.ogg");
|
|
}
|