@@ -16,7 +16,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors
|
|||||||
public void Execute(EntityUid owner, DestructibleSystem system, EntityUid? cause = null)
|
public void Execute(EntityUid owner, DestructibleSystem system, EntityUid? cause = null)
|
||||||
{
|
{
|
||||||
var pos = system.EntityManager.GetComponent<TransformComponent>(owner).Coordinates;
|
var pos = system.EntityManager.GetComponent<TransformComponent>(owner).Coordinates;
|
||||||
system.EntityManager.System<SharedAudioSystem>().PlayPvs(Sound, pos);
|
SoundSystem.Play(Sound.GetSound(), Filter.Pvs(pos), pos, AudioHelpers.WithVariation(0.125f));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,8 +22,3 @@
|
|||||||
license: "CC-BY-NC-SA-3.0"
|
license: "CC-BY-NC-SA-3.0"
|
||||||
copyright: "chime.ogg taken from Citadel Station."
|
copyright: "chime.ogg taken from Citadel Station."
|
||||||
source: "https://github.com/Citadel-Station-13/Citadel-Station-13/commit/b604390f334343be80045d955705cf48ee056c61"
|
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/"
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -2907,8 +2907,3 @@ Entries:
|
|||||||
under them.', type: Tweak}
|
under them.', type: Tweak}
|
||||||
id: 3176
|
id: 3176
|
||||||
time: '2023-03-13T19:26:21.0000000+00:00'
|
time: '2023-03-13T19:26:21.0000000+00:00'
|
||||||
- author: metalgearsloth
|
|
||||||
changes:
|
|
||||||
- {message: Trees now have chopping and felling sounds., type: Add}
|
|
||||||
id: 3177
|
|
||||||
time: '2023-03-13T20:42:30.0000000+00:00'
|
|
||||||
|
|||||||
@@ -58,12 +58,6 @@
|
|||||||
- type: Damageable
|
- type: Damageable
|
||||||
damageContainer: Inorganic
|
damageContainer: Inorganic
|
||||||
damageModifierSet: Wood
|
damageModifierSet: Wood
|
||||||
- type: MeleeSound
|
|
||||||
soundGroups:
|
|
||||||
Brute:
|
|
||||||
path: /Audio/Effects/chop.ogg
|
|
||||||
params:
|
|
||||||
variation: 0.05
|
|
||||||
- type: Destructible
|
- type: Destructible
|
||||||
thresholds:
|
thresholds:
|
||||||
- trigger:
|
- trigger:
|
||||||
@@ -76,12 +70,6 @@
|
|||||||
!type:DamageTrigger
|
!type:DamageTrigger
|
||||||
damage: 50
|
damage: 50
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:PlaySoundBehavior
|
|
||||||
sound:
|
|
||||||
path: /Audio/Effects/tree_fell.ogg
|
|
||||||
params:
|
|
||||||
volume: 5
|
|
||||||
variation: 0.05
|
|
||||||
- !type:DoActsBehavior
|
- !type:DoActsBehavior
|
||||||
acts: [ "Destruction" ]
|
acts: [ "Destruction" ]
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
|
|||||||
Reference in New Issue
Block a user