Add tree felling and chopping sounds (#14644)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user