Make melee damage not go through MeleeHitEvent.cs (#16881)

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
Nemanja
2023-05-28 03:03:25 -04:00
committed by GitHub
parent 0053ddb8f8
commit dd044f4a91
9 changed files with 73 additions and 48 deletions

View File

@@ -0,0 +1,17 @@
using Content.Shared.Damage;
namespace Content.Shared.Weapons.Melee.Components;
/// <summary>
/// This is used for adding in bonus damage via <see cref="GetMeleeWeaponEvent"/>
/// This exists only for event relays and doing entity shenanigans.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed class BonusMeleeDamageComponent : Component
{
/// <summary>
/// The damage that will be applied.
/// </summary>
[DataField("bonusDamage", required: true)]
public DamageSpecifier BonusDamage = default!;
}