Make melee damage not go through MeleeHitEvent.cs (#16881)
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
@@ -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!;
|
||||
}
|
||||
Reference in New Issue
Block a user