HitScanReflectAttempt.cs 437 B

1234567891011
  1. using System.Numerics;
  2. using Content.Shared.Weapons.Reflect;
  3. namespace Content.Shared.Weapons.Ranged.Events;
  4. /// <summary>
  5. /// Shot may be reflected by setting <see cref="Reflected"/> to true
  6. /// and changing <see cref="Direction"/> where shot will go next
  7. /// </summary>
  8. [ByRefEvent]
  9. public record struct HitScanReflectAttemptEvent(EntityUid? Shooter, EntityUid SourceItem, ReflectType Reflective, Vector2 Direction, bool Reflected);