stats (#103)
* OH YES * хули мне хедкодеру # Conflicts: # Content.Server/Instruments/InstrumentComponent.cs # Content.Server/Instruments/InstrumentSystem.cs # Content.Shared/Cuffs/SharedCuffableSystem.cs # Content.Shared/White/WhiteCVars.cs # Resources/Prototypes/tags.yml
This commit is contained in:
@@ -5,6 +5,7 @@ using Content.Shared.Maps;
|
||||
using Content.Shared.Popups;
|
||||
using Content.Shared.Sound.Components;
|
||||
using Content.Shared.Throwing;
|
||||
using Content.Shared.White.EndOfRoundStats.EmitSoundStatSystem;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.Audio.Systems;
|
||||
@@ -117,6 +118,9 @@ public abstract class SharedEmitSoundSystem : EntitySystem
|
||||
// don't predict sounds that client couldn't have played already
|
||||
_audioSystem.PlayPvs(component.Sound, uid);
|
||||
}
|
||||
|
||||
if (_netMan.IsServer)
|
||||
RaiseLocalEvent(new EmitSoundStatEvent(component.Owner, component.Sound));
|
||||
}
|
||||
|
||||
private void OnEmitSoundUnpaused(EntityUid uid, EmitSoundOnCollideComponent component, ref EntityUnpausedEvent args)
|
||||
|
||||
Reference in New Issue
Block a user