]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Makes flares quieter (#27521)
authorT-Stalker <43253663+DogZeroX@users.noreply.github.com>
Tue, 30 Apr 2024 06:49:35 +0000 (03:49 -0300)
committerGitHub <noreply@github.com>
Tue, 30 Apr 2024 06:49:35 +0000 (16:49 +1000)
* light

* flares quieter

Content.Client/Light/EntitySystems/ExpendableLightSystem.cs
Content.Shared/Light/Components/SharedExpendableLightComponent.cs
Resources/Prototypes/Entities/Objects/Tools/flare.yml
Resources/Prototypes/XenoArch/Effects/normal_effects.yml

index a2a7fb2531c96402a457470c13468816c9343efa..807740673010d06cf600fab64657a7669de5978b 100644 (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))
                 {
index e40174ab78333c9fd90d9c3edf66ec8245f6b624..001794880ac909509f3dbf5cef28db2a21940421 100644 (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; }
index dbdb935b916103ed413aa78951cf2a30a20ab433..fdf531486316a3b9cf0d47bff285c6a21d736b59 100644 (file)
     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:
index fae280bfba43ca7ef3732d3733286000f82a5a0f..f2723e5369e475f504ee55a946262c8bee216b04 100644 (file)
   components:
   - type: PointLight
     radius: 8
-    energy: 25
+    energy: 10
     color: "#daa3fd"
   - type: TriggerArtifact
   - type: FlashOnTrigger