From cee1c592ba04ef862e4b45878e7714283501ded2 Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Sat, 10 Jun 2023 19:04:40 +0200 Subject: [PATCH 1/5] #UTILS * Sinai TIme --- Moose Development/Moose/Utilities/Utils.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Moose Development/Moose/Utilities/Utils.lua b/Moose Development/Moose/Utilities/Utils.lua index 7b0467ed1..7f5cdd34c 100644 --- a/Moose Development/Moose/Utilities/Utils.lua +++ b/Moose Development/Moose/Utilities/Utils.lua @@ -1685,6 +1685,10 @@ function UTILS.GMTToLocalTimeDifference() return 10 -- Guam is UTC+10 hours. elseif theatre==DCSMAP.Falklands then return -3 -- Fireland is UTC-3 hours. + elseif theatre==DCSMAP.SinaiMap then + return 2 -- Sinai is UTC+2 hours. + elseif theatre==DCSMAP.Sinai then -- in case ED corrects the name + return 2 -- Sinai is UTC+2 hours. else BASE:E(string.format("ERROR: Unknown Map %s in UTILS.GMTToLocal function. Returning 0", tostring(theatre))) return 0 From caa5a962353e7712fd1c22e9b2617db5109faf9a Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Sat, 10 Jun 2023 19:06:22 +0200 Subject: [PATCH 2/5] fix --- Moose Development/Moose/Utilities/Utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moose Development/Moose/Utilities/Utils.lua b/Moose Development/Moose/Utilities/Utils.lua index 891718da7..4309f2d22 100644 --- a/Moose Development/Moose/Utilities/Utils.lua +++ b/Moose Development/Moose/Utilities/Utils.lua @@ -43,7 +43,7 @@ BIGSMOKEPRESET = { HugeSmoke=8, } ---- DCS map as returned by `env.mission.theatre`. +--- DCS map as returned by env.mission.theatre. -- @type DCSMAP -- @field #string Caucasus Caucasus map. -- @field #string Normandy Normandy map. From b3883301a23832248c3926dfc8f9e40135632656 Mon Sep 17 00:00:00 2001 From: Thomas <72444570+Applevangelist@users.noreply.github.com> Date: Sun, 11 Jun 2023 12:33:01 +0200 Subject: [PATCH 3/5] Update Airbase.lua Corrected enumerator for Ben-Gurion (Ben_Gurion) --- Moose Development/Moose/Wrapper/Airbase.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moose Development/Moose/Wrapper/Airbase.lua b/Moose Development/Moose/Wrapper/Airbase.lua index 4aeb5b21b..64a23f3cd 100644 --- a/Moose Development/Moose/Wrapper/Airbase.lua +++ b/Moose Development/Moose/Wrapper/Airbase.lua @@ -679,7 +679,7 @@ AIRBASE.Sinai = { ["Tel_Nof"] = "Tel Nof", ["Abu_Rudeis"] = "Abu Rudeis", ["Inshas_Airbase"] = "Inshas Airbase", - ["Ben-Gurion"] = "Ben-Gurion", + ["Ben_Gurion"] = "Ben-Gurion", ["Bir_Hasanah"] = "Bir Hasanah", ["Cairo_West"] = "Cairo West", } From 096d145cf9909cfc682027850782a09cb01d9321 Mon Sep 17 00:00:00 2001 From: Thomas <72444570+Applevangelist@users.noreply.github.com> Date: Mon, 12 Jun 2023 06:22:51 +0200 Subject: [PATCH 4/5] Update Airbase.lua (#1957) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Deleted raj al … airbases #1955 --- Moose Development/Moose/Wrapper/Airbase.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Moose Development/Moose/Wrapper/Airbase.lua b/Moose Development/Moose/Wrapper/Airbase.lua index 64a23f3cd..2ad137c49 100644 --- a/Moose Development/Moose/Wrapper/Airbase.lua +++ b/Moose Development/Moose/Wrapper/Airbase.lua @@ -467,8 +467,8 @@ AIRBASE.TheChannel = { -- * AIRBASE.Syria.H3_Northwest -- * AIRBASE.Syria.H3_Southwest -- * AIRBASE.Syria.Kharab_Ishk --- * AIRBASE.Syria.Raj_al_Issa_East --- * AIRBASE.Syria.Raj_al_Issa_West +-- * AIRBASE.Syria.Raj_al_Issa_East (deleted by ED) +-- * AIRBASE.Syria.Raj_al_Issa_West (deleted by ED) -- * AIRBASE.Syria.Ruwayshid -- * AIRBASE.Syria.Sanliurfa -- * AIRBASE.Syria.Tal_Siman @@ -532,8 +532,8 @@ AIRBASE.Syria={ ["H3_Northwest"]="H3 Northwest", ["H3_Southwest"]="H3 Southwest", ["Kharab_Ishk"]="Kharab Ishk", - ["Raj_al_Issa_East"]="Raj al Issa East", - ["Raj_al_Issa_West"]="Raj al Issa West", + -- ["Raj_al_Issa_East"]="Raj al Issa East", + -- ["Raj_al_Issa_West"]="Raj al Issa West", ["Ruwayshid"]="Ruwayshid", ["Sanliurfa"]="Sanliurfa", ["Tal_Siman"]="Tal Siman", From 12f260e857714d9b47c3b583598756fe347316e2 Mon Sep 17 00:00:00 2001 From: Frank Date: Mon, 12 Jun 2023 23:01:19 +0200 Subject: [PATCH 5/5] Update Unit.lua - Added `UNIT:IsExist` function. --- Moose Development/Moose/Wrapper/Unit.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Moose Development/Moose/Wrapper/Unit.lua b/Moose Development/Moose/Wrapper/Unit.lua index e716269a2..aa067e7d3 100644 --- a/Moose Development/Moose/Wrapper/Unit.lua +++ b/Moose Development/Moose/Wrapper/Unit.lua @@ -320,6 +320,23 @@ function UNIT:IsActive() return nil end +--- Returns if the unit is exists in the mission. +-- If not even the DCS unit object does exist, `nil` is returned. +-- If the unit object exists, the value of the DCS API function [isExist](https://wiki.hoggitworld.com/view/DCS_func_isExist) is returned. +-- @param #UNIT self +-- @return #boolean Returns `true` if unit exists in the mission. +function UNIT:IsExist() + + local DCSUnit = self:GetDCSObject() -- DCS#Unit + + if DCSUnit then + local exists = DCSUnit:isExist() + return exists + end + + return nil +end + --- Returns if the Unit is alive. -- If the Unit is not alive, nil is returned. -- If the Unit is alive and active, true is returned.