Fix stun baton throwing and visual effect (#18777)

This commit is contained in:
Slava0135
2023-08-08 23:19:31 +03:00
committed by GitHub
parent 2714101ad7
commit 375f487d94
12 changed files with 117 additions and 75 deletions

View File

@@ -1,19 +1,7 @@
using Robust.Shared.Audio;
namespace Content.Shared.Damage.Events;
/// <summary>
/// Attempting to apply stamina damage on a melee hit to an entity.
/// Attempting to apply stamina damage on entity.
/// </summary>
[ByRefEvent]
public struct StaminaDamageOnHitAttemptEvent
{
public bool Cancelled;
public SoundSpecifier? HitSoundOverride;
public StaminaDamageOnHitAttemptEvent(bool cancelled, SoundSpecifier? hitSoundOverride)
{
Cancelled = cancelled;
HitSoundOverride = hitSoundOverride;
}
}
public record struct StaminaDamageOnHitAttemptEvent(bool Cancelled);