fish-station/Content.Shared/Weapons/Hitscan/Components/HitscanBasicDamageComponent.cs
2025-12-26 17:44:36 +03:00

31 lines
902 B
C#

using Content.Shared.Damage;
using Robust.Shared.GameStates;
namespace Content.Shared.Weapons.Hitscan.Components;
/// <summary>
/// Hitscan entities that have this component will do the damage specified to hit targets (Who didn't reflect it).
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class HitscanBasicDamageComponent : Component
{
/// <summary>
/// How much damage the hitscan weapon will do when hitting a target.
/// </summary>
[DataField(required: true)]
public DamageSpecifier Damage;
// Starlight start
/// <summary>
/// Should damage done by this hitscan ignore resistances?
/// </summary>
[DataField]
public bool IgnoreResistances = false;
/// <summary>
/// How much armor should this projectile ignore?
/// </summary>
[DataField]
public float ArmorPenetration = 0f;
// Starlight end
}