From 05bfefd8506c8293aa70f6c561dbe9becabfc474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B0=D1=80=D1=85=D0=B8=D0=B4?= Date: Wed, 22 Nov 2023 18:08:26 +0200 Subject: [PATCH 1/2] restore Odin liftoff sound in fog-safe manner --- scripts/bomberassault.lua | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/scripts/bomberassault.lua b/scripts/bomberassault.lua index 0d354e5182..64c00c68b0 100644 --- a/scripts/bomberassault.lua +++ b/scripts/bomberassault.lua @@ -85,17 +85,19 @@ local function IsManualFireTargetValid() return false end ---function script.Deactivate() --- StopSpin(turbineTop, z_axis, 0.5); --- StopSpin(turbineLeft, z_axis, 0.5); --- StopSpin(turbineRight, z_axis, 0.5); ---end - ---function script.Activate() --- Spin(turbineTop, z_axis, 8,2); --- Spin(turbineLeft, z_axis, 8,2); --- Spin(turbineRight, z_axis, -8,2); ---end +function script.Deactivate() + StopSpin(turbineTop, y_axis, 0.5); + StopSpin(turbineLeft, y_axis, 0.5); + StopSpin(turbineRight, y_axis, 0.5); +end + +function script.Activate() + local px, py, pz = Spring.GetUnitPosition(unitID) + GG.PlayFogHiddenSound("sounds/misc/blowtorch.wav", 10, px, py, pz) + --Spin(turbineTop, y_axis, 8,2); + --Spin(turbineLeft, y_axis, 8,2); + --Spin(turbineRight, y_axis, -8,2); +end function script.Create() StartThread(GG.Script.SmokeUnit, unitID, smokePiece) From 101f8933c9bc63c981e333776ad7e3de8dac8466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B0=D1=80=D1=85=D0=B8=D0=B4?= Date: Thu, 11 Jan 2024 22:09:06 +0200 Subject: [PATCH 2/2] Pssh: remove stopspin --- scripts/bomberassault.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/bomberassault.lua b/scripts/bomberassault.lua index 64c00c68b0..bf36608159 100644 --- a/scripts/bomberassault.lua +++ b/scripts/bomberassault.lua @@ -86,9 +86,6 @@ local function IsManualFireTargetValid() end function script.Deactivate() - StopSpin(turbineTop, y_axis, 0.5); - StopSpin(turbineLeft, y_axis, 0.5); - StopSpin(turbineRight, y_axis, 0.5); end function script.Activate()