From 04b4af58f79158fc0eab7f77b687581e96641d46 Mon Sep 17 00:00:00 2001 From: Frank Date: Fri, 29 Sep 2023 14:26:22 +0200 Subject: [PATCH 1/3] Update ATIS.lua #2010 --- Moose Development/Moose/Ops/ATIS.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Moose Development/Moose/Ops/ATIS.lua b/Moose Development/Moose/Ops/ATIS.lua index e0aea4bbd..8f110b07f 100644 --- a/Moose Development/Moose/Ops/ATIS.lua +++ b/Moose Development/Moose/Ops/ATIS.lua @@ -253,8 +253,7 @@ -- # Sound Files -- -- More than 180 individual sound files have been created using a text-to-speech program. All ATIS information is given with en-US accent. --- --- Check out the pinned messages in the Moose discord #ops-atis channel. +-- You can find the sound files [here](https://github.com/FlightControl-Master/MOOSE_SOUND/releases). Also check out the pinned messages in the Moose discord #ops-atis channel. -- -- To include the files, open the mission (.miz) file with, *e.g.*, 7-zip. Then just drag-n-drop the file into the miz. -- From 4a594f41b0edeace83b328f5b307a49551c8caf9 Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Fri, 6 Oct 2023 11:30:59 +0200 Subject: [PATCH 2/3] #SET_ZONE * Added GetAverageCoordinate() --- Moose Development/Moose/Core/Set.lua | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/Moose Development/Moose/Core/Set.lua b/Moose Development/Moose/Core/Set.lua index bf98911ef..dac994af1 100644 --- a/Moose Development/Moose/Core/Set.lua +++ b/Moose Development/Moose/Core/Set.lua @@ -6052,7 +6052,29 @@ do -- SET_ZONE return self end - + + --- Get the average aggregated coordinate of this set of zones. + -- @param #SET_ZONE self + -- @return Core.Point#COORDINATE + function SET_ZONE:GetAverageCoordinate() + local x,y,z = 0,0,0 + local count = 0 + for _,_zone in pairs(self.Set) do + local zone=_zone --Core.Zone#ZONE + local vec3 = zone:GetVec3() + x = x + vec3.x + y = y + vec3.y + z = z + vec3.z + count = count + 1 + end + if count > 1 then + x = x/count + y = y/count + z = z/count + end + local coord = COORDINATE:New(x,y,z) + return coord + end --- Private function. -- @param #SET_ZONE self From 2d081dfc030d84fd701f0dfd3a5d17cfd73740fc Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Fri, 6 Oct 2023 11:42:51 +0200 Subject: [PATCH 3/3] CTLD/CSAR - Added sound file location --- Moose Development/Moose/Ops/CSAR.lua | 2 ++ Moose Development/Moose/Ops/CTLD.lua | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Moose Development/Moose/Ops/CSAR.lua b/Moose Development/Moose/Ops/CSAR.lua index f9ec9e5f5..9d23a86e1 100644 --- a/Moose Development/Moose/Ops/CSAR.lua +++ b/Moose Development/Moose/Ops/CSAR.lua @@ -61,6 +61,8 @@ -- You need to load an .ogg soundfile for the pilot\'s beacons into the mission, e.g. "beacon.ogg", use a once trigger, "sound to country" for that. -- Create a late-activated single infantry unit as template in the mission editor and name it e.g. "Downed Pilot". -- +-- Example sound files are here: [Moose Sound](https://github.com/FlightControl-Master/MOOSE_SOUND/tree/master/CTLD%20CSAR) +-- -- ## 1. Basic Setup -- -- A basic setup example is the following: diff --git a/Moose Development/Moose/Ops/CTLD.lua b/Moose Development/Moose/Ops/CTLD.lua index 7e79bdbc8..8c77f8eb8 100644 --- a/Moose Development/Moose/Ops/CTLD.lua +++ b/Moose Development/Moose/Ops/CTLD.lua @@ -616,6 +616,8 @@ do -- You need to load an .ogg soundfile for the pilot\'s beacons into the mission, e.g. "beacon.ogg", use a once trigger, "sound to country" for that. -- Create the late-activated troops, vehicles, that will make up your deployable forces. -- +-- Example sound files are here: [Moose Sound](https://github.com/FlightControl-Master/MOOSE_SOUND/tree/master/CTLD%20CSAR) +-- -- ## 1. Basic Setup -- -- ## 1.1 Create and start a CTLD instance