mirror of
https://github.com/iTracerFacer/DCS_MissionDev.git
synced 2025-12-03 04:14:46 +00:00
2241 lines
112 KiB
Lua
2241 lines
112 KiB
Lua
--[[ Battle for Rayak Valley - Moose Script
|
|
Author: F9tth-TracerFacer
|
|
|
|
|
|
|
|
]]
|
|
|
|
local ENABLE_SAMS = true -- used for testing purposes. Set to true to enable SAMs, false to disable.
|
|
local TAC_DISPLAY = false -- Set to false to disable Tacview display for AI flights (default = false)
|
|
|
|
-- How many red/blue aircraft are in the air by default.
|
|
local RedA2ADefaultOverhead = 1.5
|
|
local RedDefaultCAP = 1
|
|
local BlueA2ADefaultOverhead = 1.5
|
|
local BlueDefaultCAP = 1
|
|
|
|
local shipName = "CVN-72 Abraham Lincoln" -- Replace with the actual name of your ship
|
|
local shipUnit = Unit.getByName(shipName)
|
|
shipID = shipUnit:getID()
|
|
env.info(shipName .. ": " .. shipID)
|
|
|
|
local function CarrierCleanDeck()
|
|
|
|
do
|
|
local statObj = coalition.getStaticObjects(2) --1 Red coalition 2 blue coalition
|
|
for i, static in pairs(statObj) do
|
|
local staticName = static:getName()
|
|
if string.match(staticName, "8temp.*") then
|
|
static:destroy() -- removes the object
|
|
end
|
|
end
|
|
end
|
|
|
|
do
|
|
local statObj = coalition.getStaticObjects(2) --1 Red coalition 2 blue coalition
|
|
for i, static in pairs(statObj) do
|
|
local staticName = static:getName()
|
|
if string.match(staticName, "8temp Block.*") then
|
|
static:destroy() -- removes the object
|
|
end
|
|
end
|
|
end
|
|
|
|
do
|
|
local statObj = coalition.getStaticObjects(2) --1 Red coalition 2 blue coalition
|
|
for i, static in pairs(statObj) do
|
|
local staticName = static:getName()
|
|
if string.match(staticName, "4temp Block.*") then
|
|
static:destroy() -- removes the object
|
|
end
|
|
end
|
|
end
|
|
|
|
do
|
|
local statObj = coalition.getStaticObjects(2) --1 Red coalition 2 blue coalition
|
|
for i, static in pairs(statObj) do
|
|
local staticName = static:getName()
|
|
if string.match(staticName, "4temp.*") then
|
|
static:destroy() -- removes the object
|
|
end
|
|
end
|
|
end
|
|
|
|
do
|
|
local statObj = coalition.getStaticObjects(2) --1 Red coalition 2 blue coalition
|
|
for i, static in pairs(statObj) do
|
|
local staticName = static:getName()
|
|
if string.match(staticName, "MassRecoverCat.*") then
|
|
static:destroy() -- removes the object
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
local function CarrierClearDeck8Spawns()
|
|
env.info("Clearing Deck 8 Spawns")
|
|
CarrierCleanDeck()
|
|
-- Created by Redkite: https://www.youtube.com/user/RedKiteRender/
|
|
|
|
local staticObj = {
|
|
|
|
["name"] = "8temp EL1 Hornet 2", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "VFA-37",
|
|
["category"] = "Planes",
|
|
["type"] = "FA-18C_hornet",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 31.035356269975,
|
|
["angle"] = 4.7123889803847,
|
|
["x"] = 23.392320767991,
|
|
}, -- end of ["offsets"]
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "8temp EL1 Hornet 1", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "VFA-37",
|
|
["category"] = "Planes",
|
|
["type"] = "FA-18C_hornet",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 31.61437411001,
|
|
["angle"] = 4.7123889803847,
|
|
["x"] = 33.698838333992,
|
|
}, -- end of ["offsets"]
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "8temp Finger Seahawk", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "standard",
|
|
["category"] = "Helicopters",
|
|
["offsets"] =
|
|
{
|
|
["y"] = -25.023610410048,
|
|
["angle"] = 1.7976891295542,
|
|
["x"] = -120.511512843,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "SH-60B",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "8temp Corral Crane", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["category"] = "ADEquipment",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 33.281995239959,
|
|
["angle"] = 4.6600291028249,
|
|
["x"] = 0.755692206003,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "AS32-36A",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "8temp Point Firetruck", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["category"] = "ADEquipment",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 32.424999079958,
|
|
["angle"] = 5.4279739737024,
|
|
["x"] = 72.724640796994,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "AS32-p25",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "8temp Junk Yard Tug", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["category"] = "ADEquipment",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 30.242116749985,
|
|
["angle"] = 2.4958208303519,
|
|
["x"] = -79.610005513998,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "AS32-31A",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
|
|
local staticObj = {
|
|
|
|
["name"] = "8temp Corral E2", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "E-2D Demo",
|
|
["category"] = "Planes",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 30.665721859958,
|
|
["angle"] = 4.6949356878647,
|
|
["x"] = 8.8025239199924,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "E-2C",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
|
|
local staticObj = {
|
|
|
|
["name"] = "8temp Point Hornet", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "VFA-37",
|
|
["category"] = "Planes",
|
|
["type"] = "FA-18C_hornet",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 34.190822379955,
|
|
["angle"] = 3.3335788713092,
|
|
["x"] = 61.561528349994,
|
|
}, -- end of ["offsets"]
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "8temp LSO Station 3", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["category"] = "Personnel",
|
|
["offsets"] =
|
|
{
|
|
["y"] = -22.370473980031,
|
|
["angle"] = 2.4434609527921,
|
|
["x"] = -130.61201797701,
|
|
}, -- end of ["offsets"]
|
|
["shape_name"] = "carrier_lso_usa",
|
|
["type"] = "Carrier LSO Personell",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
["name"] = "8temp LSO Station 1", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["category"] = "Personnel",
|
|
["offsets"] =
|
|
{
|
|
["y"] = -21.789118479996,
|
|
["angle"] = 4.2935099599061,
|
|
["x"] = -129.42353100701,
|
|
}, -- end of ["offsets"]
|
|
["shape_name"] = "carrier_lso1_usa",
|
|
["type"] = "Carrier LSO Personell 1",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
["name"] = "8temp LSO Station 2", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "white",
|
|
["category"] = "Personnel",
|
|
["offsets"] =
|
|
{
|
|
["y"] = -22.656188270019,
|
|
["angle"] = 1.850049007114,
|
|
["x"] = -129.497732263,
|
|
}, -- end of ["offsets"]
|
|
["shape_name"] = "carrier_tech_USA",
|
|
["type"] = "us carrier tech",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
["name"] = "8temp Point Tech 3", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "white",
|
|
["category"] = "Personnel",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 31.799837369996,
|
|
["angle"] = 1.850049007114,
|
|
["x"] = 58.869844022993,
|
|
}, -- end of ["offsets"]
|
|
["shape_name"] = "carrier_tech_USA",
|
|
["type"] = "us carrier tech",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
["name"] = "8temp Point Tech 2", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "purple",
|
|
["category"] = "Personnel",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 36.657607259986,
|
|
["angle"] = 5.9341194567807,
|
|
["x"] = 60.15744568099,
|
|
}, -- end of ["offsets"]
|
|
["shape_name"] = "carrier_tech_USA",
|
|
["type"] = "us carrier tech",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
["name"] = "8temp Point Tech 1", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "purple",
|
|
["category"] = "Personnel",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 32.502165549959,
|
|
["angle"] = 2.460914245312,
|
|
["x"] = 67.356309497001,
|
|
}, -- end of ["offsets"]
|
|
["shape_name"] = "carrier_tech_USA",
|
|
["type"] = "us carrier tech",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
["name"] = "8temp Corral Tech 1", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "yellow",
|
|
["category"] = "Personnel",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 25.203805239988,
|
|
["angle"] = 4.7472955654246,
|
|
["x"] = 15.325497041995,
|
|
}, -- end of ["offsets"]
|
|
["shape_name"] = "carrier_tech_USA",
|
|
["type"] = "us carrier tech",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
["name"] = "8temp Corral Tech 2", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "yellow",
|
|
["category"] = "Personnel",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 24.753144659975,
|
|
["angle"] = 5.218534463463,
|
|
["x"] = 13.844755134996,
|
|
}, -- end of ["offsets"]
|
|
["shape_name"] = "carrier_tech_USA",
|
|
["type"] = "us carrier tech",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
["name"] = "8temp Junk Yard Seaman", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["category"] = "Personnel",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 31.255831669958,
|
|
["angle"] = 4.7472955654246,
|
|
["x"] = -78.473079361007,
|
|
}, -- end of ["offsets"]
|
|
["shape_name"] = "carrier_seaman_USA",
|
|
["type"] = "Carrier Seaman",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
["name"] = "8temp Corral Tech 2 #001", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "yellow",
|
|
["category"] = "Personnel",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 19.767758169968,
|
|
["angle"] = 1.5882496193148,
|
|
["x"] = -19.085825937,
|
|
}, -- end of ["offsets"]
|
|
["shape_name"] = "carrier_tech_USA",
|
|
["type"] = "us carrier tech",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
["name"] = "8temp JY Seaman #001", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["category"] = "Personnel",
|
|
["offsets"] =
|
|
{
|
|
["y"] = -35.76436746004,
|
|
["angle"] = 1.6580627893946,
|
|
["x"] = -87.794107105001,
|
|
}, -- end of ["offsets"]
|
|
["shape_name"] = "carrier_tech_USA",
|
|
["type"] = "us carrier tech",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = tshipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
["name"] = "8temp JY Seaman #002", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "green",
|
|
["category"] = "Personnel",
|
|
["offsets"] =
|
|
{
|
|
["y"] = -33.335796030005,
|
|
["angle"] = 3.6651914291881,
|
|
["x"] = -89.908392819008,
|
|
}, -- end of ["offsets"]
|
|
["shape_name"] = "carrier_tech_USA",
|
|
["type"] = "us carrier tech",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
["name"] = "8temp Point Firetruck #001", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["category"] = "ADEquipment",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 18.819578160008,
|
|
["angle"] = 4.1713369122664,
|
|
["x"] = -0.2022494480043,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "AS32-31A",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
["name"] = "8temp Corral Tech 2 #002", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "yellow",
|
|
["category"] = "Personnel",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 19.479165099969,
|
|
["angle"] = 5.1312680008633,
|
|
["x"] = -2.0930653510004,
|
|
}, -- end of ["offsets"]
|
|
["shape_name"] = "carrier_tech_USA",
|
|
["type"] = "us carrier tech",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
|
|
local staticObj = {
|
|
["name"] = "8temp Corral Tech 2 #003", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "yellow",
|
|
["category"] = "Personnel",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 17.940128899994,
|
|
["angle"] = 1.0471975511966,
|
|
["x"] = -2.3569001290016,
|
|
}, -- end of ["offsets"]
|
|
["shape_name"] = "carrier_tech_USA",
|
|
["type"] = "us carrier tech",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
["name"] = "8temp Patio Tug", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["category"] = "ADEquipment",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 29.150888629956,
|
|
["angle"] = 5.1138147083434,
|
|
["x"] = -111.66933041,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "AS32-31A",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
["name"] = "8temp Patio Tech", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "yellow",
|
|
["category"] = "Personnel",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 32.040782110009,
|
|
["angle"] = 4.6425758103049,
|
|
["x"] = -111.053451471,
|
|
}, -- end of ["offsets"]
|
|
["shape_name"] = "carrier_tech_USA",
|
|
["type"] = "us carrier tech",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
end
|
|
|
|
local function CarrierClearDeck4Spawns()
|
|
env.info("Clearing Deck 4 Spawns")
|
|
CarrierCleanDeck()
|
|
-- Created by Redkite: https://www.youtube.com/user/RedKiteRender/
|
|
|
|
local staticObj = {
|
|
|
|
["groupId"] = 400, -- ids of the unit we're spawning (will auto increment if id taken)
|
|
["unitId"] = 401,
|
|
["rate"] = 30,
|
|
["name"] = "4temp EL1 Hornet 1", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
|
|
["type"] = "FA-18C_hornet", -- unit, category and livery of unit to place.
|
|
["category"] = "Planes",
|
|
["livery_id"] = "VFA-37",
|
|
|
|
["y"] = -274433.54379664,
|
|
["heading"] = 37.55948550292, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -90767.765053252,
|
|
|
|
["offsets"] = { -- The offsets that choose where on the deck it will spawn
|
|
["y"] = 31.035356269975,
|
|
["angle"] = 4.7123889803847,
|
|
["x"] = 23.392320767991
|
|
}, -- end of ["offsets"]
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
|
|
|
|
|
|
local staticObj = {
|
|
|
|
["groupId"] = 401, -- ids of the unit we're spawning (will auto increment if id taken)
|
|
["unitId"] = 401,
|
|
["rate"] = 30,
|
|
["name"] = "4temp EL1 Hornet 2", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
|
|
["type"] = "FA-18C_hornet", -- unit, category and livery of unit to place.
|
|
["category"] = "Planes",
|
|
["livery_id"] = "VFA-37",
|
|
|
|
["y"] = 274432.9647788,
|
|
["heading"] = 4.7123889803847, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -90757.458535686,
|
|
|
|
["offsets"] = { -- The offsets that choose where on the deck it will spawn
|
|
["y"] = 31.61437411001,
|
|
["angle"] = 4.7123889803847,
|
|
["x"] = 33.698838333992,
|
|
}, -- end of ["offsets"]
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
|
|
|
|
|
|
local staticObj = {
|
|
|
|
["groupId"] = 403, -- ids of the unit we're spawning (will auto increment if id taken)
|
|
["unitId"] = 403,
|
|
["rate"] = 30,
|
|
["name"] = "4temp EL2 S3", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
|
|
["type"] = "S-3B Tanker", -- unit, category and livery of unit to place.
|
|
["category"] = "Planes",
|
|
["livery_id"] = "usaf standard",
|
|
|
|
["offsets"] = { -- The offsets that choose where on the deck it will spawn
|
|
["y"] = 29.84889531997,
|
|
["angle"] = 4.4505895925855,
|
|
["x"] = -14.761768433003,
|
|
}, -- end of ["offsets"]
|
|
|
|
["y"] = -274434.73025759, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -90805.919142453,
|
|
["heading"] = 4.4505895925855,
|
|
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
|
|
local staticObj = {
|
|
|
|
-- Segment you need to change start
|
|
["groupId"] = 1, -- id's of the unit we're spawning (will auto increment if id taken)
|
|
["unitId"] = 1,
|
|
["name"] = "4temp EL2 Hornet", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
|
|
|
|
|
|
["livery_id"] = "VFA-37",
|
|
["category"] = "Planes",
|
|
["offsets"] = { -- The offsets that choose where on the deck it will spawn
|
|
["y"] = 31.382766969968,
|
|
["angle"] = 4.7123889803847,
|
|
["x"] = -25.013570722003,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "FA-18C_hornet", -- unit, category and livery of unit to place.
|
|
-- Segment you need to change end
|
|
|
|
|
|
["x"] = -90816.170944742, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["y"] = -274433.19638594,
|
|
["heading"] = 4.7123889803847,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
|
|
|
|
local staticObj = {
|
|
|
|
-- Segment you need to change start
|
|
|
|
["name"] = "4temp Finger Seahawk", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
|
|
|
|
["livery_id"] = "standard",
|
|
["category"] = "Helicopters",
|
|
["offsets"] = { -- The offsets that choose where on the deck it will spawn
|
|
["y"] = -25.023610410048,
|
|
["angle"] = 1.7976891295542,
|
|
["x"] = -120.511512843,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "SH-60B", -- unit, category and livery of unit to place.
|
|
-- Segment you need to change end
|
|
|
|
-- these can be left as is, but are required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
|
|
|
|
local staticObj = {
|
|
|
|
-- Segment you need to change start
|
|
|
|
["name"] = "4temp Corral Crane", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
|
|
|
|
["category"] = "ADEquipment",
|
|
["offsets"] = { -- The offsets that choose where on the deck it will spawn
|
|
["y"] = 33.351427629997,
|
|
["angle"] = 4.6600291028249,
|
|
["x"] = -0.92642854900623,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "AS32-36A", -- unit, category and livery of unit to place.
|
|
-- Segment you need to change end
|
|
|
|
-- these can be left as is, but are required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
|
|
local staticObj = {
|
|
|
|
-- Segment you need to change start
|
|
|
|
["name"] = "4temp Point Firetruck", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
|
|
|
|
["category"] = "ADEquipment",
|
|
["offsets"] = { -- The offsets that choose where on the deck it will spawn
|
|
["y"] = 32.424999079958,
|
|
["angle"] = 5.4279739737024,
|
|
["x"] = 72.724640796994,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "AS32-p25", -- unit, category and livery of unit to place.
|
|
-- Segment you need to change end
|
|
|
|
-- these can be left as is, but are required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
|
|
local staticObj = {
|
|
|
|
-- Segment you need to change start
|
|
|
|
["name"] = "4temp Junk Yard Tug", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
|
|
|
|
["category"] = "ADEquipment",
|
|
["offsets"] = { -- The offsets that choose where on the deck it will spawn
|
|
["y"] = 30.242116749985,
|
|
["angle"] = 2.4958208303519,
|
|
["x"] = -79.610005513998,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "AS32-31A", -- unit, category and livery of unit to place.
|
|
-- Segment you need to change end
|
|
|
|
-- these can be left as is, but are required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
|
|
-- ********************************************************
|
|
|
|
local staticObj = {
|
|
-- Segment you need to change start
|
|
|
|
["name"] = "4temp EL4 Tomcat 1", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
|
|
["livery_id"] = "VF-102 Diamondbacks",
|
|
["category"] = "Planes",
|
|
["offsets"] =
|
|
{
|
|
["y"] = -32.180430089997,
|
|
["angle"] = 1.9373154697137,
|
|
["x"] = -98.393250321998,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "F-14B",
|
|
-- Segment you need to change end
|
|
|
|
-- these can be left as is, but are required.
|
|
-- ["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
|
|
|
|
local staticObj = {
|
|
|
|
["name"] = "4temp EL4 Tomcat 2", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "VF-102 Diamondbacks 102",
|
|
["category"] = "Planes",
|
|
["offsets"] =
|
|
{
|
|
["y"] = -32.924847350048,
|
|
["angle"] = 1.7627825445143,
|
|
["x"] = -110.574623714,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "F-14B",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
|
|
local staticObj = {
|
|
|
|
["name"] = "4temp Corral E2", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "E-2D Demo",
|
|
["category"] = "Planes",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 30.665721859958,
|
|
["angle"] = 4.6949356878647,
|
|
["x"] = 8.8025239199924,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "E-2C",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
|
|
local staticObj = {
|
|
|
|
["name"] = "4temp Point Hornet", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "VFA-37",
|
|
["category"] = "Planes",
|
|
["type"] = "FA-18C_hornet",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 34.190822379955,
|
|
["angle"] = 3.3335788713092,
|
|
["x"] = 61.561528349994,
|
|
}, -- end of ["offsets"]
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
|
|
|
|
local staticObj = {
|
|
|
|
["name"] = "4temp LSO Station 3", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["category"] = "Personnel",
|
|
["offsets"] =
|
|
{
|
|
["y"] = -22.370473980031,
|
|
["angle"] = 2.4434609527921,
|
|
["x"] = -130.61201797701,
|
|
}, -- end of ["offsets"]
|
|
["shape_name"] = "carrier_lso_usa",
|
|
["type"] = "Carrier LSO Personell",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
|
|
|
|
|
|
local staticObj = {
|
|
|
|
["name"] = "4temp LSO Station 1", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["category"] = "Personnel",
|
|
["offsets"] =
|
|
{
|
|
["y"] = -21.789118479996,
|
|
["angle"] = 4.2935099599061,
|
|
["x"] = -129.42353100701,
|
|
}, -- end of ["offsets"]
|
|
["shape_name"] = "carrier_lso1_usa",
|
|
["type"] = "Carrier LSO Personell 1",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
|
|
|
|
local staticObj = {
|
|
|
|
["name"] = "4temp LSO Station 2", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "white",
|
|
["category"] = "Personnel",
|
|
["offsets"] =
|
|
{
|
|
["y"] = -22.656188270019,
|
|
["angle"] = 1.850049007114,
|
|
["x"] = -129.497732263,
|
|
}, -- end of ["offsets"]
|
|
["shape_name"] = "carrier_tech_USA",
|
|
["type"] = "us carrier tech",
|
|
["unitId"] = 17,
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
|
|
local staticObj = {
|
|
|
|
["name"] = "4temp Point Tech 3", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "white",
|
|
["category"] = "Personnel",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 31.799837369996,
|
|
["angle"] = 1.850049007114,
|
|
["x"] = 58.869844022993,
|
|
}, -- end of ["offsets"]
|
|
["shape_name"] = "carrier_tech_USA",
|
|
["type"] = "us carrier tech",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "4temp Point Tech 2", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "purple",
|
|
["category"] = "Personnel",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 36.657607259986,
|
|
["angle"] = 5.9341194567807,
|
|
["x"] = 60.15744568099,
|
|
}, -- end of ["offsets"]
|
|
["shape_name"] = "carrier_tech_USA",
|
|
["type"] = "us carrier tech",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "4temp Point Tech 1", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "purple",
|
|
["category"] = "Personnel",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 32.502165549959,
|
|
["angle"] = 2.460914245312,
|
|
["x"] = 67.356309497001,
|
|
}, -- end of ["offsets"]
|
|
["shape_name"] = "carrier_tech_USA",
|
|
["type"] = "us carrier tech",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "4temp Corral Tech 1", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "yellow",
|
|
["category"] = "Personnel",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 25.203805239988,
|
|
["angle"] = 4.7472955654246,
|
|
["x"] = 15.325497041995,
|
|
}, -- end of ["offsets"]
|
|
["shape_name"] = "carrier_tech_USA",
|
|
["type"] = "us carrier tech",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "4temp Corral Tech 2", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "yellow",
|
|
["category"] = "Personnel",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 24.753144659975,
|
|
["angle"] = 5.218534463463,
|
|
["x"] = 13.844755134996,
|
|
}, -- end of ["offsets"]
|
|
["shape_name"] = "carrier_tech_USA",
|
|
["type"] = "us carrier tech",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "4temp Junk Yard Seaman", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["category"] = "Personnel",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 31.255831669958,
|
|
["angle"] = 4.7472955654246,
|
|
["x"] = -78.473079361007,
|
|
}, -- end of ["offsets"]
|
|
["shape_name"] = "carrier_seaman_USA",
|
|
["type"] = "Carrier Seaman",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "4temp EL2 Tug", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["category"] = "ADEquipment",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 25.035044669989,
|
|
["angle"] = 2.4958208303519,
|
|
["x"] = -22.810439552006,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "AS32-31A",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
-- ********************************************************
|
|
|
|
end
|
|
|
|
local function CarrierMassRecoveryCat2Tomcats()
|
|
env.info("MassRecoveryCat2Tomcats")
|
|
CarrierCleanDeck()
|
|
-- Created by Redkite: https://www.youtube.com/user/RedKiteRender/
|
|
|
|
local staticObj = {
|
|
|
|
["name"] = "MassRecoverCat 2 Tomcat 1", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "VF-102 Diamondbacks",
|
|
["category"] = "Planes",
|
|
["offsets"] =
|
|
{
|
|
["y"] = -8.5679547744221,
|
|
["angle"] = 0.4014257279587,
|
|
["x"] = 153.03426857338,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "F-14B",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "MassRecoverCat 2 Tomcat 2", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "VF-102 Diamondbacks",
|
|
["category"] = "Planes",
|
|
["offsets"] =
|
|
{
|
|
["y"] = -8.656340524496,
|
|
["angle"] = 0.59341194567807,
|
|
["x"] = 135.26873280854,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "F-14B",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "MassRecoverCat 2 Tomcat 3", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "VF-143 Pukin Dogs Low Vis",
|
|
["category"] = "Planes",
|
|
["offsets"] =
|
|
{
|
|
["y"] = -9.2750407750136,
|
|
["angle"] = 0.69813170079773,
|
|
["x"] = 118.21028304429,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "F-14B",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "MassRecoverCat 2 Tomcat 4", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "VF-211 Fighting Checkmates",
|
|
["category"] = "Planes",
|
|
["offsets"] =
|
|
{
|
|
["y"] = -8.3027975242003,
|
|
["angle"] = 0.78539816339745,
|
|
["x"] = 101.68214778043,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "F-14B",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "MassRecoverCat 2 Tomcat 5", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "VF-211 Fighting Checkmates",
|
|
["category"] = "Planes",
|
|
["offsets"] =
|
|
{
|
|
["y"] = -4.705670082476,
|
|
["angle"] = 0.55850536063819,
|
|
["x"] = 83.441810281671,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "F-14B",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
|
|
local staticObj = {
|
|
|
|
["name"] = "MassRecoverCat 2 Tomcat 6", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "VF-74 BeDevilers 1991",
|
|
["category"] = "Planes",
|
|
["offsets"] =
|
|
{
|
|
["y"] = -2.2444017659291,
|
|
["angle"] = 0.34906585039887,
|
|
["x"] = 63.863539581915,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "F-14B",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = trigger.misc.getUserFlag('404'), -- This flag MUST contain the unit ID of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
|
|
end
|
|
|
|
local function CarrierBlockedDeck8Spawns()
|
|
env.info("BlockedDeck8Spawns")
|
|
CarrierCleanDeck()
|
|
|
|
-- Created by Redkite: https://www.youtube.com/user/RedKiteRender/
|
|
|
|
local staticObj = {
|
|
|
|
["name"] = "8temp Blocker Patio S3", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "usaf standard",
|
|
["category"] = "Planes",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 26.462317789963,
|
|
["angle"] = 0.034906585039887,
|
|
["x"] = -136.44656968401,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "S-3B Tanker",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "8temp Blocker Patio Tomcat", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "VF-102 Diamondbacks",
|
|
["category"] = "Planes",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 26.834156429977,
|
|
["angle"] = 3.7699111843078,
|
|
["x"] = -123.20911407401,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "F-14B",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "8temp Blocker EL3 Tomcat", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "VF-102 Diamondbacks",
|
|
["category"] = "Planes",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 33.229781050002,
|
|
["angle"] = 4.6949356878647,
|
|
["x"] = -104.617182038,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "F-14B",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "8temp Blocker EL3 Hornet", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "VF-102 Diamondbacks",
|
|
["category"] = "Planes",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 32.607335179986,
|
|
["angle"] = 4.6949356878647,
|
|
["x"] = -91.664486535999,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "F-14B",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "8temp Blocker Island Hornet 1", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "VFA-37",
|
|
["category"] = "Planes",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 20.882562899962,
|
|
["angle"] = 5.3930673886625,
|
|
["x"] = -71.796896190004,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "FA-18C_hornet",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "8temp Blocker Island Hornet 2", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "VFA-97",
|
|
["category"] = "Planes",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 17.046432009956,
|
|
["angle"] = 5.7770398241012,
|
|
["x"] = -58.370438072001,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "FA-18C_hornet",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "8temp Blocker Island Hornet 3", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "VFA-97",
|
|
["category"] = "Planes",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 14.469786549977,
|
|
["angle"] = 5.3407075111026,
|
|
["x"] = -45.576714306007,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "FA-18C_hornet",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
end
|
|
|
|
local function CarrierBlockedDeck4Spawns()
|
|
env.info("BlockedDeck4Spawns")
|
|
CarrierCleanDeck()
|
|
-- Created by Redkite: https://www.youtube.com/user/RedKiteRender/
|
|
|
|
local staticObj = {
|
|
|
|
["name"] = "4temp Block Island Seahawk", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "standard",
|
|
["category"] = "Helicopters",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 13.940469299967,
|
|
["angle"] = 5.2883476335428,
|
|
["x"] = -53.007764027003,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "SH-60B",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "4temp Block Island E2", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "E-2D Demo",
|
|
["category"] = "Planes",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 19.286680730002,
|
|
["angle"] = 5.7421332390613,
|
|
["x"] = -66.808449347009,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "E-2C",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "4temp Block EL3 Tomcat 1", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "VF-32 Fighting Swordsmen 102",
|
|
["category"] = "Planes",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 33.290550209989,
|
|
["angle"] = 4.607669225265,
|
|
["x"] = -92.26798636101,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "F-14B",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "4temp Block EL3 Tomcat 2", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "VF-32 Fighting Swordsmen 101",
|
|
["category"] = "Planes",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 33.290550209989,
|
|
["angle"] = 4.7647488579445,
|
|
["x"] = -104.84876127,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "F-14B",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "4temp Block Patio Hornet 1", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "VFA-106",
|
|
["category"] = "Planes",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 26.055655829958,
|
|
["angle"] = 5.3756140961425,
|
|
["x"] = -114.693982315,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "FA-18C_hornet",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "4temp Block Patio Hornet 2", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "VFA-106",
|
|
["category"] = "Planes",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 24.606041149993,
|
|
["angle"] = 5.3756140961425,
|
|
["x"] = -123.874875294,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "FA-18C_hornet",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
local staticObj = {
|
|
|
|
["name"] = "4temp Block Patio Hornet 3", -- unit name (Name this something identifiable if you wish to remove it later)
|
|
-- Copy and paste over this with the units information
|
|
["livery_id"] = "VFA-106",
|
|
["category"] = "Planes",
|
|
["offsets"] =
|
|
{
|
|
["y"] = 24.702682129981,
|
|
["angle"] = 5.9864793343406,
|
|
["x"] = -136.24492057001,
|
|
}, -- end of ["offsets"]
|
|
["type"] = "FA-18C_hornet",
|
|
-- Copy and paste over this with the units information end
|
|
|
|
-- these can be left as is, but is required.
|
|
["groupId"] = 33, -- id's of the unit we're spawning (will auto increment if id taken?)
|
|
["unitId"] = 33,
|
|
["y"] = -00127900, -- The initial location of the unit (required else unit will offet on origin of map)
|
|
["x"] = -00126557,
|
|
["heading"] = 37.55948550292,
|
|
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
|
|
["linkOffset"] = true,
|
|
["dead"] = false,
|
|
["rate"] = 30,
|
|
}
|
|
coalition.addStaticObject(country.id.USA, staticObj)
|
|
|
|
-- ********************************************************
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
local carrierLayouts = {
|
|
CarrierClearDeck8Spawns,
|
|
CarrierBlockedDeck8Spawns,
|
|
CarrierClearDeck4Spawns,
|
|
CarrierBlockedDeck4Spawns,
|
|
CarrierMassRecoveryCat2Tomcats
|
|
}
|
|
|
|
local currentLayoutIndex = 1
|
|
|
|
local function cycleCarrierLayouts()
|
|
-- Clean the deck before changing the layout
|
|
CarrierCleanDeck()
|
|
|
|
-- Get the current layout function
|
|
local layoutFunction = carrierLayouts[currentLayoutIndex]
|
|
|
|
-- Call the layout function
|
|
layoutFunction()
|
|
|
|
-- Move to the next layout in the list
|
|
currentLayoutIndex = currentLayoutIndex % #carrierLayouts + 1
|
|
|
|
-- Schedule the next execution in 15 minutes (900 seconds)
|
|
timer.scheduleFunction(cycleCarrierLayouts, nil, timer.getTime() + 900)
|
|
end
|
|
|
|
-- Start the cycle
|
|
cycleCarrierLayouts()
|
|
|
|
-- Create the main mission menu.
|
|
missionMenu = MENU_MISSION:New("Mission Menu")
|
|
CarrierMenu = MENU_MISSION:New("Carrier Operations", missionMenu)
|
|
CarrierLayout4SpawnsClearDeck = MENU_COALITION_COMMAND:New(coalition.side.BLUE, "Clear Deck 4 Spawns", CarrierMenu, CarrierClearDeck4Spawns)
|
|
CarrierLayoutBlockedDeck4Spawns = MENU_COALITION_COMMAND:New(coalition.side.BLUE, "Blocked Deck 4 Spawns", CarrierMenu, CarrierBlockedDeck4Spawns)
|
|
CarrierLayout8SpawnsClearDeck = MENU_COALITION_COMMAND:New(coalition.side.BLUE, "Clear Deck 8 Spawns", CarrierMenu, CarrierClearDeck8Spawns)
|
|
CarrierLayoutBlockedDeck8Spawns = MENU_COALITION_COMMAND:New(coalition.side.BLUE, "Blocked Deck 8 Spawns", CarrierMenu, CarrierBlockedDeck8Spawns)
|
|
CarrierLayoutMassRecoveryCat2Tomcats = MENU_COALITION_COMMAND:New(coalition.side.BLUE, "Mass Recovery", CarrierMenu, CarrierMassRecoveryCat2Tomcats)
|
|
CarrierLayoutCleanDeck = MENU_COALITION_COMMAND:New(coalition.side.BLUE, "Clear Deck", CarrierMenu, CarrierCleanDeck)
|
|
|
|
|
|
--Build Command Center and Mission for Blue
|
|
US_CC = COMMANDCENTER:New( GROUP:FindByName( "BLUEHQ" ), "USA HQ" )
|
|
US_Mission = MISSION:New( US_CC, "Battle for Rayak Valley", "Primary", "Clear the front lines of enemy activity.", coalition.side.BLUE)
|
|
US_Score = SCORING:New( "Battle for Rayak Valley - Blue" )
|
|
US_Mission:AddScoring( US_Score )
|
|
US_Mission:Start()
|
|
US_Score:SetMessagesHit(false)
|
|
US_Score:SetMessagesDestroy(false)
|
|
US_Score:SetMessagesScore(false)
|
|
|
|
--Build Command Center and Mission Red
|
|
RU_CC = COMMANDCENTER:New( GROUP:FindByName( "REDHQ" ), "Russia HQ" )
|
|
RU_Mission = MISSION:New (RU_CC, "Battle for Rayak Valley", "Primary", "Destroy U.S. and NATO forces.", coalition.side.RED)
|
|
RU_Score = SCORING:New("Battle for Rayak Valley - Red")
|
|
RU_Mission:AddScoring( RU_Score)
|
|
RU_Mission:Start()
|
|
RU_Score:SetMessagesHit(false)
|
|
RU_Score:SetMessagesDestroy(false)
|
|
RU_Score:SetMessagesScore(false)
|
|
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
-- Setup Air Dispatchers for RED and BLUE
|
|
------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
BLUEBorderZone = ZONE_POLYGON:New( "BLUE BORDER", GROUP:FindByName( "BLUE BORDER" ) )
|
|
BLUEA2ADispatcher = AI_A2A_GCICAP:NewWithBorder( { "BLUE EWR" }, { "FIGHTER SWEEP BLUE" }, 'BLUE BORDER', 'BLUE BORDER', BlueDefaultCAP, 10000, 50000, 75000, 100)
|
|
BLUEA2ADispatcher:SetDefaultLandingAtRunway()
|
|
BLUEA2ADispatcher:SetDefaultTakeoffInAir()
|
|
BLUEA2ADispatcher:SetTacticalDisplay(TAC_DISPLAY)
|
|
BLUEA2ADispatcher:SetDefaultFuelThreshold( 0.20 )
|
|
BLUEA2ADispatcher:SetRefreshTimeInterval( 300 )
|
|
BLUEA2ADispatcher:SetDefaultOverhead(BlueA2ADefaultOverhead)
|
|
BLUEA2ADispatcher:SetDisengageRadius( 100000 )
|
|
BLUEA2ADispatcher:SetEngageRadius( 50000 )
|
|
BLUEA2ADispatcher:SetGciRadius( 75000 )
|
|
|
|
CCCPBorderZone = ZONE_POLYGON:New( "RED BORDER", GROUP:FindByName( "RED BORDER" ) )
|
|
RedA2ADispatcher = AI_A2A_GCICAP:NewWithBorder( { "RED EWR" }, { "FIGHTER SWEEP RED" }, "RED BORDER", "RED BORDER", RedDefaultCAP, 10000, 50000, 75000, 100)
|
|
RedA2ADispatcher:SetDefaultLandingAtRunway()
|
|
RedA2ADispatcher:SetDefaultTakeoffInAir()
|
|
RedA2ADispatcher:SetTacticalDisplay(TAC_DISPLAY)
|
|
RedA2ADispatcher:SetDefaultFuelThreshold( 0.20 )
|
|
RedA2ADispatcher:SetRefreshTimeInterval( 300 )
|
|
RedA2ADispatcher:SetDefaultOverhead(RedA2ADefaultOverhead)
|
|
RedA2ADispatcher:SetDisengageRadius( 100000 )
|
|
RedA2ADispatcher:SetEngageRadius( 50000 )
|
|
RedA2ADispatcher:SetGciRadius( 75000 )
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
-- Setup SAM Systems
|
|
------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
local RED_AA_ZONES = {
|
|
ZONE:New("Red-SAM-Zone-1"),
|
|
ZONE:New("Red-SAM-Zone-2"),
|
|
ZONE:New("Red-SAM-Zone-3"),
|
|
ZONE:New("Red-SAM-Zone-4"),
|
|
ZONE:New("Red-SAM-Zone-5"),
|
|
ZONE:New("Red-SAM-Zone-6"),
|
|
ZONE:New("Red-SAM-Zone-7"),
|
|
ZONE:New("Red-SAM-Zone-8"),
|
|
ZONE:New("Red-SAM-Zone-9"),
|
|
ZONE:New("Red-SAM-Zone-10"),
|
|
ZONE:New("Red-SAM-Zone-11"),
|
|
ZONE:New("Red-SAM-Zone-12"),
|
|
ZONE:New("Red-SAM-Zone-13"),
|
|
ZONE:New("Red-SAM-Zone-14"),
|
|
ZONE:New("Red-SAM-Zone-15"),
|
|
ZONE:New("Red-SAM-Zone-16"),
|
|
ZONE:New("Red-SAM-Zone-17"),
|
|
ZONE:New("Red-SAM-Zone-18"),
|
|
ZONE:New("Red-SAM-Zone-19"),
|
|
ZONE:New("Red-SAM-Zone-20"),
|
|
ZONE:New("Red-SAM-Zone-21")
|
|
}
|
|
|
|
-- Schedule RED AA spawns using the calculated frequencies
|
|
-- Must allow enough room for an entire group to spawn. If the group only has 1 unit and you put 5, 5 will spawn,
|
|
-- but if the group has 5 units, and you put 5, only 1 will spawn..if you only put 4, it will never spawn.
|
|
-- If you put 10, 2 of them will spawn, etc etc.
|
|
|
|
if ENABLE_SAMS then
|
|
RED_SA08 = SPAWN:New("RED SAM SA08")
|
|
:InitRandomizeZones(RED_AA_ZONES)
|
|
:InitLimit(8, 8)
|
|
:SpawnScheduled(1800, 0.5)
|
|
|
|
-- There are 18 units in this group. Need space for each one in the numbers. So if I want 3 SA10s i'm just rounding up to 60.
|
|
RED_SA10 = SPAWN:New("RED SAM SA10")
|
|
:InitRandomizeZones(RED_AA_ZONES)
|
|
:InitLimit(60, 60)
|
|
:SpawnScheduled(1800, 0.5)
|
|
|
|
-- There are 12 units in this group. Need space for each one in the numbers. So if I want 4 SA11s i'm just rounding up to 48
|
|
RED_SA11 = SPAWN:New("RED SAM SA11")
|
|
:InitRandomizeZones(RED_AA_ZONES)
|
|
:InitLimit(36, 36)
|
|
:SpawnScheduled(1800, 0.5)
|
|
|
|
-- There are 11 units in this group. Need space for each one in the numbers. So if I want 4 SA11s i'm just rounding up to 44
|
|
RED_SA06 = SPAWN:New("RED SAM SA6")
|
|
:InitRandomizeZones(RED_AA_ZONES)
|
|
:InitLimit(33, 33)
|
|
:SpawnScheduled(1800, 0.5)
|
|
|
|
RED_SA02 = SPAWN:New("RED SAM SA2")
|
|
:InitRandomizeZones(RED_AA_ZONES)
|
|
:InitLimit(60, 60)
|
|
:SpawnScheduled(1800, 0.5)
|
|
|
|
RED_EWR = SPAWN:New("RED EWR")
|
|
:InitRandomizeZones(RED_AA_ZONES)
|
|
:InitLimit(10, 10)
|
|
:SpawnScheduled(1800, 0.5)
|
|
|
|
|
|
end |