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);
}
}
}
license: "CC-BY-NC-SA-3.0"
copyright: "chime.ogg taken from Citadel Station."
source: "https://github.com/Citadel-Station-13/Citadel-Station-13/commit/b604390f334343be80045d955705cf48ee056c61"
+
+- files: ["tree_fell.ogg"]
+ license: "CC0-1.0"
+ copyright: "Taken from felix.blume via freesound.org and cropped + mixed from stereo to mono."
+ source: "https://freesound.org/people/felix.blume/sounds/414093/"
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Wood
+ - type: MeleeSound
+ soundGroups:
+ Brute:
+ path: /Audio/Effects/chop.ogg
+ params:
+ variation: 0.05
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
+ - !type:PlaySoundBehavior
+ sound:
+ path: /Audio/Effects/tree_fell.ogg
+ params:
+ volume: 5
+ variation: 0.05
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:SpawnEntitiesBehavior