Add tree felling and chopping sounds (#14622)

This commit is contained in:
metalgearsloth
2023-03-14 07:42:29 +11:00
committed by GitHub
parent b329abc9ee
commit 10290bf4a7
5 changed files with 18 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors
public void Execute(EntityUid owner, DestructibleSystem system, EntityUid? cause = null)
{
var pos = system.EntityManager.GetComponent<TransformComponent>(owner).Coordinates;
SoundSystem.Play(Sound.GetSound(), Filter.Pvs(pos), pos, AudioHelpers.WithVariation(0.125f));
system.EntityManager.System<SharedAudioSystem>().PlayPvs(Sound, pos);
}
}
}