mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Small fixes
This commit is contained in:
parent
d011c8e72f
commit
60d91cb2fb
@ -3522,8 +3522,12 @@ function CTLD:AddCTLDZone(Name, Type, Color, Active, HasBeacon, Shiplength, Ship
|
|||||||
ctldzone.name = Name or "NONE"
|
ctldzone.name = Name or "NONE"
|
||||||
ctldzone.type = Type or CTLD.CargoZoneType.MOVE -- #CTLD.CargoZoneType
|
ctldzone.type = Type or CTLD.CargoZoneType.MOVE -- #CTLD.CargoZoneType
|
||||||
ctldzone.hasbeacon = HasBeacon or false
|
ctldzone.hasbeacon = HasBeacon or false
|
||||||
ctldzone.timestamp = timer.getTime()
|
|
||||||
|
if Type == CTLD.CargoZoneType.BEACON then
|
||||||
|
self.droppedbeaconref[ctldzone.name] = zone:GetCoordinate()
|
||||||
|
ctldzone.timestamp = timer.getTime()
|
||||||
|
end
|
||||||
|
|
||||||
if HasBeacon then
|
if HasBeacon then
|
||||||
ctldzone.fmbeacon = self:_GetFMBeacon(Name)
|
ctldzone.fmbeacon = self:_GetFMBeacon(Name)
|
||||||
ctldzone.uhfbeacon = self:_GetUHFBeacon(Name)
|
ctldzone.uhfbeacon = self:_GetUHFBeacon(Name)
|
||||||
@ -3690,12 +3694,16 @@ function CTLD:_AddRadioBeacon(Name, Sound, Mhz, Modulation, IsShip, IsDropped)
|
|||||||
local Frequency = string.format("%09d",Mhz * 1000000) -- Freq in Hertz
|
local Frequency = string.format("%09d",Mhz * 1000000) -- Freq in Hertz
|
||||||
local Sound = "l10n/DEFAULT/"..Sound
|
local Sound = "l10n/DEFAULT/"..Sound
|
||||||
trigger.action.radioTransmission(Sound, ZoneVec3, Modulation, false, Frequency, 1000) -- Beacon in MP only runs for 30secs straight
|
trigger.action.radioTransmission(Sound, ZoneVec3, Modulation, false, Frequency, 1000) -- Beacon in MP only runs for 30secs straight
|
||||||
|
--local status = string.format("***** Beacon added Freq %s Mod %s", Mhz, UTILS.GetModulationName(Modulation))
|
||||||
|
--MESSAGE:New(status,10,"Debug"):ToLogIf(self.debug)
|
||||||
elseif Zone then
|
elseif Zone then
|
||||||
local ZoneCoord = Zone:GetCoordinate(2)
|
local ZoneCoord = Zone:GetCoordinate(2)
|
||||||
local ZoneVec3 = ZoneCoord:GetVec3()
|
local ZoneVec3 = ZoneCoord:GetVec3()
|
||||||
local Frequency = string.format("%09d",Mhz * 1000000) -- Freq in Hertz
|
local Frequency = string.format("%09d",Mhz * 1000000) -- Freq in Hertz
|
||||||
local Sound = "l10n/DEFAULT/"..Sound
|
local Sound = "l10n/DEFAULT/"..Sound
|
||||||
trigger.action.radioTransmission(Sound, ZoneVec3, Modulation, false, Frequency, 1000) -- Beacon in MP only runs for 30secs straight
|
trigger.action.radioTransmission(Sound, ZoneVec3, Modulation, false, Frequency, 1000) -- Beacon in MP only runs for 30secs straight
|
||||||
|
--local status = string.format("***** Beacon added Freq %s Mod %s", Mhz, UTILS.GetModulationName(Modulation))
|
||||||
|
--MESSAGE:New(status,10,"Debug"):ToLogIf(self.debug)
|
||||||
end
|
end
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1394,7 +1394,7 @@ end
|
|||||||
-- @param #string To
|
-- @param #string To
|
||||||
-- @return #PLAYERRECCE self
|
-- @return #PLAYERRECCE self
|
||||||
function PLAYERRECCE:onafterStatus(From, Event, To)
|
function PLAYERRECCE:onafterStatus(From, Event, To)
|
||||||
self:I({From, Event, To})
|
self:T({From, Event, To})
|
||||||
|
|
||||||
if not self.timestamp then
|
if not self.timestamp then
|
||||||
self.timestamp = timer.getTime()
|
self.timestamp = timer.getTime()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user