6
2026-01-24 12:49:55 +03:00

21 lines
711 B
C#

using System.Numerics;
using Content.Shared.Damage;
using Content.Shared.Inventory;
using Content.Shared.Weapons.Reflect;
namespace Content.Shared.Weapons.Ranged.Events;
/// <summary>
/// Shot may be reflected by setting <see cref="Reflected"/> to true
/// and changing <see cref="Direction"/> where shot will go next
/// </summary>
[ByRefEvent]
public record struct HitScanReflectAttemptEvent(EntityUid? Shooter, EntityUid SourceItem, ReflectType Reflective, Vector2 Direction, bool Reflected) : IInventoryRelayEvent
{
SlotFlags IInventoryRelayEvent.TargetSlots => SlotFlags.WITHOUT_POCKET;
}
// _Horizon
[ByRefEvent]
public record struct HitScanHitBodyEvent(Vector2 Direction, DamageSpecifier Damage);