@@ -1,27 +1,27 @@
|
||||
using Content.Shared.Sound;
|
||||
using Content.Shared.Timing;
|
||||
|
||||
namespace Content.Server.Stunnable.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
[RegisterComponent, Access(typeof(StunbatonSystem))]
|
||||
public sealed class StunbatonComponent : Component
|
||||
{
|
||||
public bool Activated = false;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("paralyzeChanceNoSlowdown")]
|
||||
public float ParalyzeChanceNoSlowdown { get; set; } = 0.35f;
|
||||
/// <summary>
|
||||
/// What the <see cref="UseDelayComponent"/> is when the stun baton is active.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("activeCooldown")]
|
||||
public TimeSpan ActiveDelay = TimeSpan.FromSeconds(4);
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("paralyzeChanceWithSlowdown")]
|
||||
public float ParalyzeChanceWithSlowdown { get; set; } = 0.85f;
|
||||
/// <summary>
|
||||
/// Store what the <see cref="UseDelayComponent"/> was before being activated.
|
||||
/// </summary>
|
||||
public TimeSpan? OldDelay;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("paralyzeTime")]
|
||||
public float ParalyzeTime { get; set; } = 10f;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("slowdownTime")]
|
||||
public float SlowdownTime { get; set; } = 5f;
|
||||
public float ParalyzeTime { get; set; } = 5f;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("energyPerUse")]
|
||||
|
||||
Reference in New Issue
Block a user