GORILLA Gauntlets (#23012)

* GORILLA gauntlets

* oh shit this too
This commit is contained in:
Nemanja
2023-12-27 22:11:13 -05:00
committed by GitHub
parent f2379040f2
commit 9bd03824ac
22 changed files with 542 additions and 46 deletions

View File

@@ -1,3 +1,4 @@
using System.Numerics;
using Content.Shared.Damage;
using Content.Shared.FixedPoint;
using Robust.Shared.Audio;
@@ -50,6 +51,12 @@ public sealed class MeleeHitEvent : HandledEntityEventArgs
/// </summary>
public readonly EntityUid Weapon;
/// <summary>
/// The direction of the attack.
/// If null, it was a click-attack.
/// </summary>
public readonly Vector2? Direction;
/// <summary>
/// Check if this is true before attempting to do something during a melee attack other than changing/adding bonus damage. <br/>
/// For example, do not spend charges unless <see cref="IsHit"/> equals true.
@@ -59,12 +66,13 @@ public sealed class MeleeHitEvent : HandledEntityEventArgs
/// </remarks>
public bool IsHit = true;
public MeleeHitEvent(List<EntityUid> hitEntities, EntityUid user, EntityUid weapon, DamageSpecifier baseDamage)
public MeleeHitEvent(List<EntityUid> hitEntities, EntityUid user, EntityUid weapon, DamageSpecifier baseDamage, Vector2? direction)
{
HitEntities = hitEntities;
User = user;
Weapon = weapon;
BaseDamage = baseDamage;
Direction = direction;
}
}