From: Dinner <180707738+DinnerCalzone@users.noreply.github.com> Date: Fri, 22 Aug 2025 10:04:29 +0000 (-0400) Subject: Fix grenades not playing sounds when detonating (#39815) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=d61ebf2c87547f7ed6fb2a6e0041d8ad8b5875aa;p=space-station-14.git Fix grenades not playing sounds when detonating (#39815) fix grenade sounds --- diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml index 1cf6ab9a94..cff52ee3a3 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml @@ -925,6 +925,7 @@ Quantity: 30 - type: EmitSoundOnTrigger sound: /Audio/Items/smoke_grenade_smoke.ogg + positional: true - type: ExplodeOnTrigger - type: Explosive explosionType: Default diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Throwable/grenades.yml b/Resources/Prototypes/Entities/Objects/Weapons/Throwable/grenades.yml index 60ce9bd3ec..eb390bbff9 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Throwable/grenades.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Throwable/grenades.yml @@ -91,6 +91,7 @@ - timer sound: path: "/Audio/Effects/flash_bang.ogg" + positional: true - type: DeleteOnTrigger keysIn: - timer @@ -260,6 +261,7 @@ path: /Audio/Effects/Grenades/Supermatter/supermatter_end.ogg params: volume: 5 + positional: true keysIn: - stageTwo - type: DeleteOnTrigger @@ -478,6 +480,7 @@ keysIn: - timer sound: /Audio/Items/smoke_grenade_smoke.ogg + positional: true - type: DeleteOnTrigger keysIn: - timer diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Throwable/projectile_grenades.yml b/Resources/Prototypes/Entities/Objects/Weapons/Throwable/projectile_grenades.yml index f9ce11a3b9..0e8b758a13 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Throwable/projectile_grenades.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Throwable/projectile_grenades.yml @@ -61,6 +61,7 @@ - timer sound: path: "/Audio/Effects/flash_bang.ogg" + positional: true - type: SpawnOnTrigger keysIn: - timer @@ -103,6 +104,7 @@ - timer sound: path: "/Audio/Weapons/Guns/Gunshots/batrifle.ogg" + positional: true - type: StaticPrice price: 1500 @@ -134,5 +136,6 @@ - timer sound: path: "/Audio/Weapons/Guns/Gunshots/batrifle.ogg" + positional: true - type: StaticPrice price: 1500 diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Throwable/scattering_grenades.yml b/Resources/Prototypes/Entities/Objects/Weapons/Throwable/scattering_grenades.yml index ce031ba6ff..ba2bdd230e 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Throwable/scattering_grenades.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Throwable/scattering_grenades.yml @@ -87,6 +87,7 @@ - timer sound: path: "/Audio/Machines/door_lock_off.ogg" + positional: true - type: entity parent: [ScatteringGrenadeBase, BaseSyndicateContraband] @@ -114,6 +115,7 @@ - timer sound: path: "/Audio/Machines/door_lock_off.ogg" + positional: true - type: StaticPrice price: 2500 @@ -140,6 +142,7 @@ - timer sound: path: "/Audio/Items/bikehorn.ogg" + positional: true - type: entity parent: [SoapSyndie, ScatteringGrenadeBase, BaseSyndicateContraband] @@ -167,6 +170,7 @@ - timer sound: path: "/Audio/Effects/flash_bang.ogg" + positional: true - type: StaticPrice price: 1000 @@ -199,3 +203,4 @@ - timer sound: path: "/Audio/Weapons/Guns/Gunshots/batrifle.ogg" + positional: true