17 lines
502 B
C#
17 lines
502 B
C#
|
|
using Robust.Shared.Audio;
|
||
|
|
|
||
|
|
namespace Content.Shared._CP14.MeleeWeapon.Components;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// allows this item to be knocked out of your hands by a successful parry
|
||
|
|
/// </summary>
|
||
|
|
[RegisterComponent]
|
||
|
|
public sealed partial class CP14MeleeParriableComponent : Component
|
||
|
|
{
|
||
|
|
[DataField]
|
||
|
|
public TimeSpan LastMeleeHit = TimeSpan.Zero;
|
||
|
|
|
||
|
|
[DataField]
|
||
|
|
public SoundSpecifier ParrySound = new SoundPathSpecifier("/Audio/_CP14/Effects/parry1.ogg", AudioParams.Default.WithVariation(0.2f));
|
||
|
|
}
|