Fix audio occlusion
This was previously being done on every SoundComponent.
This commit is contained in:
parent
dbe806c3f4
commit
3a4adfa410
1 changed files with 15 additions and 0 deletions
15
Content.Client/Audio/ContentAudioSystem.cs
Normal file
15
Content.Client/Audio/ContentAudioSystem.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using Content.Shared.Physics;
|
||||
using Robust.Client.GameObjects;
|
||||
using Robust.Shared.GameObjects;
|
||||
|
||||
namespace Content.Client.Audio
|
||||
{
|
||||
public sealed class ContentAudioSystem : EntitySystem
|
||||
{
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
Get<AudioSystem>().OcclusionCollisionMask = (int) CollisionGroup.Impassable;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue