mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-20 06:58:55 +03:00
25 lines
679 B
C#
25 lines
679 B
C#
using Content.Shared.Damage;
|
|
using Robust.Shared.Audio;
|
|
|
|
namespace Content.Shared._White.Blocking;
|
|
|
|
[RegisterComponent]
|
|
public sealed partial class MeleeBlockComponent : Component
|
|
{
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public TimeSpan Delay = TimeSpan.FromSeconds(3.1);
|
|
|
|
[DataField]
|
|
public SoundSpecifier BlockSound = new SoundPathSpecifier("/Audio/Weapons/block_metal1.ogg")
|
|
{
|
|
Params = AudioParams.Default.WithVariation(0.25f)
|
|
};
|
|
}
|
|
|
|
public sealed class MeleeBlockAttemptEvent(EntityUid attacker, DamageSpecifier damage) : HandledEntityEventArgs
|
|
{
|
|
public EntityUid Attacker = attacker;
|
|
|
|
public DamageSpecifier Damage = damage;
|
|
}
|