2022-07-06 18:06:12 +10:00
|
|
|
using Content.Server.Stunnable.Systems;
|
2022-06-27 17:51:38 +10:00
|
|
|
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
|
|
|
{
|
2022-06-27 17:51:38 +10:00
|
|
|
[RegisterComponent, Access(typeof(StunbatonSystem))]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class StunbatonComponent : Component
|
2020-05-13 20:21:03 +02:00
|
|
|
{
|
2021-06-05 00:20:52 -07:00
|
|
|
public bool Activated = false;
|
2020-05-25 14:02:59 +01:00
|
|
|
|
2021-06-05 00:20:52 -07:00
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
[DataField("energyPerUse")]
|
2022-04-08 17:07:30 -04:00
|
|
|
public float EnergyPerUse { get; set; } = 350;
|
2021-07-10 17:35:33 +02:00
|
|
|
|
2022-02-20 18:17:34 -06:00
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
[DataField("onThrowStunChance")]
|
|
|
|
|
public float OnThrowStunChance { get; set; } = 0.20f;
|
|
|
|
|
|
2021-07-10 17:35:33 +02:00
|
|
|
[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
|
|
|
}
|
|
|
|
|
}
|