- Update the Airboss[CN].lua to fix bugs from old version.
- Delete my own Airboss.lua * Current Airboss is using MOOSE version which didn't perform as I excepted. Such as the audio and subtitles and hints.
This commit is contained in:
Binary file not shown.
@@ -1,95 +0,0 @@
|
|||||||
Airboss = {}
|
|
||||||
--[[
|
|
||||||
Airboss funcitons:
|
|
||||||
- Control zone.
|
|
||||||
- Turn into wind.
|
|
||||||
- LSO.
|
|
||||||
- Marshal.
|
|
||||||
- Rescue Helo.
|
|
||||||
- Recover Tanker.
|
|
||||||
|
|
||||||
|
|
||||||
]]
|
|
||||||
|
|
||||||
do
|
|
||||||
|
|
||||||
function Airboss:New(groupName)
|
|
||||||
local obj = {}
|
|
||||||
|
|
||||||
|
|
||||||
setmetatable(obj, self)
|
|
||||||
self.__index = self
|
|
||||||
|
|
||||||
return obj
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
RescueHelo = {}
|
|
||||||
|
|
||||||
do
|
|
||||||
|
|
||||||
RescueHelo.allHeloes = {}
|
|
||||||
|
|
||||||
function RescueHelo:New(carrierUnitName,heloGroupName)
|
|
||||||
if not carrierUnitName or not heloGroupName then return end
|
|
||||||
if not Group.getByName(heloGroupName) then return end
|
|
||||||
|
|
||||||
local obj = {}
|
|
||||||
|
|
||||||
obj.deBug = false
|
|
||||||
|
|
||||||
-- basic params
|
|
||||||
obj.heloGroupName = heloGroupName
|
|
||||||
obj.heloGroup = Group.getByName(heloGroupName)
|
|
||||||
|
|
||||||
obj.unitName = obj.heloGroup:getUnit(1)
|
|
||||||
|
|
||||||
obj.modex = 12
|
|
||||||
|
|
||||||
|
|
||||||
-- FSM
|
|
||||||
obj.isRescuing = false
|
|
||||||
obj.isReturning = false
|
|
||||||
obj.isRunning = false
|
|
||||||
obj.isStoped = false
|
|
||||||
|
|
||||||
-- Sim params
|
|
||||||
obj.homeBase = ""
|
|
||||||
obj.carrier = carrierUnitName
|
|
||||||
obj.carrierstop = false
|
|
||||||
obj.carriertype= 'CVN71'
|
|
||||||
|
|
||||||
obj.performRescue = true
|
|
||||||
|
|
||||||
-- control params
|
|
||||||
obj.altitude = 1
|
|
||||||
|
|
||||||
obj.offSetX = 1
|
|
||||||
obj.offSetZ = 2
|
|
||||||
|
|
||||||
obj.rescueRadius = 28000 -- meter
|
|
||||||
obj.rescueDuration = 300 -- second
|
|
||||||
obj.homeFuel = 5 -- %
|
|
||||||
|
|
||||||
setmetatable(obj, self)
|
|
||||||
self.__index = self
|
|
||||||
|
|
||||||
local ev = {}
|
|
||||||
|
|
||||||
function ev:onEvent(event)
|
|
||||||
if event.id == world.event.S_EVENT_EJECTION or event.id == world.event.S_EVENT_CRASH then
|
|
||||||
|
|
||||||
--function
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
|
||||||
world.addEventHandler(ev)
|
|
||||||
|
|
||||||
return obj
|
|
||||||
end
|
|
||||||
end
|
|
||||||
+878
-9733
File diff suppressed because it is too large
Load Diff
@@ -3,7 +3,8 @@ local script_list =
|
|||||||
-- Load order must be correct
|
-- Load order must be correct
|
||||||
-- "mist.lua", --mist_4_5_122
|
-- "mist.lua", --mist_4_5_122
|
||||||
"Moose_.lua",
|
"Moose_.lua",
|
||||||
"spawnListener.lua",
|
-- "spawnListener.lua",
|
||||||
|
-- "Airboss[EN].lua",
|
||||||
"Airboss[CN].lua",
|
"Airboss[CN].lua",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,4 +16,11 @@ do
|
|||||||
|
|
||||||
|
|
||||||
world.addEventHandler(ev)
|
world.addEventHandler(ev)
|
||||||
|
|
||||||
|
-- USS Arleigh Burke lla-1
|
||||||
|
local base = Airbase.getByName('USS Arleigh Burke lla-1')
|
||||||
|
if base then
|
||||||
|
local typeName = base:getTypeName() or 'None'
|
||||||
|
trigger.action.outText(typeName,10)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user