Fix audio occlusion (#10538)
This commit is contained in:
8
Content.Client/Audio/ContentAudioSystem.cs
Normal file
8
Content.Client/Audio/ContentAudioSystem.cs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
using Content.Shared.Audio;
|
||||||
|
|
||||||
|
namespace Content.Client.Audio;
|
||||||
|
|
||||||
|
public sealed class ContentAudioSystem : SharedContentAudioSystem
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
8
Content.Server/Audio/ContentAudioSystem.cs
Normal file
8
Content.Server/Audio/ContentAudioSystem.cs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
using Content.Shared.Audio;
|
||||||
|
|
||||||
|
namespace Content.Server.Audio;
|
||||||
|
|
||||||
|
public sealed class ContentAudioSystem : SharedContentAudioSystem
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
14
Content.Shared/Audio/SharedContentAudioSystem.cs
Normal file
14
Content.Shared/Audio/SharedContentAudioSystem.cs
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
using Content.Shared.Physics;
|
||||||
|
|
||||||
|
namespace Content.Shared.Audio;
|
||||||
|
|
||||||
|
public abstract class SharedContentAudioSystem : EntitySystem
|
||||||
|
{
|
||||||
|
[Dependency] private readonly SharedAudioSystem _audio = default!;
|
||||||
|
|
||||||
|
public override void Initialize()
|
||||||
|
{
|
||||||
|
base.Initialize();
|
||||||
|
_audio.OcclusionCollisionMask = (int) CollisionGroup.Impassable;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user