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