Files
crystall-punk-14/Content.Server/Stunnable/Components/StunbatonComponent.cs

30 lines
1.0 KiB
C#
Raw Normal View History

2022-07-06 18:06:12 +10:00
using Content.Server.Stunnable.Systems;
using Content.Shared.Timing;
2022-07-29 14:13:12 +12:00
using Robust.Shared.Audio;
2020-05-13 20:21:03 +02:00
2021-06-09 22:19:39 +02:00
namespace Content.Server.Stunnable.Components
2020-05-13 20:21:03 +02:00
{
[RegisterComponent, Access(typeof(StunbatonSystem))]
public sealed class StunbatonComponent : Component
2020-05-13 20:21:03 +02:00
{
public bool Activated = false;
2020-05-25 14:02:59 +01:00
[ViewVariables(VVAccess.ReadWrite)]
[DataField("energyPerUse")]
public float EnergyPerUse { get; set; } = 350;
[ViewVariables(VVAccess.ReadWrite)]
[DataField("onThrowStunChance")]
public float OnThrowStunChance { get; set; } = 0.20f;
[DataField("stunSound")]
public SoundSpecifier StunSound { get; set; } = new SoundPathSpecifier("/Audio/Weapons/egloves.ogg");
[DataField("sparksSound")]
public SoundSpecifier SparksSound { get; set; } = new SoundCollectionSpecifier("sparks");
[DataField("turnOnFailSound")]
public SoundSpecifier TurnOnFailSound { get; set; } = new SoundPathSpecifier("/Audio/Machines/button.ogg");
2020-05-13 20:21:03 +02:00
}
}