AIRBOSS v0.4.7

This commit is contained in:
Frank
2018-12-05 23:58:37 +01:00
parent c2ddf17aa2
commit e7f1d98b64

View File

@@ -125,7 +125,7 @@
-- @field #AIRBOSS -- @field #AIRBOSS
AIRBOSS = { AIRBOSS = {
ClassName = "AIRBOSS", ClassName = "AIRBOSS",
Debug = true, Debug = false,
lid = nil, lid = nil,
carrier = nil, carrier = nil,
carriertype = nil, carriertype = nil,
@@ -320,12 +320,14 @@ AIRBOSS.LSOCall={
}, },
HIGH={ HIGH={
file="LSO-High", file="LSO-High",
suffix="ogg",
loud=true, loud=true,
subtitle="You're high", subtitle="You're high",
duration=0.65, duration=0.65,
}, },
LOW={ LOW={
file="LSO-Low", file="LSO-Low",
suffix="ogg",
loud=true, loud=true,
subtitle="You're low", subtitle="You're low",
duration=0.50, duration=0.50,
@@ -426,7 +428,7 @@ AIRBOSS.LSOCall={
suffix="ogg", suffix="ogg",
louder=false, louder=false,
subtitle="2", subtitle="2",
duration=0.35, duration=0.37,
}, },
N3={ N3={
file="LSO-N3", file="LSO-N3",
@@ -519,7 +521,7 @@ AIRBOSS.MarshalCall={
suffix="ogg", suffix="ogg",
louder=false, louder=false,
subtitle="2", subtitle="2",
duration=0.35, duration=0.37,
}, },
N3={ N3={
file="LSO-N3", file="LSO-N3",
@@ -692,7 +694,7 @@ AIRBOSS.MenuF10={}
--- Airboss class version. --- Airboss class version.
-- @field #string version -- @field #string version
AIRBOSS.version="0.4.6" AIRBOSS.version="0.4.7"
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- TODO list -- TODO list
@@ -801,7 +803,7 @@ function AIRBOSS:New(carriername, alias)
self:SetHoldingOffsetAngle(15) self:SetHoldingOffsetAngle(15)
-- Default recovery case. -- Default recovery case.
self:SetRecoveryCase(3) self:SetRecoveryCase(1)
-- CCA 50 NM radius zone around the carrier. -- CCA 50 NM radius zone around the carrier.
self:SetCarrierControlledArea() self:SetCarrierControlledArea()
@@ -2816,7 +2818,7 @@ function AIRBOSS:OnEventBirth(EventData)
-- Debug. -- Debug.
if self.Debug then if self.Debug then
self:_Number2Sound(self.LSOradio, "0123456789", 10) self:_Number2Sound(self.LSOradio, "0123456789", 10)
self:_Number2Sound(self.Carrierradio, "0123456789", 30) self:_Number2Sound(self.Carrierradio, "0123456789", 20)
end end
end end
@@ -5914,7 +5916,7 @@ function AIRBOSS:RadioTransmit(radio, call, loud, delay)
subtitle=subtitle.."." subtitle=subtitle.."."
end end
end end
filename=filename.."."..call.suffix filename=filename.."."..(call.suffix or "ogg")
-- New transmission. -- New transmission.
radio:NewUnitTransmission(filename, call.subtitle, call.duration, radio.Frequency/1000000, radio.Modulation, false) radio:NewUnitTransmission(filename, call.subtitle, call.duration, radio.Frequency/1000000, radio.Modulation, false)