diff --git a/Content.Shared/Projectiles/SharedProjectileSystem.cs b/Content.Shared/Projectiles/SharedProjectileSystem.cs index 70c8f9bb74b..90132882232 100644 --- a/Content.Shared/Projectiles/SharedProjectileSystem.cs +++ b/Content.Shared/Projectiles/SharedProjectileSystem.cs @@ -235,6 +235,22 @@ public ImpactEffectEvent(string prototype, NetCoordinates coordinates) } } +[Serializable, NetSerializable] +public class AfterProjectileHitEvent : EntityEventArgs +{ + public EntityUid ProjectileId { get; set; } + public EntityUid TargetId { get; set; } + public bool ShouldPenetrate { get; set; } + + public AfterProjectileHitEvent(EntityUid projectileId, EntityUid targetId, bool shouldPenetrate) + { + ProjectileId = projectileId; + TargetId = targetId; + ShouldPenetrate = shouldPenetrate; + } +} + + /// /// Raised when an entity is just about to be hit with a projectile but can reflect it ///