Tweaks ambient sound values and improves some existing sounds (#4576)
* Updates singularity to use AmbientSound * Removed hum from light tubes and tweaked vending/bulb ambience * Adds more explosion sound effects * Moves closet open/close.ogg and adds wooden closet sound effect * Updates flashlight on/off sound * Adds HL Scientist scream collection * Tweaks APC Ambience * Minor oversight on det locker * Addressed reviews
This commit is contained in:
@@ -36,7 +36,7 @@ namespace Content.Server.Explosion
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private static readonly float LightBreakChance = 0.3f;
|
private static readonly float LightBreakChance = 0.3f;
|
||||||
private static readonly float HeavyBreakChance = 0.8f;
|
private static readonly float HeavyBreakChance = 0.8f;
|
||||||
private static SoundSpecifier _explosionSound = new SoundPathSpecifier("/Audio/Effects/explosion.ogg");
|
private static SoundSpecifier _explosionSound = new SoundCollectionSpecifier("explosion");
|
||||||
|
|
||||||
private static bool IgnoreExplosivePassable(IEntity e) => e.HasTag("ExplosivePassable");
|
private static bool IgnoreExplosivePassable(IEntity e) => e.HasTag("ExplosivePassable");
|
||||||
|
|
||||||
|
|||||||
@@ -46,9 +46,9 @@ namespace Content.Server.Light.Components
|
|||||||
|
|
||||||
[ViewVariables] protected override bool HasCell => _cellSlot.HasCell;
|
[ViewVariables] protected override bool HasCell => _cellSlot.HasCell;
|
||||||
|
|
||||||
[ViewVariables(VVAccess.ReadWrite)] [DataField("turnOnSound")] public SoundSpecifier TurnOnSound = new SoundPathSpecifier("/Audio/Items/flashlight_toggle.ogg");
|
[ViewVariables(VVAccess.ReadWrite)] [DataField("turnOnSound")] public SoundSpecifier TurnOnSound = new SoundPathSpecifier("/Audio/Items/flashlight_on.ogg");
|
||||||
[ViewVariables(VVAccess.ReadWrite)] [DataField("turnOnFailSound")] public SoundSpecifier TurnOnFailSound = new SoundPathSpecifier("/Audio/Machines/button.ogg");
|
[ViewVariables(VVAccess.ReadWrite)] [DataField("turnOnFailSound")] public SoundSpecifier TurnOnFailSound = new SoundPathSpecifier("/Audio/Machines/button.ogg");
|
||||||
[ViewVariables(VVAccess.ReadWrite)] [DataField("turnOffSound")] public SoundSpecifier TurnOffSound = new SoundPathSpecifier("/Audio/Items/flashlight_toggle.ogg");
|
[ViewVariables(VVAccess.ReadWrite)] [DataField("turnOffSound")] public SoundSpecifier TurnOffSound = new SoundPathSpecifier("/Audio/Items/flashlight_off .ogg");
|
||||||
|
|
||||||
[ComponentDependency] private readonly ItemActionsComponent? _itemActions = null;
|
[ComponentDependency] private readonly ItemActionsComponent? _itemActions = null;
|
||||||
|
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ namespace Content.Server.PDA
|
|||||||
[ViewVariables] private BoundUserInterface? UserInterface => Owner.GetUIOrNull(PDAUiKey.Key);
|
[ViewVariables] private BoundUserInterface? UserInterface => Owner.GetUIOrNull(PDAUiKey.Key);
|
||||||
|
|
||||||
[DataField("insertIdSound")] private SoundSpecifier _insertIdSound = new SoundPathSpecifier("/Audio/Weapons/Guns/MagIn/batrifle_magin.ogg");
|
[DataField("insertIdSound")] private SoundSpecifier _insertIdSound = new SoundPathSpecifier("/Audio/Weapons/Guns/MagIn/batrifle_magin.ogg");
|
||||||
[DataField("toggleFlashlightSound")] private SoundSpecifier _toggleFlashlightSound = new SoundPathSpecifier("/Audio/Items/flashlight_toggle.ogg");
|
[DataField("toggleFlashlightSound")] private SoundSpecifier _toggleFlashlightSound = new SoundPathSpecifier("/Audio/Items/flashlight_pda.ogg");
|
||||||
[DataField("ejectIdSound")] private SoundSpecifier _ejectIdSound = new SoundPathSpecifier("/Audio/Machines/id_swipe.ogg");
|
[DataField("ejectIdSound")] private SoundSpecifier _ejectIdSound = new SoundPathSpecifier("/Audio/Machines/id_swipe.ogg");
|
||||||
|
|
||||||
public PDAComponent()
|
public PDAComponent()
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ namespace Content.Server.Pointing.Components
|
|||||||
private float _chasingTime = 1;
|
private float _chasingTime = 1;
|
||||||
|
|
||||||
[DataField("explosionSound")]
|
[DataField("explosionSound")]
|
||||||
private SoundSpecifier _explosionSound = new SoundPathSpecifier("/Audio/Effects/explosion.ogg");
|
private SoundSpecifier _explosionSound = new SoundCollectionSpecifier("explosion");
|
||||||
|
|
||||||
private IEntity? RandomNearbyPlayer()
|
private IEntity? RandomNearbyPlayer()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -73,7 +73,6 @@ namespace Content.Server.Singularity.Components
|
|||||||
private IPlayingAudioStream? _playingSound;
|
private IPlayingAudioStream? _playingSound;
|
||||||
|
|
||||||
[DataField("singularityFormingSound")] private SoundSpecifier _singularityFormingSound = new SoundPathSpecifier("/Audio/Effects/singularity_form.ogg");
|
[DataField("singularityFormingSound")] private SoundSpecifier _singularityFormingSound = new SoundPathSpecifier("/Audio/Effects/singularity_form.ogg");
|
||||||
[DataField("singularitySound")] private SoundSpecifier _singularitySound = new SoundPathSpecifier("/Audio/Effects/singularity.ogg");
|
|
||||||
[DataField("singularityCollapsingSound")] private SoundSpecifier _singularityCollapsingSound = new SoundPathSpecifier("/Audio/Effects/singularity_collapse.ogg");
|
[DataField("singularityCollapsingSound")] private SoundSpecifier _singularityCollapsingSound = new SoundPathSpecifier("/Audio/Effects/singularity_collapse.ogg");
|
||||||
|
|
||||||
public override ComponentState GetComponentState(ICommonSession player)
|
public override ComponentState GetComponentState(ICommonSession player)
|
||||||
@@ -92,7 +91,6 @@ namespace Content.Server.Singularity.Components
|
|||||||
audioParams.MaxDistance = 20f;
|
audioParams.MaxDistance = 20f;
|
||||||
audioParams.Volume = 5;
|
audioParams.Volume = 5;
|
||||||
SoundSystem.Play(Filter.Pvs(Owner), _singularityFormingSound.GetSound(), Owner);
|
SoundSystem.Play(Filter.Pvs(Owner), _singularityFormingSound.GetSound(), Owner);
|
||||||
Timer.Spawn(5200, () => _playingSound = SoundSystem.Play(Filter.Pvs(Owner), _singularitySound.GetSound(), Owner, audioParams));
|
|
||||||
|
|
||||||
_singularitySystem.ChangeSingularityLevel(this, 1);
|
_singularitySystem.ChangeSingularityLevel(this, 1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,10 +75,10 @@ namespace Content.Server.Storage.Components
|
|||||||
private bool _isWeldedShut;
|
private bool _isWeldedShut;
|
||||||
|
|
||||||
[DataField("closeSound")]
|
[DataField("closeSound")]
|
||||||
private SoundSpecifier _closeSound = new SoundPathSpecifier("/Audio/Machines/closetclose.ogg");
|
private SoundSpecifier _closeSound = new SoundPathSpecifier("/Audio/Effects/closetclose.ogg");
|
||||||
|
|
||||||
[DataField("openSound")]
|
[DataField("openSound")]
|
||||||
private SoundSpecifier _openSound = new SoundPathSpecifier("/Audio/Machines/closetopen.ogg");
|
private SoundSpecifier _openSound = new SoundPathSpecifier("/Audio/Effects/closetopen.ogg");
|
||||||
|
|
||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
protected Container Contents = default!;
|
protected Container Contents = default!;
|
||||||
|
|||||||
Binary file not shown.
BIN
Resources/Audio/Effects/explosion1.ogg
Normal file
BIN
Resources/Audio/Effects/explosion1.ogg
Normal file
Binary file not shown.
BIN
Resources/Audio/Effects/explosion2.ogg
Normal file
BIN
Resources/Audio/Effects/explosion2.ogg
Normal file
Binary file not shown.
BIN
Resources/Audio/Effects/explosion3.ogg
Normal file
BIN
Resources/Audio/Effects/explosion3.ogg
Normal file
Binary file not shown.
BIN
Resources/Audio/Effects/explosion4.ogg
Normal file
BIN
Resources/Audio/Effects/explosion4.ogg
Normal file
Binary file not shown.
BIN
Resources/Audio/Effects/explosion5.ogg
Normal file
BIN
Resources/Audio/Effects/explosion5.ogg
Normal file
Binary file not shown.
BIN
Resources/Audio/Effects/explosion6.ogg
Normal file
BIN
Resources/Audio/Effects/explosion6.ogg
Normal file
Binary file not shown.
BIN
Resources/Audio/Effects/woodenclosetclose.ogg
Normal file
BIN
Resources/Audio/Effects/woodenclosetclose.ogg
Normal file
Binary file not shown.
BIN
Resources/Audio/Effects/woodenclosetopen.ogg
Normal file
BIN
Resources/Audio/Effects/woodenclosetopen.ogg
Normal file
Binary file not shown.
BIN
Resources/Audio/Items/flashlight_off.ogg
Normal file
BIN
Resources/Audio/Items/flashlight_off.ogg
Normal file
Binary file not shown.
BIN
Resources/Audio/Items/flashlight_on.ogg
Normal file
BIN
Resources/Audio/Items/flashlight_on.ogg
Normal file
Binary file not shown.
BIN
Resources/Audio/Voice/Human/Scientist/science_scream1.ogg
Normal file
BIN
Resources/Audio/Voice/Human/Scientist/science_scream1.ogg
Normal file
Binary file not shown.
BIN
Resources/Audio/Voice/Human/Scientist/science_scream2.ogg
Normal file
BIN
Resources/Audio/Voice/Human/Scientist/science_scream2.ogg
Normal file
Binary file not shown.
BIN
Resources/Audio/Voice/Human/Scientist/science_scream3.ogg
Normal file
BIN
Resources/Audio/Voice/Human/Scientist/science_scream3.ogg
Normal file
Binary file not shown.
BIN
Resources/Audio/Voice/Human/Scientist/science_scream4.ogg
Normal file
BIN
Resources/Audio/Voice/Human/Scientist/science_scream4.ogg
Normal file
Binary file not shown.
BIN
Resources/Audio/Voice/Human/Scientist/science_scream5.ogg
Normal file
BIN
Resources/Audio/Voice/Human/Scientist/science_scream5.ogg
Normal file
Binary file not shown.
BIN
Resources/Audio/Voice/Human/Scientist/science_scream6.ogg
Normal file
BIN
Resources/Audio/Voice/Human/Scientist/science_scream6.ogg
Normal file
Binary file not shown.
@@ -7,7 +7,7 @@
|
|||||||
components:
|
components:
|
||||||
- type: AmbientOnPowered
|
- type: AmbientOnPowered
|
||||||
- type: AmbientSound
|
- type: AmbientSound
|
||||||
volume: -15
|
volume: -14
|
||||||
range: 3
|
range: 3
|
||||||
sound:
|
sound:
|
||||||
path: /Audio/Ambience/Objects/vending_machine_hum.ogg
|
path: /Audio/Ambience/Objects/vending_machine_hum.ogg
|
||||||
|
|||||||
@@ -4,6 +4,11 @@
|
|||||||
description: A mesmerizing swirl of darkness that sucks in everything. If it's moving towards you, run.
|
description: A mesmerizing swirl of darkness that sucks in everything. If it's moving towards you, run.
|
||||||
components:
|
components:
|
||||||
- type: Clickable
|
- type: Clickable
|
||||||
|
- type: AmbientSound
|
||||||
|
volume: -10
|
||||||
|
range: 14
|
||||||
|
sound:
|
||||||
|
path: /Audio/Effects/singularity.ogg
|
||||||
- type: Physics
|
- type: Physics
|
||||||
bodyType: Dynamic
|
bodyType: Dynamic
|
||||||
fixtures:
|
fixtures:
|
||||||
|
|||||||
@@ -47,6 +47,8 @@
|
|||||||
mode: SnapgridCenter
|
mode: SnapgridCenter
|
||||||
components:
|
components:
|
||||||
- type: AmbientSound
|
- type: AmbientSound
|
||||||
|
volume: -15
|
||||||
|
range: 2
|
||||||
sound:
|
sound:
|
||||||
path: /Audio/Ambience/Objects/hdd_buzz.ogg
|
path: /Audio/Ambience/Objects/hdd_buzz.ogg
|
||||||
- type: Clickable
|
- type: Clickable
|
||||||
|
|||||||
@@ -10,6 +10,11 @@
|
|||||||
state: cabinet
|
state: cabinet
|
||||||
- type: AccessReader
|
- type: AccessReader
|
||||||
access: [["Bar"]]
|
access: [["Bar"]]
|
||||||
|
- type: EntityStorage
|
||||||
|
closeSound:
|
||||||
|
path: /Audio/Effects/woodenclosetclose.ogg
|
||||||
|
openSound:
|
||||||
|
path: /Audio/Effects/woodenclosetopen.ogg
|
||||||
|
|
||||||
# Cargo
|
# Cargo
|
||||||
- type: entity
|
- type: entity
|
||||||
@@ -264,13 +269,10 @@
|
|||||||
# Detective
|
# Detective
|
||||||
- type: entity
|
- type: entity
|
||||||
id: LockerDetective
|
id: LockerDetective
|
||||||
parent: LockerBase
|
parent: LockerBooze
|
||||||
name: detective's cabinet
|
name: detective's cabinet
|
||||||
|
description: Usually cold and empty... like your heart.
|
||||||
components:
|
components:
|
||||||
- type: Appearance
|
|
||||||
visuals:
|
|
||||||
- type: StorageVisualizer
|
|
||||||
state: cabinet
|
|
||||||
- type: AccessReader
|
- type: AccessReader
|
||||||
access: [["Service"]] # TODO access [["Detective"]]
|
access: [["Service"]] # TODO access [["Detective"]]
|
||||||
|
|
||||||
|
|||||||
@@ -4,10 +4,6 @@
|
|||||||
description: "An unpowered light."
|
description: "An unpowered light."
|
||||||
suffix: Unpowered
|
suffix: Unpowered
|
||||||
components:
|
components:
|
||||||
- type: AmbientSound
|
|
||||||
volume: -12
|
|
||||||
sound:
|
|
||||||
path: /Audio/Ambience/Objects/light_hum.ogg
|
|
||||||
- type: Clickable
|
- type: Clickable
|
||||||
- type: InteractionOutline
|
- type: InteractionOutline
|
||||||
- type: Construction
|
- type: Construction
|
||||||
@@ -97,6 +93,11 @@
|
|||||||
suffix: Unpowered
|
suffix: Unpowered
|
||||||
parent: WallLight
|
parent: WallLight
|
||||||
components:
|
components:
|
||||||
|
- type: AmbientSound
|
||||||
|
volume: -15
|
||||||
|
range: 2
|
||||||
|
sound:
|
||||||
|
path: /Audio/Ambience/Objects/light_hum.ogg
|
||||||
- type: Sprite
|
- type: Sprite
|
||||||
sprite: Structures/Wallmounts/Lighting/light_small.rsi
|
sprite: Structures/Wallmounts/Lighting/light_small.rsi
|
||||||
state: on
|
state: on
|
||||||
|
|||||||
9
Resources/Prototypes/SoundCollections/explosion.yml
Normal file
9
Resources/Prototypes/SoundCollections/explosion.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
- type: soundCollection
|
||||||
|
id: explosion
|
||||||
|
files:
|
||||||
|
- /Audio/Effects/explosion1.ogg
|
||||||
|
- /Audio/Effects/explosion2.ogg
|
||||||
|
- /Audio/Effects/explosion3.ogg
|
||||||
|
- /Audio/Effects/explosion4.ogg
|
||||||
|
- /Audio/Effects/explosion5.ogg
|
||||||
|
- /Audio/Effects/explosion6.ogg
|
||||||
@@ -16,3 +16,13 @@
|
|||||||
- /Audio/Voice/Human/femalescream_3.ogg
|
- /Audio/Voice/Human/femalescream_3.ogg
|
||||||
- /Audio/Voice/Human/femalescream_4.ogg
|
- /Audio/Voice/Human/femalescream_4.ogg
|
||||||
- /Audio/Voice/Human/femalescream_5.ogg
|
- /Audio/Voice/Human/femalescream_5.ogg
|
||||||
|
|
||||||
|
- type: soundCollection
|
||||||
|
id: ScientistScreams
|
||||||
|
files:
|
||||||
|
- /Audio/Voice/Human/science_scream_1.ogg
|
||||||
|
- /Audio/Voice/Human/science_scream_2.ogg
|
||||||
|
- /Audio/Voice/Human/science_scream_3.ogg
|
||||||
|
- /Audio/Voice/Human/science_scream_4.ogg
|
||||||
|
- /Audio/Voice/Human/science_scream_5.ogg
|
||||||
|
- /Audio/Voice/Human/science_scream_6.ogg
|
||||||
|
|||||||
Reference in New Issue
Block a user