@@ -52,7 +52,7 @@ public sealed class ExpendableLightSystem : VisualizerSystem<ExpendableLightComp
|
||||
case ExpendableLightState.Lit:
|
||||
_audioSystem.Stop(comp.PlayingStream);
|
||||
comp.PlayingStream = _audioSystem.PlayPvs(
|
||||
comp.LoopedSound, uid, SharedExpendableLightComponent.LoopedSoundParams)?.Entity;
|
||||
comp.LoopedSound, uid)?.Entity;
|
||||
|
||||
if (args.Sprite.LayerMapTryGet(ExpendableLightVisualLayers.Overlay, out var layerIdx, true))
|
||||
{
|
||||
|
||||
@@ -7,7 +7,6 @@ namespace Content.Shared.Light.Components;
|
||||
[NetworkedComponent]
|
||||
public abstract partial class SharedExpendableLightComponent : Component
|
||||
{
|
||||
public static readonly AudioParams LoopedSoundParams = new(0, 1, 62.5f, 1, 1, true, 0.3f);
|
||||
|
||||
[ViewVariables(VVAccess.ReadOnly)]
|
||||
public ExpendableLightState CurrentState { get; set; }
|
||||
|
||||
@@ -20,7 +20,13 @@
|
||||
fadeOutBehaviourID: fade_out
|
||||
litSound:
|
||||
path: /Audio/Items/Flare/flare_on.ogg
|
||||
loopedSound: /Audio/Items/Flare/flare_burn.ogg
|
||||
loopedSound:
|
||||
path: /Audio/Items/Flare/flare_burn.ogg
|
||||
params:
|
||||
loop: true
|
||||
volume: -10
|
||||
maxDistance: 5
|
||||
|
||||
- type: Sprite
|
||||
sprite: Objects/Misc/flare.rsi
|
||||
layers:
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
components:
|
||||
- type: PointLight
|
||||
radius: 8
|
||||
energy: 25
|
||||
energy: 10
|
||||
color: "#daa3fd"
|
||||
- type: TriggerArtifact
|
||||
- type: FlashOnTrigger
|
||||
|
||||
Reference in New Issue
Block a user