Files
Delta-v/Content.Shared/_ES/Sparks/Components/ESSparkOnHitComponent.cs
T
Nemanja 132b3d829d Hark, Sparks! (#491)
* Basic improvements to sparks

* Pull spark configuration out of SparkOnHit component

* Add various sparks to tasers, batons, RCD

* Add sparks back to electrocution

* Adjust new projectiles

* Tile fires on cable cuts

* That's a terrible idea, actually

* Add a custom PreventCollide system

* Make the new prevent collide component prevent collisions
2026-05-30 09:16:20 -04:00

19 lines
514 B
C#

using Content.Shared.FixedPoint;
using Robust.Shared.GameStates;
namespace Content.Shared._ES.Sparks.Components;
/// <summary>
/// An entity that sparks when damaged by something
/// </summary>
[RegisterComponent, NetworkedComponent]
[Access(typeof(ESSparksSystem))]
public sealed partial class ESSparkOnHitComponent : ESBaseSparkConfigurationComponent
{
/// <summary>
/// Amount of damage that needs to be dealt to cause sparks
/// </summary>
[DataField]
public FixedPoint2 Threshold = 1;
}