Files
OldThink/Content.Server/Damage/Components/DamageOnHitComponent.cs

19 lines
518 B
C#
Raw Permalink Normal View History

2023-06-29 12:27:08 -07:00
using Content.Shared.Damage;
// Damages the held item by a set amount when it hits someone. Can be used to make melee items limited-use.
namespace Content.Server.Damage.Components;
[RegisterComponent]
public sealed partial class DamageOnHitComponent : Component
2023-06-29 12:27:08 -07:00
{
[DataField("ignoreResistances")]
[ViewVariables(VVAccess.ReadWrite)]
public bool IgnoreResistances = true;
[DataField("damage", required: true)]
[ViewVariables(VVAccess.ReadWrite)]
public DamageSpecifier Damage = default!;
}