2024-09-28 18:09:30 +03:00
|
|
|
using Robust.Shared.Audio;
|
|
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
|
2024-09-29 11:02:39 +03:00
|
|
|
namespace Content.Server._CP14.Footprints.Components;
|
2024-09-28 18:09:30 +03:00
|
|
|
|
|
|
|
|
/// <summary>
|
2024-09-29 11:02:39 +03:00
|
|
|
/// allows you to remove cleanable decals from tiles with a short delay.
|
2024-09-28 18:09:30 +03:00
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent, Access(typeof(CP14FootprintsSystem))]
|
|
|
|
|
public sealed partial class CP14DecalCleanerComponent : Component
|
|
|
|
|
{
|
|
|
|
|
[DataField]
|
2024-09-29 11:02:39 +03:00
|
|
|
public SoundSpecifier Sound = new SoundCollectionSpecifier("CP14Broom")
|
|
|
|
|
{
|
|
|
|
|
Params = AudioParams.Default.WithVariation(0.2f),
|
|
|
|
|
};
|
2024-09-28 18:09:30 +03:00
|
|
|
|
|
|
|
|
[DataField]
|
|
|
|
|
public EntProtoId? SpawnEffect = "CP14DustEffect";
|
|
|
|
|
|
|
|
|
|
[DataField]
|
2024-09-29 11:02:39 +03:00
|
|
|
public float Range = 1.2f;
|
|
|
|
|
|
|
|
|
|
[DataField]
|
|
|
|
|
public TimeSpan Delay = TimeSpan.FromSeconds(0.75f);
|
2024-09-28 18:09:30 +03:00
|
|
|
}
|