mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Stuff
This commit is contained in:
parent
7ab14e0bf9
commit
a76ea8f393
@ -261,7 +261,7 @@ function AI_CARGO:onbeforeLoad( Carrier, From, Event, To, PickupZone )
|
||||
if Carrier_Weight[CarrierUnit] > CargoWeight then --and CargoBayFreeVolume > CargoVolume then
|
||||
Carrier:RouteStop()
|
||||
--Cargo:Ungroup()
|
||||
Cargo:__Board( -LoadDelay, CarrierUnit, 25 )
|
||||
Cargo:__Board( -LoadDelay, CarrierUnit, 25)
|
||||
LoadDelay = LoadDelay + Cargo:GetCount() * LoadInterval
|
||||
self:__Board( LoadDelay, Cargo, CarrierUnit, PickupZone )
|
||||
|
||||
|
||||
@ -472,6 +472,7 @@ do -- CARGO
|
||||
|
||||
self.LoadRadius = LoadRadius or 500
|
||||
self.NearRadius = NearRadius or 25
|
||||
env.info("FF nearradius = ".. self.NearRadius)
|
||||
|
||||
self:SetDeployed( false )
|
||||
|
||||
|
||||
@ -226,6 +226,8 @@ do -- CARGO_UNIT
|
||||
-- @param #string Event
|
||||
-- @param #string From
|
||||
-- @param #string To
|
||||
-- @param Wrapper.Group#GROUP CargoCarrier
|
||||
-- @param #number NearRadius
|
||||
function CARGO_UNIT:onafterBoard( From, Event, To, CargoCarrier, NearRadius, ... )
|
||||
self:F( { From, Event, To, CargoCarrier, NearRadius } )
|
||||
|
||||
|
||||
@ -3350,7 +3350,7 @@ function WAREHOUSE:onafterRequest(From, Event, To, Request)
|
||||
local CargoGroups --Core.Set#SET_CARGO
|
||||
|
||||
-- Board radius, i.e. when the cargo will begin to board the carrier
|
||||
local _boardradius=5000
|
||||
local _boardradius=500
|
||||
|
||||
if Request.transporttype==WAREHOUSE.TransportType.AIRPLANE then
|
||||
_boardradius=5000
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user