fish-station/Content.Shared/_Starlight/Combat/Effects/Components/CyborgSparkEffectComponent.cs
Vigers Ray b52f640b5a
Порт стрельбы со старлайна (#2640)
Co-authored-by: KaiserMaus <kaiser.ratte@gmail.com>
2025-08-08 22:25:02 +03:00

29 lines
1,021 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared._Starlight.Combat.Effects.Components;
/// <summary>
/// Component for cyborgs that triggers spark effects when hit by any hitscan bullets.
/// Unlike ArmorSparkEffectComponent, this triggers on any bullet hit regardless of type or armor values.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class CyborgSparkEffectComponent : Component
{
/// <summary>
/// The prototype ID of the spark effect entity to spawn.
/// </summary>
[DataField("sparkEffectPrototype")]
public string SparkEffectPrototype = "ArmorSparkEffect";
/// <summary>
/// The sound collection to play when sparks are triggered.
/// </summary>
[DataField("ricochetSoundCollection")]
public string RicochetSoundCollection = "armor_ricochet_cyborg";
/// <summary>
/// Maximum random offset in X and Y directions for spark positioning.
/// </summary>
[DataField("maxOffset")]
public float MaxOffset = 0.3f;
}