Version 0.9992

PvP Zones, bug fixes
This commit is contained in:
Christian Franz
2022-05-26 12:39:36 +02:00
parent 82f59f5728
commit bc5ac5771c
8 changed files with 257 additions and 52 deletions

View File

@@ -1,5 +1,5 @@
dcsCommon = {}
dcsCommon.version = "2.6.2"
dcsCommon.version = "2.6.3"
--[[-- VERSION HISTORY
2.2.6 - compassPositionOfARelativeToB
- clockPositionOfARelativeToB
@@ -72,6 +72,7 @@ dcsCommon.version = "2.6.2"
2.6.0 - unified uuid, removed uuIdent
2.6.1 - removed bug in rotateUnitData: cy --> cz param passing
2.6.2 - new combineTables()
2.6.3 - new tacan2freq()
--]]--
@@ -1972,6 +1973,25 @@ dcsCommon.version = "2.6.2"
trigger.action.smoke(newPoint, smokeColor)
end
-- based on buzzer1977's idea, channel is number, eg in 74X, channel is 74, mode is "X"
function tacan2freq(channel, mode)
if not mode then mode = "X" end
if not channel then channel = 1 end
if type(mode) ~= "string" then mode = "X" end
mode = mode:upper()
local offset = 1000000 * channel
if channel < 64 then
if mode == "Y" then
return 1087000000 + offset
end
return 961000000 + offset -- mode x
end
if mode == "Y" then
return 961000000 + offset
end
return 1087000000 + offset -- mode x
end
--
--
-- V E C T O R M A T H