2022-03-25 17:17:29 +13:00
|
|
|
using Robust.Shared.Audio;
|
2019-06-07 16:15:20 +05:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Explosion.Components
|
2019-06-07 16:15:20 +05:00
|
|
|
{
|
2022-02-08 00:42:49 -08:00
|
|
|
[RegisterComponent]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class OnUseTimerTriggerComponent : Component
|
2019-06-07 16:15:20 +05:00
|
|
|
{
|
2022-03-25 17:17:29 +13:00
|
|
|
[DataField("delay")]
|
|
|
|
|
public float Delay = 1f;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// If not null, a user can use verbs to configure the delay to one of these options.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("delayOptions")]
|
|
|
|
|
public List<float>? DelayOptions = null;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2023-03-20 19:32:28 +00:00
|
|
|
/// If not null, this timer will periodically play this sound while active.
|
2022-03-25 17:17:29 +13:00
|
|
|
/// </summary>
|
|
|
|
|
[DataField("beepSound")]
|
|
|
|
|
public SoundSpecifier? BeepSound;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Time before beeping starts. Defaults to a single beep interval. If set to zero, will emit a beep immediately after use.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("initialBeepDelay")]
|
|
|
|
|
public float? InitialBeepDelay;
|
|
|
|
|
|
|
|
|
|
[DataField("beepInterval")]
|
|
|
|
|
public float BeepInterval = 1;
|
|
|
|
|
|
2022-04-15 01:00:50 +03:00
|
|
|
/// <summary>
|
|
|
|
|
/// Should timer be started when it was stuck to another entity.
|
|
|
|
|
/// Used for C4 charges and similar behaviour.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("startOnStick")]
|
|
|
|
|
public bool StartOnStick;
|
2022-08-14 15:48:02 +10:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Allows changing the start-on-stick quality.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("canToggleStartOnStick")]
|
|
|
|
|
public bool AllowToggleStartOnStick;
|
2023-03-20 19:32:28 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether you can examine the item to see its timer or not.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("examinable")]
|
|
|
|
|
public bool Examinable = true;
|
2019-06-07 16:15:20 +05:00
|
|
|
}
|
2019-07-31 15:02:36 +02:00
|
|
|
}
|