mirror of
https://github.com/mrSkortch/MissionScriptingTools.git
synced 2026-07-16 22:32:42 +00:00
4.3 Release Files
Re-export of DBs and updated files needed for release.
This commit is contained in:
+1459
-1440
File diff suppressed because it is too large
Load Diff
+1459
-1440
File diff suppressed because it is too large
Load Diff
+1567
-1548
File diff suppressed because it is too large
Load Diff
+1124
-1086
File diff suppressed because it is too large
Load Diff
+1109
-1071
File diff suppressed because it is too large
Load Diff
+1109
-1071
File diff suppressed because it is too large
Load Diff
+1109
-1071
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,3 @@
|
||||
activeHumans =
|
||||
{
|
||||
} -- end of activeHumans
|
||||
+1938
-1868
File diff suppressed because it is too large
Load Diff
+167
-76
@@ -1,79 +1,170 @@
|
||||
const =
|
||||
{
|
||||
["callsigns"] =
|
||||
{
|
||||
["NATO"] =
|
||||
{
|
||||
["AWACS"] =
|
||||
{
|
||||
["Darkstar"] = 5,
|
||||
["Focus"] = 4,
|
||||
["Wizard"] = 3,
|
||||
["Magic"] = 2,
|
||||
["Overlord"] = 1,
|
||||
}, -- end of ["AWACS"]
|
||||
["rules"] =
|
||||
{
|
||||
["groupLimit"] = 9,
|
||||
}, -- end of ["rules"]
|
||||
["aircraft"] =
|
||||
{
|
||||
["Uzi"] = 3,
|
||||
["Pontiac"] = 8,
|
||||
["Chevy"] = 7,
|
||||
["Dodge"] = 5,
|
||||
["Ford"] = 6,
|
||||
["Enfield"] = 1,
|
||||
["Colt"] = 4,
|
||||
["Springfield"] = 2,
|
||||
}, -- end of ["aircraft"]
|
||||
["unique"] =
|
||||
{
|
||||
["A10"] =
|
||||
{
|
||||
["Boar"] = 10,
|
||||
["Pig"] = 11,
|
||||
["rules"] =
|
||||
{
|
||||
["canUseAircraft"] = true,
|
||||
["appliesTo"] =
|
||||
{
|
||||
[1] = "A-10C",
|
||||
[2] = "A-10A",
|
||||
}, -- end of ["appliesTo"]
|
||||
}, -- end of ["rules"]
|
||||
["Tusk"] = 12,
|
||||
["Hawg"] = 9,
|
||||
}, -- end of ["A10"]
|
||||
}, -- end of ["unique"]
|
||||
["JTAC"] =
|
||||
{
|
||||
["Ferret"] = 10,
|
||||
["Finger"] = 8,
|
||||
["Deathstar"] = 15,
|
||||
["Pointer"] = 4,
|
||||
["Anvil"] = 16,
|
||||
["Darknight"] = 2,
|
||||
["Whiplash"] = 7,
|
||||
["Warrior"] = 3,
|
||||
["Eyeball"] = 5,
|
||||
["Mantis"] = 18,
|
||||
["Playboy"] = 12,
|
||||
["Axeman"] = 1,
|
||||
["Moonbeam"] = 6,
|
||||
["Hammer"] = 13,
|
||||
["Shaba"] = 11,
|
||||
["Badger"] = 19,
|
||||
["Jaguar"] = 14,
|
||||
["Firefly"] = 17,
|
||||
["Pinpoint"] = 9,
|
||||
}, -- end of ["JTAC"]
|
||||
["TANKER"] =
|
||||
{
|
||||
["Texaco"] = 1,
|
||||
["Arco"] = 2,
|
||||
["Shell"] = 3,
|
||||
}, -- end of ["TANKER"]
|
||||
}, -- end of ["NATO"]
|
||||
}, -- end of ["callsigns"]
|
||||
["shapeNames"] =
|
||||
{
|
||||
["Landmine"] = "landmine",
|
||||
["FARP CP Blindage"] = "kp_ug",
|
||||
["Subsidiary structure C"] = "saray-c",
|
||||
["Barracks 2"] = "kazarma2",
|
||||
["Small house 2C"] = "dom2c",
|
||||
["Military staff"] = "aviashtab",
|
||||
["Tech hangar A"] = "ceh_ang_a",
|
||||
["Oil derrick"] = "neftevyshka",
|
||||
["Tech combine"] = "kombinat",
|
||||
["Garage B"] = "garage_b",
|
||||
["Airshow_Crowd"] = "Crowd1",
|
||||
["Hangar A"] = "angar_a",
|
||||
["Repair workshop"] = "tech",
|
||||
["Subsidiary structure D"] = "saray-d",
|
||||
["FARP Ammo Dump Coating"] = "SetkaKP",
|
||||
["Small house 1C area"] = "dom2c-all",
|
||||
["Tank 2"] = "airbase_tbilisi_tank_01",
|
||||
["Boiler-house A"] = "kotelnaya_a",
|
||||
["Workshop A"] = "tec_a",
|
||||
["Small werehouse 1"] = "s1",
|
||||
["Garage small B"] = "garagh-small-b",
|
||||
["Small werehouse 4"] = "s4",
|
||||
["Shop"] = "magazin",
|
||||
["Subsidiary structure B"] = "saray-b",
|
||||
["FARP Fuel Depot"] = "GSM Rus",
|
||||
["Coach cargo"] = "wagon-gruz",
|
||||
["Electric power box"] = "tr_budka",
|
||||
["Tank 3"] = "airbase_tbilisi_tank_02",
|
||||
["Red_Flag"] = "H-flag_R",
|
||||
["Container red 3"] = "konteiner_red3",
|
||||
["Garage A"] = "garage_a",
|
||||
["Hangar B"] = "angar_b",
|
||||
["Black_Tyre"] = "H-tyre_B",
|
||||
["Cafe"] = "stolovaya",
|
||||
["Restaurant 1"] = "restoran1",
|
||||
["Subsidiary structure A"] = "saray-a",
|
||||
["Container white"] = "konteiner_white",
|
||||
["Warehouse"] = "sklad",
|
||||
["Tank"] = "bak",
|
||||
["Railway crossing B"] = "pereezd_small",
|
||||
["Subsidiary structure F"] = "saray-f",
|
||||
["Farm A"] = "ferma_a",
|
||||
["Small werehouse 3"] = "s3",
|
||||
["Water tower A"] = "wodokachka_a",
|
||||
["Railway station"] = "r_vok_sd",
|
||||
["Coach a tank blue"] = "wagon-cisterna_blue",
|
||||
["Supermarket A"] = "uniwersam_a",
|
||||
["Coach a platform"] = "wagon-platforma",
|
||||
["Garage small A"] = "garagh-small-a",
|
||||
["TV tower"] = "tele_bash",
|
||||
["Airshow_Cone"] = "Comp_cone",
|
||||
["Farm B"] = "ferma_b",
|
||||
["GeneratorF"] = "GeneratorF",
|
||||
["White_Flag"] = "H-Flag_W",
|
||||
["Container red 2"] = "konteiner_red2",
|
||||
["Coach a passenger"] = "wagon-pass",
|
||||
["WC"] = "WC",
|
||||
["Black_Tyre_WF"] = "H-tyre_B_WF",
|
||||
["Electric locomotive"] = "elektrowoz",
|
||||
["Railway crossing A"] = "pereezd_big",
|
||||
["Coach a tank yellow"] = "wagon-cisterna_yellow",
|
||||
["Subsidiary structure 2"] = "hozdomik2",
|
||||
[".Ammunition depot"] = "SkladC",
|
||||
["Small werehouse 2"] = "s2",
|
||||
["Windsock"] = "H-Windsock_RW",
|
||||
["Small house 1B"] = "domik1b",
|
||||
["Container brown"] = "konteiner_brown",
|
||||
["Locomotive"] = "teplowoz",
|
||||
["Subsidiary structure 1"] = "hozdomik1",
|
||||
["Pump station"] = "nasos",
|
||||
["Small house 1B area"] = "domik1b-all",
|
||||
["Coach cargo open"] = "wagon-gruz-otkr",
|
||||
["Container red 1"] = "konteiner_red1",
|
||||
["Subsidiary structure G"] = "saray-g",
|
||||
["White_Tyre"] = "H-tyre_W",
|
||||
["FARP Tent"] = "PalatkaB",
|
||||
["Subsidiary structure 3"] = "hozdomik3",
|
||||
["Black_Tyre_RF"] = "H-tyre_B_RF",
|
||||
["Comms tower M"] = "tele_bash_m",
|
||||
[".Command Center"] = "ComCenter",
|
||||
["Fuel tank"] = "toplivo-bak",
|
||||
["Cargo1"] = "ab-212_cargo",
|
||||
["Shelter B"] = "ukrytie_b",
|
||||
["Chemical tank A"] = "him_bak_a",
|
||||
["Shelter"] = "ukrytie",
|
||||
["Small house 1A area"] = "domik1a-all",
|
||||
["Subsidiary structure E"] = "saray-e",
|
||||
["Small house 1A"] = "domik1a",
|
||||
}, -- end of ["shapeNames"]
|
||||
["callsigns"] =
|
||||
{
|
||||
["NATO"] =
|
||||
{
|
||||
["AWACS"] =
|
||||
{
|
||||
["Darkstar"] = 5,
|
||||
["Focus"] = 4,
|
||||
["Wizard"] = 3,
|
||||
["Magic"] = 2,
|
||||
["Overlord"] = 1,
|
||||
}, -- end of ["AWACS"]
|
||||
["rules"] =
|
||||
{
|
||||
["groupLimit"] = 9,
|
||||
}, -- end of ["rules"]
|
||||
["aircraft"] =
|
||||
{
|
||||
["Uzi"] = 3,
|
||||
["Pontiac"] = 8,
|
||||
["Chevy"] = 7,
|
||||
["Dodge"] = 5,
|
||||
["Ford"] = 6,
|
||||
["Enfield"] = 1,
|
||||
["Colt"] = 4,
|
||||
["Springfield"] = 2,
|
||||
}, -- end of ["aircraft"]
|
||||
["unique"] =
|
||||
{
|
||||
["A10"] =
|
||||
{
|
||||
["Boar"] = 10,
|
||||
["Pig"] = 11,
|
||||
["rules"] =
|
||||
{
|
||||
["canUseAircraft"] = true,
|
||||
["appliesTo"] =
|
||||
{
|
||||
[1] = "A-10C",
|
||||
[2] = "A-10A",
|
||||
}, -- end of ["appliesTo"]
|
||||
}, -- end of ["rules"]
|
||||
["Tusk"] = 12,
|
||||
["Hawg"] = 9,
|
||||
}, -- end of ["A10"]
|
||||
}, -- end of ["unique"]
|
||||
["JTAC"] =
|
||||
{
|
||||
["Ferret"] = 10,
|
||||
["Finger"] = 8,
|
||||
["Deathstar"] = 15,
|
||||
["Pointer"] = 4,
|
||||
["Anvil"] = 16,
|
||||
["Darknight"] = 2,
|
||||
["Whiplash"] = 7,
|
||||
["Warrior"] = 3,
|
||||
["Eyeball"] = 5,
|
||||
["Mantis"] = 18,
|
||||
["Playboy"] = 12,
|
||||
["Axeman"] = 1,
|
||||
["Moonbeam"] = 6,
|
||||
["Hammer"] = 13,
|
||||
["Shaba"] = 11,
|
||||
["Badger"] = 19,
|
||||
["Jaguar"] = 14,
|
||||
["Firefly"] = 17,
|
||||
["Pinpoint"] = 9,
|
||||
}, -- end of ["JTAC"]
|
||||
["TANKER"] =
|
||||
{
|
||||
["Texaco"] = 1,
|
||||
["Arco"] = 2,
|
||||
["Shell"] = 3,
|
||||
}, -- end of ["TANKER"]
|
||||
}, -- end of ["NATO"]
|
||||
}, -- end of ["callsigns"]
|
||||
} -- end of const
|
||||
|
||||
@@ -1,187 +1,95 @@
|
||||
deadObjects =
|
||||
{
|
||||
[16781056] =
|
||||
{
|
||||
["objectPos"] =
|
||||
{
|
||||
["y"] = 22.249711990356,
|
||||
["x"] = -292852.15625,
|
||||
["z"] = 654502.0625,
|
||||
}, -- end of ["objectPos"]
|
||||
["objectType"] = "vehicle",
|
||||
["objectData"] =
|
||||
{
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 654625.71428571,
|
||||
["x"] = -292922.85714286,
|
||||
}, -- end of ["point"]
|
||||
["skill"] = "Average",
|
||||
["unit"] =
|
||||
{
|
||||
["id_"] = 16781056,
|
||||
}, -- end of ["unit"]
|
||||
["category"] = "vehicle",
|
||||
["unitName"] = "RuBTRs3",
|
||||
["type"] = "BTR-80",
|
||||
["groupId"] = 13,
|
||||
["groupName"] = "RuBTRs",
|
||||
["countryId"] = 0,
|
||||
["coalition"] = "red",
|
||||
["x"] = -292922.85714286,
|
||||
["y"] = 654625.71428571,
|
||||
["heading"] = -1.7994767003775,
|
||||
["unitId"] = 29,
|
||||
["playerCanDrive"] = true,
|
||||
["country"] = "russia",
|
||||
["pos"] =
|
||||
{
|
||||
["y"] = 22.240369796753,
|
||||
["x"] = -292851.09375,
|
||||
["z"] = 654504.5,
|
||||
}, -- end of ["pos"]
|
||||
}, -- end of ["objectData"]
|
||||
["object"] =
|
||||
{
|
||||
["id_"] = 16781056,
|
||||
}, -- end of ["object"]
|
||||
}, -- end of [16781056]
|
||||
[16780544] =
|
||||
{
|
||||
["objectPos"] =
|
||||
{
|
||||
["y"] = 22.431118011475,
|
||||
["x"] = -292867.15625,
|
||||
["z"] = 654441.25,
|
||||
}, -- end of ["objectPos"]
|
||||
["objectType"] = "vehicle",
|
||||
["objectData"] =
|
||||
{
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 654545.71428571,
|
||||
["x"] = -292842.85714286,
|
||||
}, -- end of ["point"]
|
||||
["skill"] = "Average",
|
||||
["unit"] =
|
||||
{
|
||||
["id_"] = 16780544,
|
||||
}, -- end of ["unit"]
|
||||
["category"] = "vehicle",
|
||||
["unitName"] = "RuBTRs1",
|
||||
["type"] = "BTR-80",
|
||||
["groupId"] = 13,
|
||||
["groupName"] = "RuBTRs",
|
||||
["countryId"] = 0,
|
||||
["coalition"] = "red",
|
||||
["x"] = -292842.85714286,
|
||||
["y"] = 654545.71428571,
|
||||
["heading"] = -1.7994767003775,
|
||||
["unitId"] = 27,
|
||||
["playerCanDrive"] = true,
|
||||
["country"] = "russia",
|
||||
["pos"] =
|
||||
{
|
||||
["y"] = 22.417558670044,
|
||||
["x"] = -292866.03125,
|
||||
["z"] = 654446.125,
|
||||
}, -- end of ["pos"]
|
||||
}, -- end of ["objectData"]
|
||||
["object"] =
|
||||
{
|
||||
["id_"] = 16780544,
|
||||
}, -- end of ["object"]
|
||||
}, -- end of [16780544]
|
||||
[16780800] =
|
||||
{
|
||||
["objectPos"] =
|
||||
{
|
||||
["y"] = 22.133636474609,
|
||||
["x"] = -292848,
|
||||
["z"] = 654535.5,
|
||||
}, -- end of ["objectPos"]
|
||||
["objectType"] = "vehicle",
|
||||
["objectData"] =
|
||||
{
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 654585.71428571,
|
||||
["x"] = -292882.85714286,
|
||||
}, -- end of ["point"]
|
||||
["skill"] = "Average",
|
||||
["unit"] =
|
||||
{
|
||||
["id_"] = 16780800,
|
||||
}, -- end of ["unit"]
|
||||
["category"] = "vehicle",
|
||||
["unitName"] = "RuBTRs2",
|
||||
["type"] = "BTR-80",
|
||||
["groupId"] = 13,
|
||||
["groupName"] = "RuBTRs",
|
||||
["countryId"] = 0,
|
||||
["coalition"] = "red",
|
||||
["x"] = -292882.85714286,
|
||||
["y"] = 654585.71428571,
|
||||
["heading"] = -1.7994767003775,
|
||||
["unitId"] = 28,
|
||||
["playerCanDrive"] = true,
|
||||
["country"] = "russia",
|
||||
["pos"] =
|
||||
{
|
||||
["y"] = 22.13184928894,
|
||||
["x"] = -292848.1875,
|
||||
["z"] = 654536.1875,
|
||||
}, -- end of ["pos"]
|
||||
}, -- end of ["objectData"]
|
||||
["object"] =
|
||||
{
|
||||
["id_"] = 16780800,
|
||||
}, -- end of ["object"]
|
||||
}, -- end of [16780800]
|
||||
[16781568] =
|
||||
{
|
||||
["objectPos"] =
|
||||
{
|
||||
["y"] = 22.361310958862,
|
||||
["x"] = -292856.28125,
|
||||
["z"] = 654460.375,
|
||||
}, -- end of ["objectPos"]
|
||||
["objectType"] = "vehicle",
|
||||
["objectData"] =
|
||||
{
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 654705.71428571,
|
||||
["x"] = -293002.85714286,
|
||||
}, -- end of ["point"]
|
||||
["skill"] = "Average",
|
||||
["unit"] =
|
||||
{
|
||||
["id_"] = 16781568,
|
||||
}, -- end of ["unit"]
|
||||
["category"] = "vehicle",
|
||||
["unitName"] = "RuBTRs5",
|
||||
["type"] = "BTR-80",
|
||||
["groupId"] = 13,
|
||||
["groupName"] = "RuBTRs",
|
||||
["countryId"] = 0,
|
||||
["coalition"] = "red",
|
||||
["x"] = -293002.85714286,
|
||||
["y"] = 654705.71428571,
|
||||
["heading"] = -1.7994767003775,
|
||||
["unitId"] = 31,
|
||||
["playerCanDrive"] = true,
|
||||
["country"] = "russia",
|
||||
["pos"] =
|
||||
{
|
||||
["y"] = 22.360494613647,
|
||||
["x"] = -292856.3125,
|
||||
["z"] = 654460.8125,
|
||||
}, -- end of ["pos"]
|
||||
}, -- end of ["objectData"]
|
||||
["object"] =
|
||||
{
|
||||
["id_"] = 16781568,
|
||||
}, -- end of ["object"]
|
||||
}, -- end of [16781568]
|
||||
[16780800] =
|
||||
{
|
||||
["objectPos"] =
|
||||
{
|
||||
["y"] = 22.192852020264,
|
||||
["x"] = -292849.34375,
|
||||
["z"] = 654519.625,
|
||||
}, -- end of ["objectPos"]
|
||||
["objectType"] = "vehicle",
|
||||
["objectData"] =
|
||||
{
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 654585.71428571,
|
||||
["x"] = -292882.85714286,
|
||||
}, -- end of ["point"]
|
||||
["skill"] = "Average",
|
||||
["unit"] =
|
||||
{
|
||||
["id_"] = 16780800,
|
||||
}, -- end of ["unit"]
|
||||
["category"] = "vehicle",
|
||||
["unitName"] = "RuBTRs2",
|
||||
["type"] = "BTR-80",
|
||||
["groupId"] = 13,
|
||||
["groupName"] = "RuBTRs",
|
||||
["countryId"] = 0,
|
||||
["coalition"] = "red",
|
||||
["x"] = -292882.85714286,
|
||||
["y"] = 654585.71428571,
|
||||
["heading"] = -1.7994767003775,
|
||||
["unitId"] = 28,
|
||||
["playerCanDrive"] = true,
|
||||
["country"] = "russia",
|
||||
["pos"] =
|
||||
{
|
||||
["y"] = 22.182994842529,
|
||||
["x"] = -292848.875,
|
||||
["z"] = 654522.0625,
|
||||
}, -- end of ["pos"]
|
||||
}, -- end of ["objectData"]
|
||||
["object"] =
|
||||
{
|
||||
["id_"] = 16780800,
|
||||
}, -- end of ["object"]
|
||||
}, -- end of [16780800]
|
||||
[16780544] =
|
||||
{
|
||||
["objectPos"] =
|
||||
{
|
||||
["y"] = 22.386783599854,
|
||||
["x"] = -292863.46875,
|
||||
["z"] = 654457.125,
|
||||
}, -- end of ["objectPos"]
|
||||
["objectType"] = "vehicle",
|
||||
["objectData"] =
|
||||
{
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 654545.71428571,
|
||||
["x"] = -292842.85714286,
|
||||
}, -- end of ["point"]
|
||||
["skill"] = "Average",
|
||||
["unit"] =
|
||||
{
|
||||
["id_"] = 16780544,
|
||||
}, -- end of ["unit"]
|
||||
["category"] = "vehicle",
|
||||
["unitName"] = "RuBTRs1",
|
||||
["type"] = "BTR-80",
|
||||
["groupId"] = 13,
|
||||
["groupName"] = "RuBTRs",
|
||||
["countryId"] = 0,
|
||||
["coalition"] = "red",
|
||||
["x"] = -292842.85714286,
|
||||
["y"] = 654545.71428571,
|
||||
["heading"] = -1.7994767003775,
|
||||
["unitId"] = 27,
|
||||
["playerCanDrive"] = true,
|
||||
["country"] = "russia",
|
||||
["pos"] =
|
||||
{
|
||||
["y"] = 22.385175704956,
|
||||
["x"] = -292863.3125,
|
||||
["z"] = 654457.6875,
|
||||
}, -- end of ["pos"]
|
||||
}, -- end of ["objectData"]
|
||||
["object"] =
|
||||
{
|
||||
["id_"] = 16780544,
|
||||
}, -- end of ["object"]
|
||||
}, -- end of [16780544]
|
||||
} -- end of deadObjects
|
||||
|
||||
+1393
-2989
File diff suppressed because it is too large
Load Diff
+2852
-2805
File diff suppressed because it is too large
Load Diff
+2852
-2805
File diff suppressed because it is too large
Load Diff
+220
-192
@@ -1,195 +1,223 @@
|
||||
humansById =
|
||||
{
|
||||
[11] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 636428.57142857,
|
||||
["x"] = -318142.85714286,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "104th FS Maryland ANG, Baltimore (MD)",
|
||||
["onboard_num"] = "52",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "A-10C",
|
||||
["country"] = "usa",
|
||||
["psi"] = 0.67060113146646,
|
||||
["unitName"] = "A-10C Client #1",
|
||||
["groupName"] = "A-10C Client #1",
|
||||
["coalition"] = "blue",
|
||||
["countryId"] = 2,
|
||||
["x"] = -318142.85714286,
|
||||
["y"] = 636428.57142857,
|
||||
["unitId"] = 11,
|
||||
["heading"] = -0.67060113146646,
|
||||
["skill"] = "Client",
|
||||
["callsign"] =
|
||||
{
|
||||
[1] = 3,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
["name"] = "Uzi11",
|
||||
}, -- end of ["callsign"]
|
||||
["groupId"] = 6,
|
||||
}, -- end of [11]
|
||||
[8] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 662142.85714286,
|
||||
["x"] = -288142.85714286,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "19th Fighter SQN (AK)",
|
||||
["onboard_num"] = "10",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "F-15C",
|
||||
["country"] = "usa",
|
||||
["psi"] = 0.57883789069348,
|
||||
["unitName"] = "F-15C Client #1",
|
||||
["groupName"] = "F-15C Client #1",
|
||||
["coalition"] = "blue",
|
||||
["countryId"] = 2,
|
||||
["x"] = -288142.85714286,
|
||||
["y"] = 662142.85714286,
|
||||
["unitId"] = 8,
|
||||
["heading"] = -0.57883789069348,
|
||||
["skill"] = "Client",
|
||||
["callsign"] =
|
||||
{
|
||||
[1] = 2,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
["name"] = "Springfield11",
|
||||
}, -- end of ["callsign"]
|
||||
["groupId"] = 4,
|
||||
}, -- end of [8]
|
||||
[10] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 668428.57142857,
|
||||
["x"] = -287000,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "19th Fighter SQN (AK)",
|
||||
["onboard_num"] = "10",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "F-15C",
|
||||
["country"] = "usa",
|
||||
["psi"] = 0.57883789069348,
|
||||
["unitName"] = "F-15C Client #2",
|
||||
["groupName"] = "F-15C Client #2",
|
||||
["coalition"] = "blue",
|
||||
["countryId"] = 2,
|
||||
["x"] = -287000,
|
||||
["y"] = 668428.57142857,
|
||||
["unitId"] = 10,
|
||||
["heading"] = -0.57883789069348,
|
||||
["skill"] = "Client",
|
||||
["callsign"] =
|
||||
{
|
||||
[1] = 2,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
["name"] = "Springfield11",
|
||||
}, -- end of ["callsign"]
|
||||
["groupId"] = 5,
|
||||
}, -- end of [10]
|
||||
[12] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 644428.57142857,
|
||||
["x"] = -315857.14285714,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "104th FS Maryland ANG, Baltimore (MD)",
|
||||
["onboard_num"] = "52",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "A-10C",
|
||||
["country"] = "usa",
|
||||
["psi"] = 0.66079849060746,
|
||||
["unitName"] = "A-10C Client #2",
|
||||
["groupName"] = "A-10C Client #2",
|
||||
["coalition"] = "blue",
|
||||
["countryId"] = 2,
|
||||
["x"] = -315857.14285714,
|
||||
["y"] = 644428.57142857,
|
||||
["unitId"] = 12,
|
||||
["heading"] = -0.66079849060746,
|
||||
["skill"] = "Client",
|
||||
["callsign"] =
|
||||
{
|
||||
[1] = 3,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
["name"] = "Uzi11",
|
||||
}, -- end of ["callsign"]
|
||||
["groupId"] = 7,
|
||||
}, -- end of [12]
|
||||
[42] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 590391.42857142,
|
||||
["x"] = -250185.71428571,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "279th kiap 1st squad navy",
|
||||
["onboard_num"] = "53",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "Su-33",
|
||||
["country"] = "russia",
|
||||
["psi"] = 0,
|
||||
["unitName"] = "Su-33 Client #1",
|
||||
["groupName"] = "Su-33 Client #1",
|
||||
["coalition"] = "red",
|
||||
["countryId"] = 0,
|
||||
["x"] = -250185.71428571,
|
||||
["y"] = 590391.42857142,
|
||||
["unitId"] = 42,
|
||||
["heading"] = 0,
|
||||
["skill"] = "Client",
|
||||
["callsign"] = 104,
|
||||
["groupId"] = 20,
|
||||
}, -- end of [42]
|
||||
[43] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 597819.99999999,
|
||||
["x"] = -235614.28571428,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "279th kiap 1st squad navy",
|
||||
["onboard_num"] = "53",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "Su-33",
|
||||
["country"] = "russia",
|
||||
["psi"] = 0,
|
||||
["unitName"] = "Su-33 Client #2",
|
||||
["groupName"] = "Su-33 Client #2",
|
||||
["coalition"] = "red",
|
||||
["countryId"] = 0,
|
||||
["x"] = -235614.28571428,
|
||||
["y"] = 597819.99999999,
|
||||
["unitId"] = 43,
|
||||
["heading"] = 0,
|
||||
["skill"] = "Client",
|
||||
["callsign"] = 104,
|
||||
["groupId"] = 21,
|
||||
}, -- end of [43]
|
||||
[11] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 636428.57142857,
|
||||
["x"] = -318142.85714286,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "104th FS Maryland ANG, Baltimore (MD)",
|
||||
["onboard_num"] = "52",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "A-10C",
|
||||
["country"] = "usa",
|
||||
["psi"] = 0.67060113146646,
|
||||
["unitName"] = "A-10C Client #1_unit",
|
||||
["groupName"] = "A-10C Client #1",
|
||||
["coalition"] = "blue",
|
||||
["countryId"] = 2,
|
||||
["x"] = -318142.85714286,
|
||||
["y"] = 636428.57142857,
|
||||
["unitId"] = 11,
|
||||
["heading"] = -0.67060113146646,
|
||||
["skill"] = "Client",
|
||||
["callsign"] =
|
||||
{
|
||||
[1] = 3,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
["name"] = "Uzi11",
|
||||
}, -- end of ["callsign"]
|
||||
["groupId"] = 6,
|
||||
}, -- end of [11]
|
||||
[8] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 662142.85714286,
|
||||
["x"] = -288142.85714286,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "19th Fighter SQN (AK)",
|
||||
["onboard_num"] = "10",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "F-15C",
|
||||
["country"] = "usa",
|
||||
["psi"] = 0.57883789069348,
|
||||
["unitName"] = "F-15C Client #1_unit",
|
||||
["groupName"] = "F-15C Client #1",
|
||||
["coalition"] = "blue",
|
||||
["countryId"] = 2,
|
||||
["x"] = -288142.85714286,
|
||||
["y"] = 662142.85714286,
|
||||
["unitId"] = 8,
|
||||
["heading"] = -0.57883789069348,
|
||||
["skill"] = "Client",
|
||||
["callsign"] =
|
||||
{
|
||||
[1] = 2,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
["name"] = "Springfield11",
|
||||
}, -- end of ["callsign"]
|
||||
["groupId"] = 4,
|
||||
}, -- end of [8]
|
||||
[10] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 668428.57142857,
|
||||
["x"] = -287000,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "19th Fighter SQN (AK)",
|
||||
["onboard_num"] = "10",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "F-15C",
|
||||
["country"] = "usa",
|
||||
["psi"] = 0.57883789069348,
|
||||
["unitName"] = "F-15C Client #2_unit",
|
||||
["groupName"] = "F-15C Client #2",
|
||||
["coalition"] = "blue",
|
||||
["countryId"] = 2,
|
||||
["x"] = -287000,
|
||||
["y"] = 668428.57142857,
|
||||
["unitId"] = 10,
|
||||
["heading"] = -0.57883789069348,
|
||||
["skill"] = "Client",
|
||||
["callsign"] =
|
||||
{
|
||||
[1] = 2,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
["name"] = "Springfield11",
|
||||
}, -- end of ["callsign"]
|
||||
["groupId"] = 5,
|
||||
}, -- end of [10]
|
||||
[12] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 644428.57142857,
|
||||
["x"] = -315857.14285714,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "104th FS Maryland ANG, Baltimore (MD)",
|
||||
["onboard_num"] = "52",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "A-10C",
|
||||
["country"] = "usa",
|
||||
["psi"] = 0.66079849060746,
|
||||
["unitName"] = "A-10C Client #2_unit",
|
||||
["groupName"] = "A-10C Client #2",
|
||||
["coalition"] = "blue",
|
||||
["countryId"] = 2,
|
||||
["x"] = -315857.14285714,
|
||||
["y"] = 644428.57142857,
|
||||
["unitId"] = 12,
|
||||
["heading"] = -0.66079849060746,
|
||||
["skill"] = "Client",
|
||||
["callsign"] =
|
||||
{
|
||||
[1] = 3,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
["name"] = "Uzi11",
|
||||
}, -- end of ["callsign"]
|
||||
["groupId"] = 7,
|
||||
}, -- end of [12]
|
||||
[48] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 590471.42857142,
|
||||
["x"] = -250265.71428571,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "279th kiap 1st squad navy",
|
||||
["onboard_num"] = "054",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "Su-33",
|
||||
["country"] = "russia",
|
||||
["psi"] = 0,
|
||||
["unitName"] = "Su-33 Client #3Unit",
|
||||
["groupName"] = "Su-33 Client #1",
|
||||
["coalition"] = "red",
|
||||
["countryId"] = 0,
|
||||
["x"] = -250265.71428571,
|
||||
["y"] = 590471.42857142,
|
||||
["unitId"] = 48,
|
||||
["heading"] = 0,
|
||||
["skill"] = "Client",
|
||||
["callsign"] = 106,
|
||||
["groupId"] = 20,
|
||||
}, -- end of [48]
|
||||
[42] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 590391.42857142,
|
||||
["x"] = -250185.71428571,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "279th kiap 1st squad navy",
|
||||
["onboard_num"] = "53",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "Su-33",
|
||||
["country"] = "russia",
|
||||
["psi"] = 0,
|
||||
["unitName"] = "Su-33 Client #1Unit",
|
||||
["groupName"] = "Su-33 Client #1",
|
||||
["coalition"] = "red",
|
||||
["countryId"] = 0,
|
||||
["x"] = -250185.71428571,
|
||||
["y"] = 590391.42857142,
|
||||
["unitId"] = 42,
|
||||
["heading"] = 0,
|
||||
["skill"] = "Client",
|
||||
["callsign"] = 104,
|
||||
["groupId"] = 20,
|
||||
}, -- end of [42]
|
||||
[47] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 590431.42857142,
|
||||
["x"] = -250225.71428571,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "279th kiap 1st squad navy",
|
||||
["onboard_num"] = "010",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "Su-33",
|
||||
["country"] = "russia",
|
||||
["psi"] = 0,
|
||||
["unitName"] = "Su-33 Client #2Unit",
|
||||
["groupName"] = "Su-33 Client #1",
|
||||
["coalition"] = "red",
|
||||
["countryId"] = 0,
|
||||
["x"] = -250225.71428571,
|
||||
["y"] = 590431.42857142,
|
||||
["unitId"] = 47,
|
||||
["heading"] = 0,
|
||||
["skill"] = "Client",
|
||||
["callsign"] = 105,
|
||||
["groupId"] = 20,
|
||||
}, -- end of [47]
|
||||
} -- end of humansById
|
||||
|
||||
@@ -1,195 +1,223 @@
|
||||
humansByName =
|
||||
{
|
||||
["A-10C Client #2"] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 644428.57142857,
|
||||
["x"] = -315857.14285714,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "104th FS Maryland ANG, Baltimore (MD)",
|
||||
["onboard_num"] = "52",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "A-10C",
|
||||
["country"] = "usa",
|
||||
["psi"] = 0.66079849060746,
|
||||
["unitName"] = "A-10C Client #2",
|
||||
["groupName"] = "A-10C Client #2",
|
||||
["coalition"] = "blue",
|
||||
["countryId"] = 2,
|
||||
["x"] = -315857.14285714,
|
||||
["y"] = 644428.57142857,
|
||||
["unitId"] = 12,
|
||||
["heading"] = -0.66079849060746,
|
||||
["skill"] = "Client",
|
||||
["callsign"] =
|
||||
{
|
||||
[1] = 3,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
["name"] = "Uzi11",
|
||||
}, -- end of ["callsign"]
|
||||
["groupId"] = 7,
|
||||
}, -- end of ["A-10C Client #2"]
|
||||
["F-15C Client #1"] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 662142.85714286,
|
||||
["x"] = -288142.85714286,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "19th Fighter SQN (AK)",
|
||||
["onboard_num"] = "10",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "F-15C",
|
||||
["country"] = "usa",
|
||||
["psi"] = 0.57883789069348,
|
||||
["unitName"] = "F-15C Client #1",
|
||||
["groupName"] = "F-15C Client #1",
|
||||
["coalition"] = "blue",
|
||||
["countryId"] = 2,
|
||||
["x"] = -288142.85714286,
|
||||
["y"] = 662142.85714286,
|
||||
["unitId"] = 8,
|
||||
["heading"] = -0.57883789069348,
|
||||
["skill"] = "Client",
|
||||
["callsign"] =
|
||||
{
|
||||
[1] = 2,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
["name"] = "Springfield11",
|
||||
}, -- end of ["callsign"]
|
||||
["groupId"] = 4,
|
||||
}, -- end of ["F-15C Client #1"]
|
||||
["Su-33 Client #2"] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 597819.99999999,
|
||||
["x"] = -235614.28571428,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "279th kiap 1st squad navy",
|
||||
["onboard_num"] = "53",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "Su-33",
|
||||
["country"] = "russia",
|
||||
["psi"] = 0,
|
||||
["unitName"] = "Su-33 Client #2",
|
||||
["groupName"] = "Su-33 Client #2",
|
||||
["coalition"] = "red",
|
||||
["countryId"] = 0,
|
||||
["x"] = -235614.28571428,
|
||||
["y"] = 597819.99999999,
|
||||
["unitId"] = 43,
|
||||
["heading"] = 0,
|
||||
["skill"] = "Client",
|
||||
["callsign"] = 104,
|
||||
["groupId"] = 21,
|
||||
}, -- end of ["Su-33 Client #2"]
|
||||
["Su-33 Client #1"] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 590391.42857142,
|
||||
["x"] = -250185.71428571,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "279th kiap 1st squad navy",
|
||||
["onboard_num"] = "53",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "Su-33",
|
||||
["country"] = "russia",
|
||||
["psi"] = 0,
|
||||
["unitName"] = "Su-33 Client #1",
|
||||
["groupName"] = "Su-33 Client #1",
|
||||
["coalition"] = "red",
|
||||
["countryId"] = 0,
|
||||
["x"] = -250185.71428571,
|
||||
["y"] = 590391.42857142,
|
||||
["unitId"] = 42,
|
||||
["heading"] = 0,
|
||||
["skill"] = "Client",
|
||||
["callsign"] = 104,
|
||||
["groupId"] = 20,
|
||||
}, -- end of ["Su-33 Client #1"]
|
||||
["F-15C Client #2"] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 668428.57142857,
|
||||
["x"] = -287000,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "19th Fighter SQN (AK)",
|
||||
["onboard_num"] = "10",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "F-15C",
|
||||
["country"] = "usa",
|
||||
["psi"] = 0.57883789069348,
|
||||
["unitName"] = "F-15C Client #2",
|
||||
["groupName"] = "F-15C Client #2",
|
||||
["coalition"] = "blue",
|
||||
["countryId"] = 2,
|
||||
["x"] = -287000,
|
||||
["y"] = 668428.57142857,
|
||||
["unitId"] = 10,
|
||||
["heading"] = -0.57883789069348,
|
||||
["skill"] = "Client",
|
||||
["callsign"] =
|
||||
{
|
||||
[1] = 2,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
["name"] = "Springfield11",
|
||||
}, -- end of ["callsign"]
|
||||
["groupId"] = 5,
|
||||
}, -- end of ["F-15C Client #2"]
|
||||
["A-10C Client #1"] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 636428.57142857,
|
||||
["x"] = -318142.85714286,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "104th FS Maryland ANG, Baltimore (MD)",
|
||||
["onboard_num"] = "52",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "A-10C",
|
||||
["country"] = "usa",
|
||||
["psi"] = 0.67060113146646,
|
||||
["unitName"] = "A-10C Client #1",
|
||||
["groupName"] = "A-10C Client #1",
|
||||
["coalition"] = "blue",
|
||||
["countryId"] = 2,
|
||||
["x"] = -318142.85714286,
|
||||
["y"] = 636428.57142857,
|
||||
["unitId"] = 11,
|
||||
["heading"] = -0.67060113146646,
|
||||
["skill"] = "Client",
|
||||
["callsign"] =
|
||||
{
|
||||
[1] = 3,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
["name"] = "Uzi11",
|
||||
}, -- end of ["callsign"]
|
||||
["groupId"] = 6,
|
||||
}, -- end of ["A-10C Client #1"]
|
||||
["F-15C Client #1_unit"] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 662142.85714286,
|
||||
["x"] = -288142.85714286,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "19th Fighter SQN (AK)",
|
||||
["onboard_num"] = "10",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "F-15C",
|
||||
["country"] = "usa",
|
||||
["psi"] = 0.57883789069348,
|
||||
["unitName"] = "F-15C Client #1_unit",
|
||||
["groupName"] = "F-15C Client #1",
|
||||
["coalition"] = "blue",
|
||||
["countryId"] = 2,
|
||||
["x"] = -288142.85714286,
|
||||
["y"] = 662142.85714286,
|
||||
["unitId"] = 8,
|
||||
["heading"] = -0.57883789069348,
|
||||
["skill"] = "Client",
|
||||
["callsign"] =
|
||||
{
|
||||
[1] = 2,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
["name"] = "Springfield11",
|
||||
}, -- end of ["callsign"]
|
||||
["groupId"] = 4,
|
||||
}, -- end of ["F-15C Client #1_unit"]
|
||||
["F-15C Client #2_unit"] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 668428.57142857,
|
||||
["x"] = -287000,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "19th Fighter SQN (AK)",
|
||||
["onboard_num"] = "10",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "F-15C",
|
||||
["country"] = "usa",
|
||||
["psi"] = 0.57883789069348,
|
||||
["unitName"] = "F-15C Client #2_unit",
|
||||
["groupName"] = "F-15C Client #2",
|
||||
["coalition"] = "blue",
|
||||
["countryId"] = 2,
|
||||
["x"] = -287000,
|
||||
["y"] = 668428.57142857,
|
||||
["unitId"] = 10,
|
||||
["heading"] = -0.57883789069348,
|
||||
["skill"] = "Client",
|
||||
["callsign"] =
|
||||
{
|
||||
[1] = 2,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
["name"] = "Springfield11",
|
||||
}, -- end of ["callsign"]
|
||||
["groupId"] = 5,
|
||||
}, -- end of ["F-15C Client #2_unit"]
|
||||
["Su-33 Client #3Unit"] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 590471.42857142,
|
||||
["x"] = -250265.71428571,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "279th kiap 1st squad navy",
|
||||
["onboard_num"] = "054",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "Su-33",
|
||||
["country"] = "russia",
|
||||
["psi"] = 0,
|
||||
["unitName"] = "Su-33 Client #3Unit",
|
||||
["groupName"] = "Su-33 Client #1",
|
||||
["coalition"] = "red",
|
||||
["countryId"] = 0,
|
||||
["x"] = -250265.71428571,
|
||||
["y"] = 590471.42857142,
|
||||
["unitId"] = 48,
|
||||
["heading"] = 0,
|
||||
["skill"] = "Client",
|
||||
["callsign"] = 106,
|
||||
["groupId"] = 20,
|
||||
}, -- end of ["Su-33 Client #3Unit"]
|
||||
["A-10C Client #1_unit"] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 636428.57142857,
|
||||
["x"] = -318142.85714286,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "104th FS Maryland ANG, Baltimore (MD)",
|
||||
["onboard_num"] = "52",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "A-10C",
|
||||
["country"] = "usa",
|
||||
["psi"] = 0.67060113146646,
|
||||
["unitName"] = "A-10C Client #1_unit",
|
||||
["groupName"] = "A-10C Client #1",
|
||||
["coalition"] = "blue",
|
||||
["countryId"] = 2,
|
||||
["x"] = -318142.85714286,
|
||||
["y"] = 636428.57142857,
|
||||
["unitId"] = 11,
|
||||
["heading"] = -0.67060113146646,
|
||||
["skill"] = "Client",
|
||||
["callsign"] =
|
||||
{
|
||||
[1] = 3,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
["name"] = "Uzi11",
|
||||
}, -- end of ["callsign"]
|
||||
["groupId"] = 6,
|
||||
}, -- end of ["A-10C Client #1_unit"]
|
||||
["Su-33 Client #2Unit"] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 590431.42857142,
|
||||
["x"] = -250225.71428571,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "279th kiap 1st squad navy",
|
||||
["onboard_num"] = "010",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "Su-33",
|
||||
["country"] = "russia",
|
||||
["psi"] = 0,
|
||||
["unitName"] = "Su-33 Client #2Unit",
|
||||
["groupName"] = "Su-33 Client #1",
|
||||
["coalition"] = "red",
|
||||
["countryId"] = 0,
|
||||
["x"] = -250225.71428571,
|
||||
["y"] = 590431.42857142,
|
||||
["unitId"] = 47,
|
||||
["heading"] = 0,
|
||||
["skill"] = "Client",
|
||||
["callsign"] = 105,
|
||||
["groupId"] = 20,
|
||||
}, -- end of ["Su-33 Client #2Unit"]
|
||||
["A-10C Client #2_unit"] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 644428.57142857,
|
||||
["x"] = -315857.14285714,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "104th FS Maryland ANG, Baltimore (MD)",
|
||||
["onboard_num"] = "52",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "A-10C",
|
||||
["country"] = "usa",
|
||||
["psi"] = 0.66079849060746,
|
||||
["unitName"] = "A-10C Client #2_unit",
|
||||
["groupName"] = "A-10C Client #2",
|
||||
["coalition"] = "blue",
|
||||
["countryId"] = 2,
|
||||
["x"] = -315857.14285714,
|
||||
["y"] = 644428.57142857,
|
||||
["unitId"] = 12,
|
||||
["heading"] = -0.66079849060746,
|
||||
["skill"] = "Client",
|
||||
["callsign"] =
|
||||
{
|
||||
[1] = 3,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
["name"] = "Uzi11",
|
||||
}, -- end of ["callsign"]
|
||||
["groupId"] = 7,
|
||||
}, -- end of ["A-10C Client #2_unit"]
|
||||
["Su-33 Client #1Unit"] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 590391.42857142,
|
||||
["x"] = -250185.71428571,
|
||||
}, -- end of ["point"]
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "279th kiap 1st squad navy",
|
||||
["onboard_num"] = "53",
|
||||
["category"] = "plane",
|
||||
["speed"] = 138.88888888889,
|
||||
["type"] = "Su-33",
|
||||
["country"] = "russia",
|
||||
["psi"] = 0,
|
||||
["unitName"] = "Su-33 Client #1Unit",
|
||||
["groupName"] = "Su-33 Client #1",
|
||||
["coalition"] = "red",
|
||||
["countryId"] = 0,
|
||||
["x"] = -250185.71428571,
|
||||
["y"] = 590391.42857142,
|
||||
["unitId"] = 42,
|
||||
["heading"] = 0,
|
||||
["skill"] = "Client",
|
||||
["callsign"] = 104,
|
||||
["groupId"] = 20,
|
||||
}, -- end of ["Su-33 Client #1Unit"]
|
||||
} -- end of humansByName
|
||||
|
||||
@@ -1,27 +1,22 @@
|
||||
missionData =
|
||||
{
|
||||
["version"] = 7,
|
||||
["files"] =
|
||||
{
|
||||
[1] = "Thunder2.wav",
|
||||
[2] = "Briefing-01{225F004F-92E4-4c3e-A5F0-2BA49929055A}.jpg",
|
||||
[3] = "mist.lua",
|
||||
[4] = "ExplodeGround0.ogg",
|
||||
[5] = "Rain.ogg",
|
||||
}, -- end of ["files"]
|
||||
["startTime"] = 43200,
|
||||
["theatre"] = "Caucasus",
|
||||
["bullseye"] =
|
||||
{
|
||||
["blue"] =
|
||||
{
|
||||
["y"] = 617414,
|
||||
["x"] = -291014,
|
||||
}, -- end of ["blue"]
|
||||
["red"] =
|
||||
{
|
||||
["y"] = 371700,
|
||||
["x"] = 11557,
|
||||
}, -- end of ["red"]
|
||||
}, -- end of ["bullseye"]
|
||||
["version"] = 11,
|
||||
["files"] =
|
||||
{
|
||||
}, -- end of ["files"]
|
||||
["startTime"] = 43200,
|
||||
["theatre"] = "Caucasus",
|
||||
["bullseye"] =
|
||||
{
|
||||
["blue"] =
|
||||
{
|
||||
["y"] = 617414,
|
||||
["x"] = -291014,
|
||||
}, -- end of ["blue"]
|
||||
["red"] =
|
||||
{
|
||||
["y"] = 371700,
|
||||
["x"] = 11557,
|
||||
}, -- end of ["red"]
|
||||
}, -- end of ["bullseye"]
|
||||
} -- end of missionData
|
||||
|
||||
+186
-186
@@ -1,189 +1,189 @@
|
||||
navPoints =
|
||||
{
|
||||
["blue"] =
|
||||
{
|
||||
[1] =
|
||||
{
|
||||
["y"] = 670391.42857142,
|
||||
["x"] = -260757.14285714,
|
||||
["name"] = "DODGE",
|
||||
["callsignStr"] = "DODGE",
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -260757.14285714,
|
||||
["z"] = 670391.42857142,
|
||||
}, -- end of ["point"]
|
||||
["properties"] =
|
||||
{
|
||||
["vnav"] = 1,
|
||||
["scale"] = 0,
|
||||
["vangle"] = 0,
|
||||
["angle"] = 0,
|
||||
["steer"] = 2,
|
||||
}, -- end of ["properties"]
|
||||
["groupId"] = 22,
|
||||
["callsign"] = 3,
|
||||
}, -- end of [1]
|
||||
[2] =
|
||||
{
|
||||
["y"] = 659819.99999999,
|
||||
["x"] = -257614.28571428,
|
||||
["name"] = "KB1SE",
|
||||
["callsignStr"] = "KB1SE",
|
||||
["properties"] =
|
||||
{
|
||||
["vnav"] = 1,
|
||||
["scale"] = 0,
|
||||
["vangle"] = 0,
|
||||
["angle"] = 0,
|
||||
["steer"] = 2,
|
||||
}, -- end of ["properties"]
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -257614.28571428,
|
||||
["z"] = 659819.99999999,
|
||||
}, -- end of ["point"]
|
||||
["groupId"] = 23,
|
||||
}, -- end of [2]
|
||||
[3] =
|
||||
{
|
||||
["y"] = 643534.28571428,
|
||||
["x"] = -257900,
|
||||
["name"] = "KB1SW",
|
||||
["callsignStr"] = "KB1SW",
|
||||
["properties"] =
|
||||
{
|
||||
["vnav"] = 1,
|
||||
["scale"] = 0,
|
||||
["vangle"] = 0,
|
||||
["angle"] = 0,
|
||||
["steer"] = 2,
|
||||
}, -- end of ["properties"]
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -257900,
|
||||
["z"] = 643534.28571428,
|
||||
}, -- end of ["point"]
|
||||
["groupId"] = 24,
|
||||
}, -- end of [3]
|
||||
[4] =
|
||||
{
|
||||
["y"] = 643248.57142856,
|
||||
["x"] = -242471.42857143,
|
||||
["name"] = "KB1NW",
|
||||
["callsignStr"] = "KB1NW",
|
||||
["properties"] =
|
||||
{
|
||||
["vnav"] = 1,
|
||||
["scale"] = 0,
|
||||
["vangle"] = 0,
|
||||
["angle"] = 0,
|
||||
["steer"] = 2,
|
||||
}, -- end of ["properties"]
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -242471.42857143,
|
||||
["z"] = 643248.57142856,
|
||||
}, -- end of ["point"]
|
||||
["groupId"] = 25,
|
||||
}, -- end of [4]
|
||||
[5] =
|
||||
{
|
||||
["y"] = 659248.57142856,
|
||||
["x"] = -243614.28571428,
|
||||
["name"] = "KB1NE",
|
||||
["callsignStr"] = "KB1NE",
|
||||
["properties"] =
|
||||
{
|
||||
["vnav"] = 1,
|
||||
["scale"] = 0,
|
||||
["vangle"] = 0,
|
||||
["angle"] = 0,
|
||||
["steer"] = 2,
|
||||
}, -- end of ["properties"]
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -243614.28571428,
|
||||
["z"] = 659248.57142856,
|
||||
}, -- end of ["point"]
|
||||
["groupId"] = 26,
|
||||
}, -- end of [5]
|
||||
[6] =
|
||||
{
|
||||
["y"] = 625534.28571428,
|
||||
["x"] = -309328.57142857,
|
||||
["name"] = "MAZDA",
|
||||
["callsignStr"] = "MAZDA",
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -309328.57142857,
|
||||
["z"] = 625534.28571428,
|
||||
}, -- end of ["point"]
|
||||
["properties"] =
|
||||
{
|
||||
["vnav"] = 1,
|
||||
["scale"] = 0,
|
||||
["vangle"] = 0,
|
||||
["angle"] = 0,
|
||||
["steer"] = 2,
|
||||
}, -- end of ["properties"]
|
||||
["groupId"] = 27,
|
||||
["callsign"] = 4,
|
||||
}, -- end of [6]
|
||||
}, -- end of ["blue"]
|
||||
["red"] =
|
||||
{
|
||||
[1] =
|
||||
{
|
||||
["y"] = 587534.28571428,
|
||||
["x"] = -295042.85714285,
|
||||
["name"] = "ADDER",
|
||||
["callsignStr"] = "ADDER",
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -295042.85714285,
|
||||
["z"] = 587534.28571428,
|
||||
}, -- end of ["point"]
|
||||
["properties"] =
|
||||
{
|
||||
["vnav"] = 1,
|
||||
["scale"] = 0,
|
||||
["vangle"] = 0,
|
||||
["angle"] = 0,
|
||||
["steer"] = 2,
|
||||
}, -- end of ["properties"]
|
||||
["groupId"] = 28,
|
||||
["callsign"] = 8,
|
||||
}, -- end of [1]
|
||||
[2] =
|
||||
{
|
||||
["y"] = 595248.57142856,
|
||||
["x"] = -276757.14285714,
|
||||
["name"] = "MAZDA",
|
||||
["callsignStr"] = "MAZDA",
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -276757.14285714,
|
||||
["z"] = 595248.57142856,
|
||||
}, -- end of ["point"]
|
||||
["properties"] =
|
||||
{
|
||||
["vnav"] = 1,
|
||||
["scale"] = 0,
|
||||
["vangle"] = 0,
|
||||
["angle"] = 0,
|
||||
["steer"] = 2,
|
||||
}, -- end of ["properties"]
|
||||
["groupId"] = 29,
|
||||
["callsign"] = 4,
|
||||
}, -- end of [2]
|
||||
}, -- end of ["red"]
|
||||
["blue"] =
|
||||
{
|
||||
[1] =
|
||||
{
|
||||
["y"] = 643248.57142856,
|
||||
["x"] = -242471.42857143,
|
||||
["name"] = "KB1NW",
|
||||
["callsignStr"] = "KB1NW",
|
||||
["id"] = 3,
|
||||
["properties"] =
|
||||
{
|
||||
["vnav"] = 1,
|
||||
["scale"] = 0,
|
||||
["angle"] = 0,
|
||||
["vangle"] = 0,
|
||||
["steer"] = 2,
|
||||
}, -- end of ["properties"]
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -242471.42857143,
|
||||
["z"] = 643248.57142856,
|
||||
}, -- end of ["point"]
|
||||
}, -- end of [1]
|
||||
[2] =
|
||||
{
|
||||
["y"] = 659819.99999999,
|
||||
["x"] = -257614.28571428,
|
||||
["name"] = "KB1SE",
|
||||
["callsignStr"] = "KB1SE",
|
||||
["id"] = 4,
|
||||
["properties"] =
|
||||
{
|
||||
["vnav"] = 1,
|
||||
["scale"] = 0,
|
||||
["angle"] = 0,
|
||||
["vangle"] = 0,
|
||||
["steer"] = 2,
|
||||
}, -- end of ["properties"]
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -257614.28571428,
|
||||
["z"] = 659819.99999999,
|
||||
}, -- end of ["point"]
|
||||
}, -- end of [2]
|
||||
[3] =
|
||||
{
|
||||
["y"] = 643534.28571428,
|
||||
["x"] = -257900,
|
||||
["name"] = "KB1SW",
|
||||
["callsignStr"] = "KB1SW",
|
||||
["id"] = 5,
|
||||
["properties"] =
|
||||
{
|
||||
["vnav"] = 1,
|
||||
["scale"] = 0,
|
||||
["angle"] = 0,
|
||||
["vangle"] = 0,
|
||||
["steer"] = 2,
|
||||
}, -- end of ["properties"]
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -257900,
|
||||
["z"] = 643534.28571428,
|
||||
}, -- end of ["point"]
|
||||
}, -- end of [3]
|
||||
[4] =
|
||||
{
|
||||
["y"] = 659248.57142856,
|
||||
["x"] = -243614.28571428,
|
||||
["name"] = "KB1NE",
|
||||
["callsignStr"] = "KB1NE",
|
||||
["id"] = 6,
|
||||
["properties"] =
|
||||
{
|
||||
["vnav"] = 1,
|
||||
["scale"] = 0,
|
||||
["angle"] = 0,
|
||||
["vangle"] = 0,
|
||||
["steer"] = 2,
|
||||
}, -- end of ["properties"]
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -243614.28571428,
|
||||
["z"] = 659248.57142856,
|
||||
}, -- end of ["point"]
|
||||
}, -- end of [4]
|
||||
[5] =
|
||||
{
|
||||
["y"] = 625534.28571428,
|
||||
["x"] = -309328.57142857,
|
||||
["name"] = "MAZDA",
|
||||
["callsignStr"] = "MAZDA",
|
||||
["id"] = 7,
|
||||
["properties"] =
|
||||
{
|
||||
["vnav"] = 1,
|
||||
["scale"] = 0,
|
||||
["angle"] = 0,
|
||||
["vangle"] = 0,
|
||||
["steer"] = 2,
|
||||
}, -- end of ["properties"]
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -309328.57142857,
|
||||
["z"] = 625534.28571428,
|
||||
}, -- end of ["point"]
|
||||
["callsign"] = 4,
|
||||
}, -- end of [5]
|
||||
[6] =
|
||||
{
|
||||
["y"] = 670391.42857142,
|
||||
["x"] = -260757.14285714,
|
||||
["name"] = "DODGE",
|
||||
["callsignStr"] = "DODGE",
|
||||
["id"] = 8,
|
||||
["properties"] =
|
||||
{
|
||||
["vnav"] = 1,
|
||||
["scale"] = 0,
|
||||
["angle"] = 0,
|
||||
["vangle"] = 0,
|
||||
["steer"] = 2,
|
||||
}, -- end of ["properties"]
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -260757.14285714,
|
||||
["z"] = 670391.42857142,
|
||||
}, -- end of ["point"]
|
||||
["callsign"] = 3,
|
||||
}, -- end of [6]
|
||||
}, -- end of ["blue"]
|
||||
["red"] =
|
||||
{
|
||||
[1] =
|
||||
{
|
||||
["y"] = 587534.28571428,
|
||||
["x"] = -295042.85714285,
|
||||
["name"] = "ADDER",
|
||||
["callsignStr"] = "ADDER",
|
||||
["id"] = 1,
|
||||
["properties"] =
|
||||
{
|
||||
["vnav"] = 1,
|
||||
["scale"] = 0,
|
||||
["angle"] = 0,
|
||||
["vangle"] = 0,
|
||||
["steer"] = 2,
|
||||
}, -- end of ["properties"]
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -295042.85714285,
|
||||
["z"] = 587534.28571428,
|
||||
}, -- end of ["point"]
|
||||
["callsign"] = 8,
|
||||
}, -- end of [1]
|
||||
[2] =
|
||||
{
|
||||
["y"] = 595248.57142856,
|
||||
["x"] = -276757.14285714,
|
||||
["name"] = "MAZDA",
|
||||
["callsignStr"] = "MAZDA",
|
||||
["id"] = 2,
|
||||
["properties"] =
|
||||
{
|
||||
["vnav"] = 1,
|
||||
["scale"] = 0,
|
||||
["angle"] = 0,
|
||||
["vangle"] = 0,
|
||||
["steer"] = 2,
|
||||
}, -- end of ["properties"]
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -276757.14285714,
|
||||
["z"] = 595248.57142856,
|
||||
}, -- end of ["point"]
|
||||
["callsign"] = 4,
|
||||
}, -- end of [2]
|
||||
}, -- end of ["red"]
|
||||
} -- end of navPoints
|
||||
|
||||
@@ -1,99 +1,67 @@
|
||||
removedAliveUnits =
|
||||
{
|
||||
[16781056] =
|
||||
{
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 654625.71428571,
|
||||
["x"] = -292922.85714286,
|
||||
}, -- end of ["point"]
|
||||
["skill"] = "Average",
|
||||
["unit"] =
|
||||
{
|
||||
["id_"] = 16781056,
|
||||
}, -- end of ["unit"]
|
||||
["category"] = "vehicle",
|
||||
["unitName"] = "RuBTRs3",
|
||||
["heading"] = -1.7994767003775,
|
||||
["unitId"] = 29,
|
||||
["groupName"] = "RuBTRs",
|
||||
["countryId"] = 0,
|
||||
["coalition"] = "red",
|
||||
["x"] = -292922.85714286,
|
||||
["type"] = "BTR-80",
|
||||
["groupId"] = 13,
|
||||
["country"] = "russia",
|
||||
["playerCanDrive"] = true,
|
||||
["y"] = 654625.71428571,
|
||||
["pos"] =
|
||||
{
|
||||
["y"] = 22.240369796753,
|
||||
["x"] = -292851.09375,
|
||||
["z"] = 654504.5,
|
||||
}, -- end of ["pos"]
|
||||
}, -- end of [16781056]
|
||||
[16780544] =
|
||||
{
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 654545.71428571,
|
||||
["x"] = -292842.85714286,
|
||||
}, -- end of ["point"]
|
||||
["skill"] = "Average",
|
||||
["unit"] =
|
||||
{
|
||||
["id_"] = 16780544,
|
||||
}, -- end of ["unit"]
|
||||
["category"] = "vehicle",
|
||||
["unitName"] = "RuBTRs1",
|
||||
["heading"] = -1.7994767003775,
|
||||
["unitId"] = 27,
|
||||
["groupName"] = "RuBTRs",
|
||||
["countryId"] = 0,
|
||||
["coalition"] = "red",
|
||||
["x"] = -292842.85714286,
|
||||
["type"] = "BTR-80",
|
||||
["groupId"] = 13,
|
||||
["country"] = "russia",
|
||||
["playerCanDrive"] = true,
|
||||
["y"] = 654545.71428571,
|
||||
["pos"] =
|
||||
{
|
||||
["y"] = 22.417558670044,
|
||||
["x"] = -292866.03125,
|
||||
["z"] = 654446.125,
|
||||
}, -- end of ["pos"]
|
||||
}, -- end of [16780544]
|
||||
[16780800] =
|
||||
{
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 654585.71428571,
|
||||
["x"] = -292882.85714286,
|
||||
}, -- end of ["point"]
|
||||
["skill"] = "Average",
|
||||
["unit"] =
|
||||
{
|
||||
["id_"] = 16780800,
|
||||
}, -- end of ["unit"]
|
||||
["category"] = "vehicle",
|
||||
["unitName"] = "RuBTRs2",
|
||||
["heading"] = -1.7994767003775,
|
||||
["unitId"] = 28,
|
||||
["groupName"] = "RuBTRs",
|
||||
["countryId"] = 0,
|
||||
["coalition"] = "red",
|
||||
["x"] = -292882.85714286,
|
||||
["type"] = "BTR-80",
|
||||
["groupId"] = 13,
|
||||
["country"] = "russia",
|
||||
["playerCanDrive"] = true,
|
||||
["y"] = 654585.71428571,
|
||||
["pos"] =
|
||||
{
|
||||
["y"] = 22.13184928894,
|
||||
["x"] = -292848.1875,
|
||||
["z"] = 654536.1875,
|
||||
}, -- end of ["pos"]
|
||||
}, -- end of [16780800]
|
||||
[16780800] =
|
||||
{
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 654585.71428571,
|
||||
["x"] = -292882.85714286,
|
||||
}, -- end of ["point"]
|
||||
["skill"] = "Average",
|
||||
["unit"] =
|
||||
{
|
||||
["id_"] = 16780800,
|
||||
}, -- end of ["unit"]
|
||||
["category"] = "vehicle",
|
||||
["unitName"] = "RuBTRs2",
|
||||
["heading"] = -1.7994767003775,
|
||||
["unitId"] = 28,
|
||||
["groupName"] = "RuBTRs",
|
||||
["countryId"] = 0,
|
||||
["coalition"] = "red",
|
||||
["x"] = -292882.85714286,
|
||||
["type"] = "BTR-80",
|
||||
["groupId"] = 13,
|
||||
["country"] = "russia",
|
||||
["playerCanDrive"] = true,
|
||||
["y"] = 654585.71428571,
|
||||
["pos"] =
|
||||
{
|
||||
["y"] = 22.182994842529,
|
||||
["x"] = -292848.875,
|
||||
["z"] = 654522.0625,
|
||||
}, -- end of ["pos"]
|
||||
}, -- end of [16780800]
|
||||
[16780544] =
|
||||
{
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 654545.71428571,
|
||||
["x"] = -292842.85714286,
|
||||
}, -- end of ["point"]
|
||||
["skill"] = "Average",
|
||||
["unit"] =
|
||||
{
|
||||
["id_"] = 16780544,
|
||||
}, -- end of ["unit"]
|
||||
["category"] = "vehicle",
|
||||
["unitName"] = "RuBTRs1",
|
||||
["heading"] = -1.7994767003775,
|
||||
["unitId"] = 27,
|
||||
["groupName"] = "RuBTRs",
|
||||
["countryId"] = 0,
|
||||
["coalition"] = "red",
|
||||
["x"] = -292842.85714286,
|
||||
["type"] = "BTR-80",
|
||||
["groupId"] = 13,
|
||||
["country"] = "russia",
|
||||
["playerCanDrive"] = true,
|
||||
["y"] = 654545.71428571,
|
||||
["pos"] =
|
||||
{
|
||||
["y"] = 22.385175704956,
|
||||
["x"] = -292863.3125,
|
||||
["z"] = 654457.6875,
|
||||
}, -- end of ["pos"]
|
||||
}, -- end of [16780544]
|
||||
} -- end of removedAliveUnits
|
||||
|
||||
+2960
-4537
File diff suppressed because it is too large
Load Diff
+2139
-3445
File diff suppressed because it is too large
Load Diff
+2124
-2058
File diff suppressed because it is too large
Load Diff
+2124
-2058
File diff suppressed because it is too large
Load Diff
+2124
-3430
File diff suppressed because it is too large
Load Diff
@@ -1,69 +1,69 @@
|
||||
zonesByName =
|
||||
{
|
||||
["LZ zone"] =
|
||||
{
|
||||
["y"] = 614105.71428571,
|
||||
["radius"] = 3000,
|
||||
["zoneId"] = 2,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -245328.57142857,
|
||||
["z"] = 614105.71428571,
|
||||
}, -- end of ["point"]
|
||||
["color"] =
|
||||
{
|
||||
[1] = 1,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
[4] = 0.14901960784314,
|
||||
}, -- end of ["color"]
|
||||
["x"] = -245328.57142857,
|
||||
["hidden"] = false,
|
||||
["name"] = "LZ zone",
|
||||
}, -- end of ["LZ zone"]
|
||||
["cloneZone"] =
|
||||
{
|
||||
["y"] = 692534.28571428,
|
||||
["radius"] = 3000,
|
||||
["zoneId"] = 3,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -285971.42857143,
|
||||
["z"] = 692534.28571428,
|
||||
}, -- end of ["point"]
|
||||
["color"] =
|
||||
{
|
||||
[1] = 1,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
[4] = 0.14901960784314,
|
||||
}, -- end of ["color"]
|
||||
["x"] = -285971.42857143,
|
||||
["hidden"] = false,
|
||||
["name"] = "cloneZone",
|
||||
}, -- end of ["cloneZone"]
|
||||
["explosion zone"] =
|
||||
{
|
||||
["y"] = 673819.99999999,
|
||||
["radius"] = 3000,
|
||||
["zoneId"] = 1,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -271900,
|
||||
["z"] = 673819.99999999,
|
||||
}, -- end of ["point"]
|
||||
["color"] =
|
||||
{
|
||||
[1] = 1,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
[4] = 0.14901960784314,
|
||||
}, -- end of ["color"]
|
||||
["x"] = -271900,
|
||||
["hidden"] = false,
|
||||
["name"] = "explosion zone",
|
||||
}, -- end of ["explosion zone"]
|
||||
["LZ zone"] =
|
||||
{
|
||||
["y"] = 614105.71428571,
|
||||
["radius"] = 3000,
|
||||
["zoneId"] = 2,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -245328.57142857,
|
||||
["z"] = 614105.71428571,
|
||||
}, -- end of ["point"]
|
||||
["color"] =
|
||||
{
|
||||
[1] = 1,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
[4] = 0.14901960784314,
|
||||
}, -- end of ["color"]
|
||||
["x"] = -245328.57142857,
|
||||
["hidden"] = false,
|
||||
["name"] = "LZ zone",
|
||||
}, -- end of ["LZ zone"]
|
||||
["cloneZone"] =
|
||||
{
|
||||
["y"] = 692534.28571428,
|
||||
["radius"] = 3000,
|
||||
["zoneId"] = 3,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -285971.42857143,
|
||||
["z"] = 692534.28571428,
|
||||
}, -- end of ["point"]
|
||||
["color"] =
|
||||
{
|
||||
[1] = 1,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
[4] = 0.14901960784314,
|
||||
}, -- end of ["color"]
|
||||
["x"] = -285971.42857143,
|
||||
["hidden"] = false,
|
||||
["name"] = "cloneZone",
|
||||
}, -- end of ["cloneZone"]
|
||||
["explosion zone"] =
|
||||
{
|
||||
["y"] = 673819.99999999,
|
||||
["radius"] = 3000,
|
||||
["zoneId"] = 1,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -271900,
|
||||
["z"] = 673819.99999999,
|
||||
}, -- end of ["point"]
|
||||
["color"] =
|
||||
{
|
||||
[1] = 1,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
[4] = 0.14901960784314,
|
||||
}, -- end of ["color"]
|
||||
["x"] = -271900,
|
||||
["hidden"] = false,
|
||||
["name"] = "explosion zone",
|
||||
}, -- end of ["explosion zone"]
|
||||
} -- end of zonesByName
|
||||
|
||||
@@ -1,69 +1,69 @@
|
||||
zonesByNum =
|
||||
{
|
||||
[1] =
|
||||
{
|
||||
["y"] = 614105.71428571,
|
||||
["radius"] = 3000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -245328.57142857,
|
||||
["z"] = 614105.71428571,
|
||||
}, -- end of ["point"]
|
||||
["name"] = "LZ zone",
|
||||
["color"] =
|
||||
{
|
||||
[1] = 1,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
[4] = 0.14901960784314,
|
||||
}, -- end of ["color"]
|
||||
["x"] = -245328.57142857,
|
||||
["hidden"] = false,
|
||||
["zoneId"] = 2,
|
||||
}, -- end of [1]
|
||||
[2] =
|
||||
{
|
||||
["y"] = 692534.28571428,
|
||||
["radius"] = 3000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -285971.42857143,
|
||||
["z"] = 692534.28571428,
|
||||
}, -- end of ["point"]
|
||||
["name"] = "cloneZone",
|
||||
["color"] =
|
||||
{
|
||||
[1] = 1,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
[4] = 0.14901960784314,
|
||||
}, -- end of ["color"]
|
||||
["x"] = -285971.42857143,
|
||||
["hidden"] = false,
|
||||
["zoneId"] = 3,
|
||||
}, -- end of [2]
|
||||
[3] =
|
||||
{
|
||||
["y"] = 673819.99999999,
|
||||
["radius"] = 3000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -271900,
|
||||
["z"] = 673819.99999999,
|
||||
}, -- end of ["point"]
|
||||
["name"] = "explosion zone",
|
||||
["color"] =
|
||||
{
|
||||
[1] = 1,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
[4] = 0.14901960784314,
|
||||
}, -- end of ["color"]
|
||||
["x"] = -271900,
|
||||
["hidden"] = false,
|
||||
["zoneId"] = 1,
|
||||
}, -- end of [3]
|
||||
[1] =
|
||||
{
|
||||
["y"] = 614105.71428571,
|
||||
["radius"] = 3000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -245328.57142857,
|
||||
["z"] = 614105.71428571,
|
||||
}, -- end of ["point"]
|
||||
["name"] = "LZ zone",
|
||||
["color"] =
|
||||
{
|
||||
[1] = 1,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
[4] = 0.14901960784314,
|
||||
}, -- end of ["color"]
|
||||
["x"] = -245328.57142857,
|
||||
["hidden"] = false,
|
||||
["zoneId"] = 2,
|
||||
}, -- end of [1]
|
||||
[2] =
|
||||
{
|
||||
["y"] = 692534.28571428,
|
||||
["radius"] = 3000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -285971.42857143,
|
||||
["z"] = 692534.28571428,
|
||||
}, -- end of ["point"]
|
||||
["name"] = "cloneZone",
|
||||
["color"] =
|
||||
{
|
||||
[1] = 1,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
[4] = 0.14901960784314,
|
||||
}, -- end of ["color"]
|
||||
["x"] = -285971.42857143,
|
||||
["hidden"] = false,
|
||||
["zoneId"] = 3,
|
||||
}, -- end of [2]
|
||||
[3] =
|
||||
{
|
||||
["y"] = 673819.99999999,
|
||||
["radius"] = 3000,
|
||||
["point"] =
|
||||
{
|
||||
["y"] = 0,
|
||||
["x"] = -271900,
|
||||
["z"] = 673819.99999999,
|
||||
}, -- end of ["point"]
|
||||
["name"] = "explosion zone",
|
||||
["color"] =
|
||||
{
|
||||
[1] = 1,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
[4] = 0.14901960784314,
|
||||
}, -- end of ["color"]
|
||||
["x"] = -271900,
|
||||
["hidden"] = false,
|
||||
["zoneId"] = 1,
|
||||
}, -- end of [3]
|
||||
} -- end of zonesByNum
|
||||
|
||||
Binary file not shown.
@@ -34,7 +34,7 @@ mist = {}
|
||||
|
||||
-- don't change these
|
||||
mist.majorVersion = 4
|
||||
mist.minorVersion = 2
|
||||
mist.minorVersion = 3
|
||||
mist.build = 71
|
||||
|
||||
-- forward declaration of log shorthand
|
||||
@@ -1224,7 +1224,7 @@ do -- the main scope
|
||||
if newObj.countryId then
|
||||
cntry = newObj.countryId
|
||||
end
|
||||
|
||||
|
||||
local newCountry = ''
|
||||
|
||||
for countryId, countryName in pairs(country.name) do
|
||||
@@ -1244,7 +1244,7 @@ do -- the main scope
|
||||
log:error("Country not found: $1", cntry)
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
if newObj.clone or not newObj.groupId then
|
||||
mistGpId = mistGpId + 1
|
||||
newObj.groupId = mistGpId
|
||||
@@ -1257,7 +1257,7 @@ do -- the main scope
|
||||
|
||||
if newObj.clone or not newObj.name then
|
||||
mistDynAddIndex[' static '] = mistDynAddIndex[' static '] + 1
|
||||
newObj.name = (country.name[cntry] .. ' static ' .. mistDynAddIndex[' static '])
|
||||
newObj.name = (newCountry .. ' static ' .. mistDynAddIndex[' static '])
|
||||
end
|
||||
|
||||
if not newObj.dead then
|
||||
@@ -1275,7 +1275,12 @@ do -- the main scope
|
||||
newObj.category = 'Cargos'
|
||||
end
|
||||
|
||||
if newObj.shapeName then
|
||||
newObj.shape_name = newObj.shapeName
|
||||
end
|
||||
|
||||
if not newObj.shape_name then
|
||||
log:info('shape_name not present')
|
||||
if mist.DBs.const.shapeNames[newObj.type] then
|
||||
newObj.shape_name = mist.DBs.const.shapeNames[newObj.type]
|
||||
end
|
||||
@@ -1369,7 +1374,7 @@ do -- the main scope
|
||||
end
|
||||
|
||||
if newGroup.clone and mist.DBs.groupsByName[newGroup.name] or not newGroup.name then
|
||||
newGroup.name = tostring(tostring(country.name[cntry]) .. tostring(typeName) .. mistDynAddIndex[typeName])
|
||||
newGroup.name = tostring(newCountry .. tostring(typeName) .. mistDynAddIndex[typeName])
|
||||
end
|
||||
|
||||
if not newGroup.hidden then
|
||||
|
||||
+354
-189
@@ -34,8 +34,8 @@ mist = {}
|
||||
|
||||
-- don't change these
|
||||
mist.majorVersion = 4
|
||||
mist.minorVersion = 2
|
||||
mist.build = 66
|
||||
mist.minorVersion = 3
|
||||
mist.build = 71
|
||||
|
||||
-- forward declaration of log shorthand
|
||||
local log
|
||||
@@ -44,18 +44,20 @@ do -- the main scope
|
||||
local coroutines = {}
|
||||
|
||||
local tempSpawnedUnits = {} -- birth events added here
|
||||
local tempSpawnedGroups = {}
|
||||
local tempSpawnGroupsCounter = 0
|
||||
|
||||
local mistAddedObjects = {} -- mist.dynAdd unit data added here
|
||||
local mistAddedGroups = {} -- mist.dynAdd groupdata added here
|
||||
local writeGroups = {}
|
||||
local lastUpdateTime = 0
|
||||
|
||||
local updateAliveUnitsCounter = 0
|
||||
local writeDbTableCounter = 0
|
||||
local checkSpawnEventsCounter = 0
|
||||
|
||||
local updateTenthSecond = 0
|
||||
|
||||
local mistGpId = 7000
|
||||
local mistUnitId = 7000
|
||||
local mistDynAddIndex = 1
|
||||
local mistDynAddIndex = {[' air '] = 0, [' hel '] = 0, [' gnd '] = 0, [' bld '] = 0, [' static '] = 0, [' shp '] = 0}
|
||||
|
||||
local scheduledTasks = {}
|
||||
local taskId = 0
|
||||
@@ -64,6 +66,8 @@ do -- the main scope
|
||||
mist.nextGroupId = 1
|
||||
mist.nextUnitId = 1
|
||||
|
||||
local dbLog
|
||||
|
||||
local function initDBs() -- mist.DBs scope
|
||||
mist.DBs = {}
|
||||
|
||||
@@ -339,6 +343,98 @@ do -- the main scope
|
||||
},
|
||||
},
|
||||
}
|
||||
mist.DBs.const.shapeNames = {
|
||||
["Landmine"] = "landmine",
|
||||
["FARP CP Blindage"] = "kp_ug",
|
||||
["Subsidiary structure C"] = "saray-c",
|
||||
["Barracks 2"] = "kazarma2",
|
||||
["Small house 2C"] = "dom2c",
|
||||
["Military staff"] = "aviashtab",
|
||||
["Tech hangar A"] = "ceh_ang_a",
|
||||
["Oil derrick"] = "neftevyshka",
|
||||
["Tech combine"] = "kombinat",
|
||||
["Garage B"] = "garage_b",
|
||||
["Airshow_Crowd"] = "Crowd1",
|
||||
["Hangar A"] = "angar_a",
|
||||
["Repair workshop"] = "tech",
|
||||
["Subsidiary structure D"] = "saray-d",
|
||||
["FARP Ammo Dump Coating"] = "SetkaKP",
|
||||
["Small house 1C area"] = "dom2c-all",
|
||||
["Tank 2"] = "airbase_tbilisi_tank_01",
|
||||
["Boiler-house A"] = "kotelnaya_a",
|
||||
["Workshop A"] = "tec_a",
|
||||
["Small werehouse 1"] = "s1",
|
||||
["Garage small B"] = "garagh-small-b",
|
||||
["Small werehouse 4"] = "s4",
|
||||
["Shop"] = "magazin",
|
||||
["Subsidiary structure B"] = "saray-b",
|
||||
["FARP Fuel Depot"] = "GSM Rus",
|
||||
["Coach cargo"] = "wagon-gruz",
|
||||
["Electric power box"] = "tr_budka",
|
||||
["Tank 3"] = "airbase_tbilisi_tank_02",
|
||||
["Red_Flag"] = "H-flag_R",
|
||||
["Container red 3"] = "konteiner_red3",
|
||||
["Garage A"] = "garage_a",
|
||||
["Hangar B"] = "angar_b",
|
||||
["Black_Tyre"] = "H-tyre_B",
|
||||
["Cafe"] = "stolovaya",
|
||||
["Restaurant 1"] = "restoran1",
|
||||
["Subsidiary structure A"] = "saray-a",
|
||||
["Container white"] = "konteiner_white",
|
||||
["Warehouse"] = "sklad",
|
||||
["Tank"] = "bak",
|
||||
["Railway crossing B"] = "pereezd_small",
|
||||
["Subsidiary structure F"] = "saray-f",
|
||||
["Farm A"] = "ferma_a",
|
||||
["Small werehouse 3"] = "s3",
|
||||
["Water tower A"] = "wodokachka_a",
|
||||
["Railway station"] = "r_vok_sd",
|
||||
["Coach a tank blue"] = "wagon-cisterna_blue",
|
||||
["Supermarket A"] = "uniwersam_a",
|
||||
["Coach a platform"] = "wagon-platforma",
|
||||
["Garage small A"] = "garagh-small-a",
|
||||
["TV tower"] = "tele_bash",
|
||||
["Comms tower M"] = "tele_bash_m",
|
||||
["Small house 1A"] = "domik1a",
|
||||
["Farm B"] = "ferma_b",
|
||||
["GeneratorF"] = "GeneratorF",
|
||||
["Cargo1"] = "ab-212_cargo",
|
||||
["Container red 2"] = "konteiner_red2",
|
||||
["Subsidiary structure E"] = "saray-e",
|
||||
["Coach a passenger"] = "wagon-pass",
|
||||
["Black_Tyre_WF"] = "H-tyre_B_WF",
|
||||
["Electric locomotive"] = "elektrowoz",
|
||||
["Shelter"] = "ukrytie",
|
||||
["Coach a tank yellow"] = "wagon-cisterna_yellow",
|
||||
["Railway crossing A"] = "pereezd_big",
|
||||
[".Ammunition depot"] = "SkladC",
|
||||
["Small werehouse 2"] = "s2",
|
||||
["Windsock"] = "H-Windsock_RW",
|
||||
["Shelter B"] = "ukrytie_b",
|
||||
["Fuel tank"] = "toplivo-bak",
|
||||
["Locomotive"] = "teplowoz",
|
||||
[".Command Center"] = "ComCenter",
|
||||
["Pump station"] = "nasos",
|
||||
["Black_Tyre_RF"] = "H-tyre_B_RF",
|
||||
["Coach cargo open"] = "wagon-gruz-otkr",
|
||||
["Subsidiary structure 3"] = "hozdomik3",
|
||||
["FARP Tent"] = "PalatkaB",
|
||||
["White_Tyre"] = "H-tyre_W",
|
||||
["Subsidiary structure G"] = "saray-g",
|
||||
["Container red 1"] = "konteiner_red1",
|
||||
["Small house 1B area"] = "domik1b-all",
|
||||
["Subsidiary structure 1"] = "hozdomik1",
|
||||
["Container brown"] = "konteiner_brown",
|
||||
["Small house 1B"] = "domik1b",
|
||||
["Subsidiary structure 2"] = "hozdomik2",
|
||||
["Chemical tank A"] = "him_bak_a",
|
||||
["WC"] = "WC",
|
||||
["Small house 1A area"] = "domik1a-all",
|
||||
["White_Flag"] = "H-Flag_W",
|
||||
["Airshow_Cone"] = "Comp_cone",
|
||||
}
|
||||
|
||||
|
||||
-- create mist.DBs.oldAliveUnits
|
||||
-- do
|
||||
-- local intermediate_alive_units = {} -- between 0 and 0.5 secs old
|
||||
@@ -368,7 +464,7 @@ do -- the main scope
|
||||
|
||||
mist.DBs.unitsByCat[unit_data.category] = mist.DBs.unitsByCat[unit_data.category] or {} -- future-proofing against new categories...
|
||||
table.insert(mist.DBs.unitsByCat[unit_data.category], mist.utils.deepCopy(unit_data))
|
||||
--log:info('inserting $1', unit_data.unitName)
|
||||
dbLog:info('inserting $1', unit_data.unitName)
|
||||
table.insert(mist.DBs.unitsByNum, mist.utils.deepCopy(unit_data))
|
||||
|
||||
if unit_data.skill and (unit_data.skill == "Client" or unit_data.skill == "Player") then
|
||||
@@ -405,13 +501,13 @@ do -- the main scope
|
||||
local original_key = key --only for duplicate runtime IDs.
|
||||
local key_ind = 1
|
||||
while mist.DBs.deadObjects[key] do
|
||||
--log:warn('duplicate runtime id of previously dead object key: $1', key)
|
||||
dbLog:warn('duplicate runtime id of previously dead object key: $1', key)
|
||||
key = tostring(original_key) .. ' #' .. tostring(key_ind)
|
||||
key_ind = key_ind + 1
|
||||
end
|
||||
|
||||
if mist.DBs.aliveUnits and mist.DBs.aliveUnits[val.object.id_] then
|
||||
--log:info('object found in alive_units')
|
||||
--dbLog:info('object found in alive_units')
|
||||
val.objectData = mist.utils.deepCopy(mist.DBs.aliveUnits[val.object.id_])
|
||||
local pos = Object.getPosition(val.object)
|
||||
if pos then
|
||||
@@ -420,7 +516,7 @@ do -- the main scope
|
||||
val.objectType = mist.DBs.aliveUnits[val.object.id_].category
|
||||
|
||||
elseif mist.DBs.removedAliveUnits and mist.DBs.removedAliveUnits[val.object.id_] then -- it didn't exist in alive_units, check old_alive_units
|
||||
--log:info('object found in old_alive_units')
|
||||
--dbLog:info('object found in old_alive_units')
|
||||
val.objectData = mist.utils.deepCopy(mist.DBs.removedAliveUnits[val.object.id_])
|
||||
local pos = Object.getPosition(val.object)
|
||||
if pos then
|
||||
@@ -429,13 +525,13 @@ do -- the main scope
|
||||
val.objectType = mist.DBs.removedAliveUnits[val.object.id_].category
|
||||
|
||||
else --attempt to determine if static object...
|
||||
--log:info('object not found in alive units or old alive units')
|
||||
--dbLog:info('object not found in alive units or old alive units')
|
||||
local pos = Object.getPosition(val.object)
|
||||
if pos then
|
||||
local static_found = false
|
||||
for ind, static in pairs(mist.DBs.unitsByCat.static) do
|
||||
if ((pos.p.x - static.point.x)^2 + (pos.p.z - static.point.y)^2)^0.5 < 0.1 then --really, it should be zero...
|
||||
--log:info('correlated dead static object to position')
|
||||
dbLog:info('correlated dead static object to position')
|
||||
val.objectData = static
|
||||
val.objectPos = pos.p
|
||||
val.objectType = 'static'
|
||||
@@ -489,7 +585,7 @@ do -- the main scope
|
||||
if lunits[i].category ~= 'static' then -- can't get statics with Unit.getByName :(
|
||||
local unit = lUnit.getByName(lunits[i].unitName)
|
||||
if unit then
|
||||
--log:info("unit named $1 alive!", lunits[i].unitName) -- spammy
|
||||
--dbLog:info("unit named $1 alive!", lunits[i].unitName) -- spammy
|
||||
local pos = unit:getPosition()
|
||||
local newtbl = ldeepcopy(lunits[i])
|
||||
if pos then
|
||||
@@ -515,22 +611,19 @@ do -- the main scope
|
||||
end
|
||||
end
|
||||
|
||||
local function dbUpdate(event)
|
||||
local function dbUpdate(event, objType)
|
||||
dbLog:info('dbUpdate')
|
||||
local newTable = {}
|
||||
|
||||
newTable.startTime = 0
|
||||
|
||||
if type(event) == 'string' then -- if name of an object.
|
||||
local newObject
|
||||
local newType = 'group'
|
||||
if Group.getByName(event) then
|
||||
newObject = Group.getByName(event)
|
||||
elseif StaticObject.getByName(event) then
|
||||
newObject = StaticObject.getByName(event)
|
||||
newType = 'static'
|
||||
-- log:info('its static')
|
||||
else
|
||||
log:info('WTF')
|
||||
log:warn('$1 is not a Unit or Static Object. This should not be possible', event)
|
||||
return false
|
||||
end
|
||||
|
||||
@@ -538,7 +631,7 @@ do -- the main scope
|
||||
newTable.groupId = tonumber(newObject:getID())
|
||||
newTable.groupName = newObject:getName()
|
||||
local unitOneRef
|
||||
if newType == 'static' then
|
||||
if objType == 'static' then
|
||||
unitOneRef = newObject
|
||||
newTable.countryId = tonumber(newObject:getCountry())
|
||||
newTable.coalitionId = tonumber(newObject:getCoalition())
|
||||
@@ -561,11 +654,11 @@ do -- the main scope
|
||||
end
|
||||
end
|
||||
for catData, catId in pairs(Unit.Category) do
|
||||
if newType == 'group' and Group.getByName(newTable.groupName):isExist() then
|
||||
if objType == 'group' and Group.getByName(newTable.groupName):isExist() then
|
||||
if catId == Group.getByName(newTable.groupName):getCategory() then
|
||||
newTable.category = string.lower(catData)
|
||||
end
|
||||
elseif newType == 'static' and StaticObject.getByName(newTable.groupName):isExist() then
|
||||
elseif objType == 'static' and StaticObject.getByName(newTable.groupName):isExist() then
|
||||
if catId == StaticObject.getByName(newTable.groupName):getCategory() then
|
||||
newTable.category = string.lower(catData)
|
||||
end
|
||||
@@ -592,7 +685,7 @@ do -- the main scope
|
||||
end
|
||||
|
||||
newTable.units = {}
|
||||
if newType == 'group' then
|
||||
if objType == 'group' then
|
||||
for unitId, unitData in pairs(unitOneRef) do
|
||||
newTable.units[unitId] = {}
|
||||
newTable.units[unitId].unitName = unitData:getName()
|
||||
@@ -684,91 +777,92 @@ do -- the main scope
|
||||
newTable.timeAdded = timer.getAbsTime() -- only on the dynGroupsAdded table. For other reference, see start time
|
||||
--mist.debug.dumpDBs()
|
||||
--end
|
||||
|
||||
dbLog:info('endDbUpdate')
|
||||
return newTable
|
||||
end
|
||||
|
||||
local function checkSpawnedEvents()
|
||||
if #tempSpawnedUnits > 0 then
|
||||
local groupsToAdd = {}
|
||||
local added = false
|
||||
local ltemp = tempSpawnedUnits
|
||||
local ltable = table
|
||||
|
||||
local updatesPerRun = math.ceil(#tempSpawnedUnits/20)
|
||||
--[[DB update code... FRACK. I need to refactor some of it.
|
||||
|
||||
The problem is that the DBs need to account better for shared object names. Needs to write over some data and outright remove other.
|
||||
|
||||
If groupName is used then entire group needs to be rewritten
|
||||
what to do with old groups units DB entries?. Names cant be assumed to be the same.
|
||||
|
||||
|
||||
-- new spawn event check.
|
||||
-- event handler filters everything into groups: tempSpawnedGroups
|
||||
-- this function then checks DBs to see if data has changed
|
||||
]]
|
||||
local function checkSpawnedEventsNew()
|
||||
if tempSpawnGroupsCounter > 0 then
|
||||
--[[local updatesPerRun = math.ceil(#tempSpawnedGroupsCounter/20)
|
||||
if updatesPerRun < 5 then
|
||||
updatesPerRun = 5
|
||||
end
|
||||
for x = 1, #tempSpawnedUnits do
|
||||
local spawnedObj = ltemp[x]
|
||||
if spawnedObj and spawnedObj:isExist() then
|
||||
local found = false
|
||||
for name, val in pairs(groupsToAdd) do
|
||||
if spawnedObj:getCategory() == 1 then -- normal groups
|
||||
if mist.stringMatch(spawnedObj:getGroup():getName(), name) == true then
|
||||
found = true
|
||||
break
|
||||
end
|
||||
elseif spawnedObj:getCategory() == 3 or spawnedObj:getCategory() == 6 then -- static objects
|
||||
if mist.stringMatch(spawnedObj:getName(), name) == true then
|
||||
found = true
|
||||
end]]
|
||||
|
||||
dbLog:info('iterate')
|
||||
for name, gType in pairs(tempSpawnedGroups) do
|
||||
dbLog:info(name)
|
||||
local updated = false
|
||||
|
||||
if mist.DBs.groupsByName[name] then
|
||||
-- first check group level properties, groupId, countryId, coalition
|
||||
dbLog:info('Found in DBs, check if updated')
|
||||
local dbTable = mist.DBs.groupsByName[name]
|
||||
local _u
|
||||
if gType ~= 'static' then
|
||||
local _g = Group.getByName(name)
|
||||
_u = _g:getUnit(1)
|
||||
if dbTable.groupId ~= _g:getID() or _u:getCountry() ~= dbTable.countryId or _u:getCoalition() ~= coalition.side[string.upper(dbTable.coaltionId)] then
|
||||
dbLog:info('Group Data mismatch')
|
||||
updated = true
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
if updated == false and gType ~= 'static' then -- time to check units
|
||||
dbLog:info('No Group Mismatch, Check Units')
|
||||
for index, uObject in pairs(Group.getByName(name):getUnits()) do
|
||||
dbLog:info(index)
|
||||
if mist.DBs.unitsByName[uObject:getName()] then
|
||||
dbLog:info('UnitByName table exists')
|
||||
local uTable = mist.DBs.unitsByName[uObject:getName()]
|
||||
if uObject:getID() ~= uTable.unitId or uObject:getTypeName() ~= uTable.type then
|
||||
dbLog:info('Unit Data mismatch')
|
||||
updated = true
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
-- for some reason cargo objects are returning as category == 6.
|
||||
if found == false then
|
||||
added = true
|
||||
if spawnedObj:getCategory() == 1 then -- normal groups
|
||||
groupsToAdd[spawnedObj:getGroup():getName()] = true
|
||||
elseif spawnedObj:getCategory() == 3 or spawnedObj:getCategory() == 6 then -- static objects
|
||||
groupsToAdd[spawnedObj:getName()] = true
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
table.remove(ltemp, x)
|
||||
if x%updatesPerRun == 0 then
|
||||
coroutine.yield()
|
||||
|
||||
if updated == true or not mist.DBs.groupsByName[name] then
|
||||
dbLog:info('Get Table')
|
||||
writeGroups[#writeGroups+1] = {data = dbUpdate(name, gType), isUpdated = updated}
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
if added == true then
|
||||
for groupName, val in pairs(groupsToAdd) do
|
||||
local dataChanged = false
|
||||
if mist.DBs.groupsByName[groupName] then
|
||||
for _index, data in pairs(mist.DBs.groupsByName[groupName]) do
|
||||
if data.unitName ~= spawnedObj:getName() and data.unitId ~= spawnedObj:getID() and data.type ~= spawnedObj:getTypeName() then
|
||||
dataChanged = true
|
||||
break
|
||||
end
|
||||
end
|
||||
if dataChanged == false then
|
||||
groupsToAdd[groupName] = false
|
||||
end
|
||||
end
|
||||
if groupsToAdd[groupName] == true or not mist.DBs.groupsByName[groupName] then
|
||||
writeGroups[#writeGroups + 1] = dbUpdate(groupName)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
-- Work done, so remove
|
||||
tempSpawnedGroups[name] = nil
|
||||
tempSpawnGroupsCounter = tempSpawnGroupsCounter - 1
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
local function updateDBTables()
|
||||
local i = 0
|
||||
for index, newTable in pairs(writeGroups) do
|
||||
i = i + 1
|
||||
end
|
||||
local i = #writeGroups
|
||||
|
||||
local savesPerRun = math.ceil(i/10)
|
||||
if savesPerRun < 5 then
|
||||
savesPerRun = 5
|
||||
end
|
||||
if i > 0 then
|
||||
dbLog:info('updateDBTables')
|
||||
local ldeepCopy = mist.utils.deepCopy
|
||||
for x = 1, i do
|
||||
local newTable = writeGroups[x]
|
||||
dbLog:info(writeGroups[x])
|
||||
local newTable = writeGroups[x].data
|
||||
local updated = writeGroups[x].isUpdated
|
||||
local mistCategory
|
||||
if type(newTable.category) == 'string' then
|
||||
mistCategory = string.lower(newTable.category)
|
||||
@@ -787,17 +881,43 @@ do -- the main scope
|
||||
mistCategory = 'ship'
|
||||
newTable.category = mistCategory
|
||||
end
|
||||
dbLog:info('Update unitsBy')
|
||||
for newId, newUnitData in pairs(newTable.units) do
|
||||
dbLog:info(newId)
|
||||
newUnitData.category = mistCategory
|
||||
if newUnitData.unitId then
|
||||
dbLog:info('byId')
|
||||
mist.DBs.unitsById[tonumber(newUnitData.unitId)] = ldeepCopy(newUnitData)
|
||||
end
|
||||
|
||||
dbLog:info(updated)
|
||||
if mist.DBs.unitsByName[newUnitData.unitName] and updated == true then--if unit existed before and something was updated, write over the entry for a given unit name just in case.
|
||||
dbLog:info('Updating Unit Tables')
|
||||
for i = 1, #mist.DBs.unitsByCat[mistCategory] do
|
||||
if mist.DBs.unitsByCat[mistCategory][i].unitName == newUnitData.unitName then
|
||||
dbLog:info('Entry Found, Rewriting for unitsByCat')
|
||||
mist.DBs.unitsByCat[mistCategory][i] = ldeepCopy(newUnitData)
|
||||
break
|
||||
end
|
||||
end
|
||||
for i = 1, #mist.DBs.unitsByNum do
|
||||
if mist.DBs.unitsByNum[i].unitName == newUnitData.unitName then
|
||||
dbLog:info('Entry Found, Rewriting for unitsByNum')
|
||||
mist.DBs.unitsByNum[i] = ldeepCopy(newUnitData)
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
else
|
||||
dbLog:info('Unitname not in use, add as normal')
|
||||
mist.DBs.unitsByCat[mistCategory][#mist.DBs.unitsByCat[mistCategory] + 1] = ldeepCopy(newUnitData)
|
||||
mist.DBs.unitsByNum[#mist.DBs.unitsByNum + 1] = ldeepCopy(newUnitData)
|
||||
end
|
||||
mist.DBs.unitsByName[newUnitData.unitName] = ldeepCopy(newUnitData)
|
||||
mist.DBs.unitsByCat[mistCategory][#mist.DBs.unitsByCat[mistCategory] + 1] = ldeepCopy(newUnitData)
|
||||
mist.DBs.unitsByNum[#mist.DBs.unitsByNum + 1] = ldeepCopy(newUnitData)
|
||||
|
||||
|
||||
end
|
||||
-- this is a really annoying DB to populate. Gotta create new tables in case its missing
|
||||
dbLog:info('write mist.DBs.units')
|
||||
if not mist.DBs.units[newTable.coalition] then
|
||||
mist.DBs.units[newTable.coalition] = {}
|
||||
end
|
||||
@@ -809,7 +929,20 @@ do -- the main scope
|
||||
if not mist.DBs.units[newTable.coalition][newTable.country][mistCategory] then
|
||||
mist.DBs.units[newTable.coalition][(newTable.country)][mistCategory] = {}
|
||||
end
|
||||
mist.DBs.units[newTable.coalition][(newTable.country)][mistCategory][#mist.DBs.units[newTable.coalition][(newTable.country)][mistCategory] + 1] = ldeepCopy(newTable)
|
||||
|
||||
if updated == true then
|
||||
dbLog:info('Updating DBsUnits')
|
||||
for i = 1, #mist.DBs.units[newTable.coalition][(newTable.country)][mistCategory] do
|
||||
if mist.DBs.units[newTable.coalition][(newTable.country)][mistCategory][i].groupName == newTable.groupName then
|
||||
dbLog:info('Entry Found, Rewriting')
|
||||
mist.DBs.units[newTable.coalition][(newTable.country)][mistCategory][i] = ldeepCopy(newTable)
|
||||
break
|
||||
end
|
||||
end
|
||||
else
|
||||
mist.DBs.units[newTable.coalition][(newTable.country)][mistCategory][#mist.DBs.units[newTable.coalition][(newTable.country)][mistCategory] + 1] = ldeepCopy(newTable)
|
||||
end
|
||||
|
||||
|
||||
if newTable.groupId then
|
||||
mist.DBs.groupsById[newTable.groupId] = ldeepCopy(newTable)
|
||||
@@ -826,13 +959,34 @@ do -- the main scope
|
||||
if timer.getTime() > lastUpdateTime then
|
||||
lastUpdateTime = timer.getTime()
|
||||
end
|
||||
dbLog:info('endUpdateTables')
|
||||
end
|
||||
end
|
||||
|
||||
local function groupSpawned(event)
|
||||
-- dont need to add units spawned in at the start of the mission if mist is loaded in init line
|
||||
if event.id == world.event.S_EVENT_BIRTH and timer.getTime0() < timer.getAbsTime() then
|
||||
table.insert(tempSpawnedUnits,(event.initiator))
|
||||
dbLog:info('unitSpawnEvent')
|
||||
|
||||
--table.insert(tempSpawnedUnits,(event.initiator))
|
||||
-------
|
||||
-- New functionality below.
|
||||
-------
|
||||
if Object.getCategory(event.initiator) == 1 and not Unit.getPlayerName(event.initiator) then -- simple player check, will need to later check to see if unit was spawned with a player in a flight
|
||||
dbLog:info('Object is a Unit')
|
||||
dbLog:info(Unit.getGroup(event.initiator):getName())
|
||||
if not tempSpawnedGroups[Unit.getGroup(event.initiator):getName()] then
|
||||
dbLog:info('added')
|
||||
tempSpawnedGroups[Unit.getGroup(event.initiator):getName()] = 'group'
|
||||
tempSpawnGroupsCounter = tempSpawnGroupsCounter + 1
|
||||
end
|
||||
elseif Object.getCategory(event.initiator) == 3 or Object.getCategory(event.initiator) == 6 then
|
||||
dbLog:info('Object is Static')
|
||||
tempSpawnedGroups[StaticObject.getName(event.initiator)] = 'static'
|
||||
tempSpawnGroupsCounter = tempSpawnGroupsCounter + 1
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -938,7 +1092,7 @@ do -- the main scope
|
||||
--[[
|
||||
local function addClientsToActive(event)
|
||||
if event.id == world.event.S_EVENT_PLAYER_ENTER_UNIT or event.id == world.event.S_EVENT_BIRTH then
|
||||
log:info(mist.utils.tableShow(event))
|
||||
log:info(event)
|
||||
if Unit.getPlayerName(event.initiator) then
|
||||
log:info(Unit.getPlayerName(event.initiator))
|
||||
local newU = mist.utils.deepCopy(mist.DBs.unitsByName[Unit.getName(event.initiator)])
|
||||
@@ -964,6 +1118,8 @@ do -- the main scope
|
||||
function mist.init()
|
||||
-- create logger
|
||||
mist.log = mist.Logger:new("MIST")
|
||||
dbLog = mist.Logger:new('MISTDB', 'warning')
|
||||
|
||||
log = mist.log -- log shorthand
|
||||
-- set warning log level, showing only
|
||||
-- warnings and errors
|
||||
@@ -988,10 +1144,12 @@ do -- the main scope
|
||||
function mist.main()
|
||||
timer.scheduleFunction(mist.main, {}, timer.getTime() + 0.01) --reschedule first in case of Lua error
|
||||
|
||||
writeDbTableCounter = writeDbTableCounter + 1
|
||||
if writeDbTableCounter == 10 then
|
||||
writeDbTableCounter = 0
|
||||
updateTenthSecond = updateTenthSecond + 1
|
||||
if updateTenthSecond == 10 then
|
||||
updateTenthSecond = 0
|
||||
|
||||
checkSpawnedEventsNew()
|
||||
|
||||
if not coroutines.updateDBTables then
|
||||
coroutines.updateDBTables = coroutine.create(updateDBTables)
|
||||
end
|
||||
@@ -1003,21 +1161,6 @@ do -- the main scope
|
||||
end
|
||||
end
|
||||
|
||||
checkSpawnEventsCounter = checkSpawnEventsCounter + 1
|
||||
if checkSpawnEventsCounter == 10 then
|
||||
checkSpawnEventsCounter = 0
|
||||
|
||||
if not coroutines.checkSpawnedEvents then
|
||||
coroutines.checkSpawnedEvents = coroutine.create(checkSpawnedEvents)
|
||||
end
|
||||
|
||||
coroutine.resume(coroutines.checkSpawnedEvents)
|
||||
|
||||
if coroutine.status(coroutines.checkSpawnedEvents) == 'dead' then
|
||||
coroutines.checkSpawnedEvents = nil
|
||||
end
|
||||
end
|
||||
|
||||
--updating alive units
|
||||
updateAliveUnitsCounter = updateAliveUnitsCounter + 1
|
||||
if updateAliveUnitsCounter == 5 then
|
||||
@@ -1066,62 +1209,42 @@ do -- the main scope
|
||||
--- Spawns a static object to the game world.
|
||||
-- @todo write good docs
|
||||
-- @tparam table staticObj table containing data needed for the object creation
|
||||
function mist.dynAddStatic(staticObj)
|
||||
local newObj = {}
|
||||
newObj.groupId = staticObj.groupId
|
||||
newObj.category = staticObj.category
|
||||
newObj.type = staticObj.type
|
||||
newObj.unitId = staticObj.unitId
|
||||
newObj.y = staticObj.y
|
||||
newObj.x = staticObj.x
|
||||
newObj.heading = staticObj.heading
|
||||
newObj.name = staticObj.name
|
||||
newObj.dead = staticObj.dead
|
||||
newObj.country = staticObj.country
|
||||
newObj.countryId = staticObj.countryId
|
||||
newObj.clone = staticObj.clone
|
||||
newObj.shape_name = staticObj.shape_name
|
||||
newObj.canCargo = staticObj.canCargo
|
||||
newObj.mass = staticObj.mass
|
||||
newObj.categoryStatic = staticObj.categoryStatic
|
||||
if staticObj.units then -- if its mist format
|
||||
newObj.groupId = staticObj.units[1].groupId
|
||||
newObj.category = staticObj.units[1].category
|
||||
newObj.type = staticObj.units[1].type
|
||||
newObj.unitId = staticObj.units[1].unitId
|
||||
newObj.y = staticObj.units[1].y
|
||||
newObj.x = staticObj.units[1].x
|
||||
newObj.heading = staticObj.units[1].heading
|
||||
newObj.name = staticObj.units[1].name
|
||||
newObj.dead = staticObj.units[1].dead
|
||||
newObj.country = staticObj.units[1].country
|
||||
newObj.countryId = staticObj.units[1].countryId
|
||||
newObj.shape_name = staticObj.units[1].shape_name
|
||||
newObj.canCargo = staticObj.units[1].canCargo
|
||||
newObj.mass = staticObj.units[1].mass
|
||||
newObj.categoryStatic = staticObj.units[1].categoryStatic
|
||||
end
|
||||
function mist.dynAddStatic(newObj)
|
||||
|
||||
if not newObj.country then
|
||||
return false
|
||||
if newObj.units and newObj.units[1] then -- if its mist format
|
||||
for entry, val in pairs(newObj.units[1]) do
|
||||
if newObj[entry] and newObj[entry] ~= val or not newObj[entry] then
|
||||
newObj[entry] = val
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local newCountry = newObj.country
|
||||
--log:info(newObj)
|
||||
|
||||
local cntry = newObj.country
|
||||
if newObj.countryId then
|
||||
newCountry = newObj.countryId
|
||||
cntry = newObj.countryId
|
||||
end
|
||||
|
||||
local newCountry = ''
|
||||
|
||||
for countryId, countryName in pairs(country.name) do
|
||||
if type(newObj.country) == 'string' then
|
||||
if tostring(countryName) == string.upper(newObj.country) then
|
||||
if type(cntry) == 'string' then
|
||||
cntry = cntry:gsub("%s+", "_")
|
||||
if tostring(countryName) == string.upper(cntry) then
|
||||
newCountry = countryName
|
||||
end
|
||||
elseif type(newObj.country) == 'number' then
|
||||
if countryId == newObj.country then
|
||||
elseif type(cntry) == 'number' then
|
||||
if countryId == cntry then
|
||||
newCountry = countryName
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
if newCountry == '' then
|
||||
log:error("Country not found: $1", cntry)
|
||||
return false
|
||||
end
|
||||
|
||||
if newObj.clone or not newObj.groupId then
|
||||
mistGpId = mistGpId + 1
|
||||
newObj.groupId = mistGpId
|
||||
@@ -1133,8 +1256,8 @@ do -- the main scope
|
||||
end
|
||||
|
||||
if newObj.clone or not newObj.name then
|
||||
mistDynAddIndex = mistDynAddIndex + 1
|
||||
newObj.name = (country.name[newCountry] .. ' static ' .. mistDynAddIndex)
|
||||
mistDynAddIndex[' static '] = mistDynAddIndex[' static '] + 1
|
||||
newObj.name = (newCountry .. ' static ' .. mistDynAddIndex[' static '])
|
||||
end
|
||||
|
||||
if not newObj.dead then
|
||||
@@ -1144,19 +1267,33 @@ do -- the main scope
|
||||
if not newObj.heading then
|
||||
newObj.heading = math.random(360)
|
||||
end
|
||||
|
||||
|
||||
if newObj.categoryStatic then
|
||||
newObj.category = newObj.categoryStatic
|
||||
end
|
||||
if newObj.mass then
|
||||
newObj.category = 'Cargos'
|
||||
end
|
||||
|
||||
if newObj.shapeName then
|
||||
newObj.shape_name = newObj.shapeName
|
||||
end
|
||||
|
||||
if not newObj.shape_name then
|
||||
log:info('shape_name not present')
|
||||
if mist.DBs.const.shapeNames[newObj.type] then
|
||||
newObj.shape_name = mist.DBs.const.shapeNames[newObj.type]
|
||||
end
|
||||
end
|
||||
|
||||
mistAddedObjects[#mistAddedObjects + 1] = mist.utils.deepCopy(newObj)
|
||||
if newObj.x and newObj.y and newObj.type and type(newObj.x) == 'number' and type(newObj.y) == 'number' and type(newObj.type) == 'string' then
|
||||
--log:info('addStaticObject')
|
||||
coalition.addStaticObject(country.id[newCountry], newObj)
|
||||
|
||||
return newObj
|
||||
end
|
||||
log:error("Failed to add static object due to missing or incorrect value. X: $1, Y: $2, Type: $3", newObj.x, newObj.y, newObj.type)
|
||||
return false
|
||||
end
|
||||
|
||||
@@ -1189,6 +1326,7 @@ do -- the main scope
|
||||
end
|
||||
|
||||
if newCountry == '' then
|
||||
log:error("Country not found: $1", cntry)
|
||||
return false
|
||||
end
|
||||
|
||||
@@ -1223,7 +1361,7 @@ do -- the main scope
|
||||
typeName = ' bld '
|
||||
end
|
||||
if newGroup.clone or not newGroup.groupId then
|
||||
mistDynAddIndex = mistDynAddIndex + 1
|
||||
mistDynAddIndex[typeName] = mistDynAddIndex[typeName] + 1
|
||||
mistGpId = mistGpId + 1
|
||||
newGroup.groupId = mistGpId
|
||||
end
|
||||
@@ -1236,7 +1374,7 @@ do -- the main scope
|
||||
end
|
||||
|
||||
if newGroup.clone and mist.DBs.groupsByName[newGroup.name] or not newGroup.name then
|
||||
newGroup.name = tostring(tostring(country.name[cntry]) .. tostring(typeName) .. mistDynAddIndex)
|
||||
newGroup.name = tostring(newCountry .. tostring(typeName) .. mistDynAddIndex[typeName])
|
||||
end
|
||||
|
||||
if not newGroup.hidden then
|
||||
@@ -1408,7 +1546,10 @@ do -- the main scope
|
||||
end
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
-- Begin common funcs
|
||||
do
|
||||
--- Returns MGRS coordinates as string.
|
||||
-- @tparam string MGRS MGRS coordinates
|
||||
-- @tparam number acc the accuracy of each easting/northing.
|
||||
@@ -1560,6 +1701,7 @@ do -- the main scope
|
||||
end
|
||||
end
|
||||
end
|
||||
log:error("Unit not found in DB: $1", unitName)
|
||||
return false
|
||||
end
|
||||
|
||||
@@ -1575,7 +1717,11 @@ do -- the main scope
|
||||
-- search by groupId and allow groupId and groupName as inputs
|
||||
local gpId = groupIdent
|
||||
if type(groupIdent) == 'string' and not tonumber(groupIdent) then
|
||||
gpId = mist.DBs.MEgroupsByName[groupIdent].groupId
|
||||
if mist.DBs.MEgroupsByName[groupIdent] then
|
||||
gpId = mist.DBs.MEgroupsByName[groupIdent].groupId
|
||||
else
|
||||
log:error("Group not found in mist.DBs.MEgroupsByName: $1", groupIdent)
|
||||
end
|
||||
end
|
||||
|
||||
for coa_name, coa_data in pairs(env.mission.coalition) do
|
||||
@@ -2889,7 +3035,7 @@ do -- group functions scope
|
||||
newData.units[unitNum].shape_name = unitData.shape_name
|
||||
end
|
||||
end
|
||||
|
||||
--log:info(newData)
|
||||
return newData
|
||||
else
|
||||
log:error('$1 not found in MIST database', gpName)
|
||||
@@ -2901,7 +3047,11 @@ do -- group functions scope
|
||||
-- refactor to search by groupId and allow groupId and groupName as inputs
|
||||
local unitId = unitIdent
|
||||
if type(unitIdent) == 'string' and not tonumber(unitIdent) then
|
||||
unitId = mist.DBs.MEunitsByName[unitIdent].unitId
|
||||
if mist.DBs.MEunitsByName[unitIdent] then
|
||||
unitId = mist.DBs.MEunitsByName[unitIdent].unitId
|
||||
else
|
||||
log:error("Unit not found in mist.DBs.MEunitsByName: $1", unitIdent)
|
||||
end
|
||||
end
|
||||
local gpId = mist.DBs.MEunitsById[unitId].groupId
|
||||
|
||||
@@ -2940,7 +3090,11 @@ do -- group functions scope
|
||||
function mist.getGroupPayload(groupIdent)
|
||||
local gpId = groupIdent
|
||||
if type(groupIdent) == 'string' and not tonumber(groupIdent) then
|
||||
gpId = mist.DBs.MEgroupsByName[groupIdent].groupId
|
||||
if mist.DBs.MEgroupsByName[groupIdent] then
|
||||
gpId = mist.DBs.MEgroupsByName[groupIdent].groupId
|
||||
else
|
||||
log:error('$1 not found in mist.DBs.MEgroupsByName', groupIdent)
|
||||
end
|
||||
end
|
||||
|
||||
if gpId then
|
||||
@@ -3022,7 +3176,8 @@ do -- group functions scope
|
||||
action = 'tele'
|
||||
newGroupData = vars.groupData
|
||||
end
|
||||
|
||||
|
||||
--log:info('get Randomized Point')
|
||||
local diff = {x = 0, y = 0}
|
||||
local newCoord, origCoord
|
||||
if point then
|
||||
@@ -3047,7 +3202,7 @@ do -- group functions scope
|
||||
end
|
||||
end
|
||||
if valid == false then
|
||||
log:error('point supplied in variable table is not a valid coordinate.')
|
||||
log:error('Point supplied in variable table is not a valid coordinate. Valid coords: $1', validTerrain)
|
||||
return false
|
||||
end
|
||||
end
|
||||
@@ -3106,6 +3261,7 @@ do -- group functions scope
|
||||
end
|
||||
--mist.debug.writeData(mist.utils.serialize,{'teleportToPoint', newGroupData}, 'newGroupData.lua')
|
||||
if string.lower(newGroupData.category) == 'static' then
|
||||
--log:info(newGroupData)
|
||||
return mist.dynAddStatic(newGroupData)
|
||||
end
|
||||
return mist.dynAdd(newGroupData)
|
||||
@@ -3138,7 +3294,7 @@ do -- group functions scope
|
||||
end
|
||||
|
||||
function mist.cloneInZone(gpName, zone, disperse, maxDisp)
|
||||
|
||||
--log:info('cloneInZone')
|
||||
if type(gpName) == 'table' then
|
||||
gpName = gpName:getName()
|
||||
else
|
||||
@@ -3157,6 +3313,7 @@ do -- group functions scope
|
||||
vars.radius = zone.radius
|
||||
vars.disperse = disperse
|
||||
vars.maxDisp = maxDisp
|
||||
--log:info('do teleport')
|
||||
return mist.teleportToPoint(vars)
|
||||
end
|
||||
|
||||
@@ -3462,70 +3619,70 @@ do -- mist.util scope
|
||||
--- Converts angle in radians to degrees.
|
||||
-- @param angle angle in radians
|
||||
-- @return angle in degrees
|
||||
function mist.utils.toDegree (angle)
|
||||
function mist.utils.toDegree(angle)
|
||||
return angle*180/math.pi
|
||||
end
|
||||
|
||||
--- Converts angle in degrees to radians.
|
||||
-- @param angle angle in degrees
|
||||
-- @return angle in degrees
|
||||
function mist.utils.toRadian (angle)
|
||||
function mist.utils.toRadian(angle)
|
||||
return angle*math.pi/180
|
||||
end
|
||||
|
||||
--- Converts meters to nautical miles.
|
||||
-- @param meters distance in meters
|
||||
-- @return distance in nautical miles
|
||||
function mist.utils.metersToNM (meters)
|
||||
function mist.utils.metersToNM(meters)
|
||||
return meters/1852
|
||||
end
|
||||
|
||||
--- Converts meters to feet.
|
||||
-- @param meters distance in meters
|
||||
-- @return distance in feet
|
||||
function mist.utils.metersToFeet (meters)
|
||||
function mist.utils.metersToFeet(meters)
|
||||
return meters/0.3048
|
||||
end
|
||||
|
||||
--- Converts nautical miles to meters.
|
||||
-- @param nm distance in nautical miles
|
||||
-- @return distance in meters
|
||||
function mist.utils.NMToMeters (nm)
|
||||
return NM*1852
|
||||
function mist.utils.NMToMeters(nm)
|
||||
return nm*1852
|
||||
end
|
||||
|
||||
--- Converts feet to meters.
|
||||
-- @param feet distance in feet
|
||||
-- @return distance in meters
|
||||
function mist.utils.feetToMeters (feet)
|
||||
function mist.utils.feetToMeters(feet)
|
||||
return feet*0.3048
|
||||
end
|
||||
|
||||
--- Converts meters per second to knots.
|
||||
-- @param mps speed in m/s
|
||||
-- @return speed in knots
|
||||
function mist.utils.mpsToKnots (mps)
|
||||
function mist.utils.mpsToKnots(mps)
|
||||
return mps*3600/1852
|
||||
end
|
||||
|
||||
--- Converts meters per second to kilometers per hour.
|
||||
-- @param mps speed in m/s
|
||||
-- @return speed in km/h
|
||||
function mist.utils.mpsToKmph (mps)
|
||||
function mist.utils.mpsToKmph(mps)
|
||||
return mps*3.6
|
||||
end
|
||||
|
||||
--- Converts knots to meters per second.
|
||||
-- @param knots speed in knots
|
||||
-- @return speed in m/s
|
||||
function mist.utils.knotsToMps (knots)
|
||||
function mist.utils.knotsToMps(knots)
|
||||
return knots*1852/3600
|
||||
end
|
||||
|
||||
--- Converts kilometers per hour to meters per second.
|
||||
-- @param kmph speed in km/h
|
||||
-- @return speed in m/s
|
||||
function mist.utils.kmphToMps (kmph)
|
||||
function mist.utils.kmphToMps(kmph)
|
||||
return kmph/3.6
|
||||
end
|
||||
|
||||
@@ -3575,12 +3732,16 @@ do -- mist.util scope
|
||||
--- Returns the center of a zone as Vec3.
|
||||
-- @tparam string|table zone trigger zone name or table
|
||||
-- @treturn Vec3 center of the zone
|
||||
function mist.utils.zoneToVec3 (zone)
|
||||
function mist.utils.zoneToVec3(zone)
|
||||
local new = {}
|
||||
if type(zone) == 'table' and zone.point then
|
||||
new.x = zone.point.x
|
||||
new.y = zone.point.y
|
||||
new.z = zone.point.z
|
||||
if type(zone) == 'table' then
|
||||
if zone.point then
|
||||
new.x = zone.point.x
|
||||
new.y = zone.point.y
|
||||
new.z = zone.point.z
|
||||
elseif zone.x and zone.y and zone.z then
|
||||
return zone
|
||||
end
|
||||
return new
|
||||
elseif type(zone) == 'string' then
|
||||
zone = trigger.misc.getZone(zone)
|
||||
@@ -3662,6 +3823,7 @@ do -- mist.util scope
|
||||
|
||||
return new
|
||||
end
|
||||
log:error("$1 not found or doesn't exist", pUnit)
|
||||
return false
|
||||
end
|
||||
|
||||
@@ -5778,9 +5940,11 @@ do -- group tasks scope
|
||||
function mist.getGroupRoute(groupIdent, task)
|
||||
-- refactor to search by groupId and allow groupId and groupName as inputs
|
||||
local gpId = groupIdent
|
||||
if type(groupIdent) == 'string' and not tonumber(groupIdent) then
|
||||
gpId = mist.DBs.MEgroupsByName[groupIdent].groupId
|
||||
end
|
||||
if mist.DBs.MEgroupsByName[groupIdent] then
|
||||
gpId = mist.DBs.MEgroupsByName[groupIdent].groupId
|
||||
else
|
||||
log:error('$1 not found in mist.DBs.MEgroupsByName', groupIdent)
|
||||
end
|
||||
|
||||
for coa_name, coa_data in pairs(env.mission.coalition) do
|
||||
if (coa_name == 'red' or coa_name == 'blue') and type(coa_data) == 'table' then
|
||||
@@ -5818,6 +5982,7 @@ do -- group tasks scope
|
||||
|
||||
return points
|
||||
end
|
||||
log:error('Group route not defined in mission editor for groupId: $1', gpId)
|
||||
return
|
||||
end --if group_data and group_data.name and group_data.name == 'groupname'
|
||||
end --for group_num, group_data in pairs(obj_type_data.group) do
|
||||
@@ -6482,7 +6647,7 @@ do -- mist.Logger scope
|
||||
self.level = 0
|
||||
elseif level == 'error' then
|
||||
self.level = 1
|
||||
elseif level == 'warning' then
|
||||
elseif level == 'warning' or level == 'warn' then
|
||||
self.level = 2
|
||||
elseif level == 'info' then
|
||||
self.level = 3
|
||||
Binary file not shown.
Reference in New Issue
Block a user