Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Update SharedProjectileSystem.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vonsant authored Apr 30, 2024
1 parent 0df06d7 commit e1a5345
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Content.Shared/Projectiles/SharedProjectileSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}


/// <summary>
/// Raised when an entity is just about to be hit with a projectile but can reflect it
/// </summary>
Expand Down

0 comments on commit e1a5345

Please sign in to comment.