]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix grenades not playing sounds when detonating (#39815)
authorDinner <180707738+DinnerCalzone@users.noreply.github.com>
Fri, 22 Aug 2025 10:04:29 +0000 (06:04 -0400)
committerGitHub <noreply@github.com>
Fri, 22 Aug 2025 10:04:29 +0000 (12:04 +0200)
fix grenade sounds

Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml
Resources/Prototypes/Entities/Objects/Weapons/Throwable/grenades.yml
Resources/Prototypes/Entities/Objects/Weapons/Throwable/projectile_grenades.yml
Resources/Prototypes/Entities/Objects/Weapons/Throwable/scattering_grenades.yml

index 1cf6ab9a94b808fe37f29c039267e4a9e5fe8a88..cff52ee3a390c76d9d2702d085f0235882616eac 100644 (file)
         Quantity: 30
   - type: EmitSoundOnTrigger
     sound: /Audio/Items/smoke_grenade_smoke.ogg
+    positional: true
   - type: ExplodeOnTrigger
   - type: Explosive
     explosionType: Default
index 60ce9bd3ec357c93047092ecccd925e356278e0b..eb390bbff955a7a1a7ceb1f69b194513e7ede8f2 100644 (file)
@@ -91,6 +91,7 @@
     - timer
     sound:
       path: "/Audio/Effects/flash_bang.ogg"
+    positional: true
   - type: DeleteOnTrigger
     keysIn:
     - timer
           path: /Audio/Effects/Grenades/Supermatter/supermatter_end.ogg
           params:
             volume: 5
+        positional: true
         keysIn:
         - stageTwo
       - type: DeleteOnTrigger
     keysIn:
     - timer
     sound: /Audio/Items/smoke_grenade_smoke.ogg
+    positional: true
   - type: DeleteOnTrigger
     keysIn:
     - timer
index f9ce11a3b988043814ea0f5a8e6e0cba58dc0a0b..0e8b758a13edc3e98b64eab7e8ea561c0993e0c4 100644 (file)
@@ -61,6 +61,7 @@
     - timer
     sound:
       path: "/Audio/Effects/flash_bang.ogg"
+    positional: true
   - type: SpawnOnTrigger
     keysIn:
     - timer
     - timer
     sound:
       path: "/Audio/Weapons/Guns/Gunshots/batrifle.ogg"
+    positional: true
   - type: StaticPrice
     price: 1500
 
     - timer
     sound:
       path: "/Audio/Weapons/Guns/Gunshots/batrifle.ogg"
+    positional: true
   - type: StaticPrice
     price: 1500
index ce031ba6ff9d5f2c21df5e5959b10c4119752a6e..ba2bdd230e5790f2ed348df810e98fbf47683a82 100644 (file)
@@ -87,6 +87,7 @@
     - timer
     sound:
       path: "/Audio/Machines/door_lock_off.ogg"
+    positional: true
 
 - type: entity
   parent: [ScatteringGrenadeBase, BaseSyndicateContraband]
     - timer
     sound:
       path: "/Audio/Machines/door_lock_off.ogg"
+    positional: true
   - type: StaticPrice
     price: 2500
 
     - timer
     sound:
       path: "/Audio/Items/bikehorn.ogg"
+    positional: true
 
 - type: entity
   parent: [SoapSyndie, ScatteringGrenadeBase, BaseSyndicateContraband]
     - timer
     sound:
       path: "/Audio/Effects/flash_bang.ogg"
+    positional: true
   - type: StaticPrice
     price: 1000
 
     - timer
     sound:
       path: "/Audio/Weapons/Guns/Gunshots/batrifle.ogg"
+    positional: true