This commit is contained in:
Pax1601 2023-11-15 16:42:24 +01:00
parent a71b8806e7
commit 0c50141be6
9 changed files with 21 additions and 16 deletions

View File

@ -1,12 +1,12 @@
{
"name": "DCSOlympus",
"version": "v0.4.5-alpha",
"version": "v0.4.6-alpha",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "DCSOlympus",
"version": "v0.4.5-alpha",
"version": "v0.4.6-alpha",
"dependencies": {
"@turf/turf": "^6.5.0",
"body-parser": "^1.20.2",

View File

@ -2,7 +2,7 @@
"name": "DCSOlympus",
"node-main": "./bin/www",
"main": "http://localhost:3000",
"version": "v0.4.5-alpha",
"version": "v0.4.6-alpha",
"private": true,
"scripts": {
"build": "browserify .\\src\\index.ts --debug -o .\\public\\javascripts\\bundle.js -t [ babelify --global true --presets [ @babel/preset-env ] --extensions '.js'] -p [ tsify --noImplicitAny ] && copy.bat",

View File

@ -3,7 +3,7 @@
<div id="app-summary">
<h2>DCS Olympus</h2>
<h4>Dynamic Unit Command</h4>
<div class="app-version">Version <span class="app-version-number">v0.4.5-alpha</span></div>
<div class="app-version">Version <span class="app-version-number">v0.4.6-alpha</span></div>
</div>
<form id="authentication-form">

View File

@ -6,7 +6,7 @@
<div class="ol-select-options">
<div id="toolbar-summary">
<h3>DCS Olympus</h3>
<div class="accent-green app-version-number">version v0.4.5-alpha</div>
<div class="accent-green app-version-number">version v0.4.6-alpha</div>
</div>
<div>
<a href="https://www.discord.com" target="_blank">Discord</a>

View File

@ -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

View File

@ -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."),

View File

@ -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

View File

@ -1,4 +1,4 @@
local version = 'v0.4.5-alpha'
local version = 'v0.4.6-alpha'
Olympus = {}
Olympus.OlympusDLL = nil

View File

@ -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"