21 lines
551 B
C#
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";
|
|
}
|