Add Ability to stop sound when MobState is Dead (#26905)
* Add stopsWhenEntityDead to sound components * Convert component * Review * Fix dupe sub --------- Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using Content.Shared.Mobs;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
@@ -12,6 +13,7 @@ public abstract class SharedAmbientSoundSystem : EntitySystem
|
||||
base.Initialize();
|
||||
SubscribeLocalEvent<AmbientSoundComponent, ComponentGetState>(GetCompState);
|
||||
SubscribeLocalEvent<AmbientSoundComponent, ComponentHandleState>(HandleCompState);
|
||||
|
||||
_query = GetEntityQuery<AmbientSoundComponent>();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user