From e1a5345a446aed88be010b7a90fe83171f537434 Mon Sep 17 00:00:00 2001 From: Kill_Me_I_Noobs <118206719+Vonsant@users.noreply.github.com> Date: Tue, 30 Apr 2024 22:40:09 +0300 Subject: [PATCH] Update SharedProjectileSystem.cs --- .../Projectiles/SharedProjectileSystem.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 ///