RPED (#12008)
* RPED * sound effect * wires must be open finished me appy slices yum yum * Update Resources/Audio/Items/attributions.yml Co-authored-by: Zonespace <41448081+Zonespace27@users.noreply.github.com> * Update attributions.yml Co-authored-by: Zonespace <41448081+Zonespace27@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using System.Threading;
|
||||
using Robust.Shared.Audio;
|
||||
|
||||
namespace Content.Server.Construction.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
public sealed class PartExchangerComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// How long it takes to exchange the parts
|
||||
/// </summary>
|
||||
[DataField("exchangeDuration")]
|
||||
public float ExchangeDuration = 3;
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not the distance check is needed.
|
||||
/// Good for BRPED.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// I fucking hate BRPED and if you ever add it
|
||||
/// i will personally kill your dog.
|
||||
/// </remarks>
|
||||
[DataField("doDistanceCheck")]
|
||||
public bool DoDistanceCheck = true;
|
||||
|
||||
[DataField("exchangeSound")]
|
||||
public SoundSpecifier ExchangeSound = new SoundPathSpecifier("/Audio/Items/rped.ogg");
|
||||
|
||||
public IPlayingAudioStream? AudioStream;
|
||||
|
||||
public CancellationTokenSource? Token;
|
||||
}
|
||||
Reference in New Issue
Block a user