mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* 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>
26 lines
906 B
C#
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");
|
|
}
|