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