Discord
diff --git a/installer/olympus.iss b/installer/olympus.iss
index 27486c63..fc4e6f82 100644
--- a/installer/olympus.iss
+++ b/installer/olympus.iss
@@ -1,5 +1,5 @@
#define nwjsFolder "C:\Users\dpass\Documents\nwjs\"
-#define version "v0.4.5-alpha"
+#define version "v0.4.6-alpha"
[Setup]
AppName=DCS Olympus
diff --git a/mod/entry.lua b/mod/entry.lua
index 9c4b86dc..6dea1156 100644
--- a/mod/entry.lua
+++ b/mod/entry.lua
@@ -15,7 +15,7 @@ declare_plugin(self_ID,
shortName = "Olympus",
fileMenuName = "Olympus",
- version = "v0.4.5-alpha",
+ version = "v0.4.6-alpha",
state = "installed",
developerName= "DCS Refugees 767 squadron",
info = _("DCS Olympus is a mod for DCS World. It allows users to spawn, control, task, group, and remove units from a DCS World server using a real-time map interface, similarly to Real Time Strategy games. The user interface also provides useful informations units, like loadouts, fuel, tasking, and so on. In the future, more features for DCS World GCI and JTAC will be available."),
diff --git a/scripts/OlympusCommand.lua b/scripts/OlympusCommand.lua
index 1392e904..f05d7cf3 100644
--- a/scripts/OlympusCommand.lua
+++ b/scripts/OlympusCommand.lua
@@ -1,6 +1,6 @@
-local version = "v0.4.5-alpha"
+local version = "v0.4.6-alpha"
-local debug = true -- True enables debug printing using DCS messages
+local debug = false -- True enables debug printing using DCS messages
-- .dll related variables
Olympus.OlympusDLL = nil
@@ -435,10 +435,15 @@ function Olympus.smoke(color, lat, lng)
end
-- Creates an explosion on the ground
-function Olympus.explosion(intensity, explosionType, lat, lng)
- Olympus.debug("Olympus.explosion " .. explosionType .. " " .. intensity .. " (" .. lat .. ", " .. lng ..")", 2)
- local pos = coord.LLtoLO(lat, lng, 0)
- local vec3 = mist.utils.makeVec3GL(pos)
+function Olympus.explosion(intensity, explosionType, lat, lng, alt)
+ Olympus.debug("Olympus.explosion " .. explosionType .. " " .. intensity .. " (" .. lat .. ", " .. lng .. ")", 2)
+
+ local vec3 = nil
+ if alt ~= nil then
+ vec3 = coord.LLtoLO(lat, lng, alt)
+ else
+ vec3 = mist.utils.makeVec3GL(coord.LLtoLO(lat, lng))
+ end
if explosionType == "normal" then
trigger.action.explosion(vec3, intensity)
@@ -885,7 +890,7 @@ function Olympus.delete(ID, explosion, explosionType)
explosionType = "normal"
end
local lat, lng, alt = coord.LOtoLL(unit:getPoint())
- Olympus.explosion(250, explosionType, lat, lng)
+ Olympus.explosion(250, explosionType, lat, lng, alt)
Olympus.debug("Olympus.delete completed successfully", 2)
else
unit:destroy(); --works for AI units not players
diff --git a/scripts/OlympusHook.lua b/scripts/OlympusHook.lua
index b0c9de59..a34af85c 100644
--- a/scripts/OlympusHook.lua
+++ b/scripts/OlympusHook.lua
@@ -1,4 +1,4 @@
-local version = 'v0.4.5-alpha'
+local version = 'v0.4.6-alpha'
Olympus = {}
Olympus.OlympusDLL = nil
diff --git a/src/shared/include/defines.h b/src/shared/include/defines.h
index 886f9ddd..d695109e 100644
--- a/src/shared/include/defines.h
+++ b/src/shared/include/defines.h
@@ -1,6 +1,6 @@
#pragma once
-#define VERSION "v0.4.5-alpha"
+#define VERSION "v0.4.6-alpha"
#define LOG_NAME "Olympus_log.txt"
#define REST_ADDRESS "http://localhost:30000"
#define REST_URI "olympus"