Change wide swing sprites to be that of the weapon used (#21050)

Co-authored-by: notquitehadouken <1isthisameme>
This commit is contained in:
I.K
2023-10-17 20:12:00 -05:00
committed by GitHub
parent b33b57509e
commit df81532469
53 changed files with 160 additions and 103 deletions

View File

@@ -11,6 +11,11 @@ public sealed class MeleeLungeEvent : EntityEventArgs
{
public NetEntity Entity;
/// <summary>
/// The weapon used.
/// </summary>
public NetEntity Weapon;
/// <summary>
/// Width of the attack angle.
/// </summary>
@@ -26,9 +31,10 @@ public sealed class MeleeLungeEvent : EntityEventArgs
/// </summary>
public string? Animation;
public MeleeLungeEvent(NetEntity entity, Angle angle, Vector2 localPos, string? animation)
public MeleeLungeEvent(NetEntity entity, NetEntity weapon, Angle angle, Vector2 localPos, string? animation)
{
Entity = entity;
Weapon = weapon;
Angle = angle;
LocalPos = localPos;
Animation = animation;