Makes flares quieter (#27521)

* light

* flares quieter
This commit is contained in:
T-Stalker
2024-04-30 03:49:35 -03:00
committed by GitHub
parent a7bf9583dd
commit d9d36b050a
4 changed files with 9 additions and 4 deletions

View File

@@ -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))
{

View File

@@ -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; }

View File

@@ -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:

View File

@@ -109,7 +109,7 @@
components:
- type: PointLight
radius: 8
energy: 25
energy: 10
color: "#daa3fd"
- type: TriggerArtifact
- type: FlashOnTrigger