CatStation/Content.Shared/Trigger/Components/Effects/ScramOnTriggerComponent.cs
roryflowers 86e491312a
increase scram implant radius to useful range (#45029)
* increase scram implant radius to useful range

* code review

---------

Co-authored-by: Rory Flowers <roryflowers@github>
Co-authored-by: Pok245 <113675512+Pok27@users.noreply.github.com>
2026-09-23 15:09:02 +00: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 (15f, 50f);
/// <summary>
/// the sound to play when teleporting.
/// </summary>
[DataField, AutoNetworkedField]
public SoundSpecifier TeleportSound = new SoundPathSpecifier("/Audio/Effects/teleport_arrival.ogg");
}