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

28 lines
1 KiB
C#

using Content.Shared._Starlight.Combat.Effects.EntitySystems;
using Content.Shared._Starlight.Combat.Effects.Components;
using Robust.Shared.Audio;
using Robust.Shared.Audio.Systems;
using Robust.Shared.Map;
namespace Content.Server._Starlight.Combat.Effects.EntitySystems;
/// <summary>
/// Server-side implementation of the armor spark effect system.
/// </summary>
public sealed class ArmorSparkEffectSystem : SharedArmorSparkEffectSystem
{
[Dependency] private readonly SharedAudioSystem _audio = default!;
protected override void SpawnSparkEffectAt(EntityCoordinates coordinates, string effectPrototype)
{
// Spawn the spark effect entity at the specified coordinates
Spawn(effectPrototype, coordinates);
}
protected override void PlayRicochetSound(EntityCoordinates coordinates, string soundCollection)
{
// Play the ricochet sound at the specified coordinates
var soundSpec = new SoundCollectionSpecifier(soundCollection);
_audio.PlayPvs(soundSpec, coordinates);
}
}