Files
tbd-station-14/Content.Shared/_Offbrand/StatusEffects/GunBackfireStatusEffectComponent.cs
Janet Blackquill 5fa17e22a1 De-MPL Offbrand
2025-09-27 22:43:24 -04:00

21 lines
551 B
C#

using Robust.Shared.Audio;
namespace Content.Shared._Offbrand.StatusEffects;
[RegisterComponent]
[Access(typeof(GunBackfireStatusEffectSystem))]
public sealed partial class GunBackfireStatusEffectComponent : Component
{
[DataField]
public float Probability = 0.2f;
[DataField]
public TimeSpan BackfireStunTime = TimeSpan.FromSeconds(3);
[DataField]
public SoundSpecifier BackfireSound = new SoundPathSpecifier("/Audio/Weapons/Guns/Gunshots/bang.ogg");
[DataField]
public LocId BackfireMessage = "backfired-gun";
}