]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Revert "Add tree felling and chopping sounds" (#14622) (#14643)
authorAJCM-git <60196617+AJCM-git@users.noreply.github.com>
Mon, 13 Mar 2023 21:12:57 +0000 (17:12 -0400)
committerGitHub <noreply@github.com>
Mon, 13 Mar 2023 21:12:57 +0000 (17:12 -0400)
Content.Server/Destructible/Thresholds/Behaviors/PlaySoundBehavior.cs
Resources/Audio/Effects/attributions.yml
Resources/Audio/Effects/chop.ogg [deleted file]
Resources/Audio/Effects/tree_fell.ogg [deleted file]
Resources/Changelog/Changelog.yml
Resources/Prototypes/Entities/Objects/Decoration/flora.yml

index f1fcfa4449a7a2a8ff99f704a6cec7b258b60628..015b480b82573983b017da619884eec1704a3b4c 100644 (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;
-            system.EntityManager.System<SharedAudioSystem>().PlayPvs(Sound, pos);
+            SoundSystem.Play(Sound.GetSound(), Filter.Pvs(pos), pos, AudioHelpers.WithVariation(0.125f));
         }
     }
 }
index 263b872aeed9bce847fbdf6d49cb8d126083bdf6..1c7843072020acae78a45aa26b09084743bb1c06 100644 (file)
@@ -22,8 +22,3 @@
   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/"
diff --git a/Resources/Audio/Effects/chop.ogg b/Resources/Audio/Effects/chop.ogg
deleted file mode 100644 (file)
index bc4c393..0000000
Binary files a/Resources/Audio/Effects/chop.ogg and /dev/null differ
diff --git a/Resources/Audio/Effects/tree_fell.ogg b/Resources/Audio/Effects/tree_fell.ogg
deleted file mode 100644 (file)
index 2c9554e..0000000
Binary files a/Resources/Audio/Effects/tree_fell.ogg and /dev/null differ
index 43836fc04c2635487f1c07a0f796834846a54bf3..72757d3468e7485e359f2f9c322e5f2bad01ccf5 100644 (file)
@@ -2907,8 +2907,3 @@ Entries:
       under them.', type: Tweak}
   id: 3176
   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'
index 21f2255146e8756d6a5886080070e06d60fb15f9..44652af95565b8c9fecc436fa7fb17cebee6a54d 100644 (file)
   - 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