From 32297da2b02f463b8075b6570e84960bcb8ed5e6 Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Thu, 11 Jul 2024 08:35:32 +0200 Subject: [PATCH 1/2] #AWACS - MS TTS - fix spelling out B-R-A in Threat call --- Moose Development/Moose/Ops/Awacs.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Moose Development/Moose/Ops/Awacs.lua b/Moose Development/Moose/Ops/Awacs.lua index ac62198d6..0f4bef1f5 100644 --- a/Moose Development/Moose/Ops/Awacs.lua +++ b/Moose Development/Moose/Ops/Awacs.lua @@ -508,7 +508,7 @@ do -- @field #AWACS AWACS = { ClassName = "AWACS", -- #string - version = "0.2.64", -- #string + version = "0.2.65", -- #string lid = "", -- #string coalition = coalition.side.BLUE, -- #number coalitiontxt = "blue", -- #string @@ -5585,6 +5585,12 @@ function AWACS:_ThreatRangeCall(GID,Contact) local grptxt = self.gettext:GetEntry("GROUP",self.locale) local thrt = self.gettext:GetEntry("THREAT",self.locale) local text = string.format("%s. %s. %s %s, %s. %s",self.callsigntxt,pilotcallsign,contacttag,grptxt, thrt, BRATExt) + -- DONE MS TTS - fix spelling out B-R-A in this case + if string.find(text,"BRAA",1,true) then + text = string.gsub(text,"BRAA","brah") + elseif string.find(text,"BRA",1,true) then + text = string.gsub(text,"BRA","brah") + end if IsSub == false then self:_NewRadioEntry(text,text,GID,true,self.debug,true,false,true) end From c8d49916df2e1f54267132b3e73c5f5015cba9c7 Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Fri, 12 Jul 2024 08:08:32 +0200 Subject: [PATCH 2/2] #RAT - dimensions workaround for Saab 340 --- Moose Development/Moose/Functional/RAT.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Moose Development/Moose/Functional/RAT.lua b/Moose Development/Moose/Functional/RAT.lua index a27582f27..a46e8a861 100644 --- a/Moose Development/Moose/Functional/RAT.lua +++ b/Moose Development/Moose/Functional/RAT.lua @@ -2135,7 +2135,12 @@ function RAT:_InitAircraft(DCSgroup) self.aircraft.length=16 self.aircraft.height=5 self.aircraft.width=9 + elseif DCStype == "Saab340" then -- <- These lines added + self.aircraft.length=19.73 -- <- These lines added + self.aircraft.height=6.97 -- <- These lines added + self.aircraft.width=21.44 -- <- These lines added end + self.aircraft.box=math.max(self.aircraft.length,self.aircraft.width) -- info message