mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
More updates to fix the RemoveUnit problems for DATABASE and SETs.
This commit is contained in:
@@ -885,7 +885,7 @@ function AI_CARGO_DISPATCHER:onafterMonitor()
|
|||||||
-- The Pickup sequence ...
|
-- The Pickup sequence ...
|
||||||
-- Check if this Carrier need to go and Pickup something...
|
-- Check if this Carrier need to go and Pickup something...
|
||||||
-- So, if the cargo bay is not full yet with cargo to be loaded ...
|
-- So, if the cargo bay is not full yet with cargo to be loaded ...
|
||||||
self:I( { IsRelocating = AI_Cargo:IsRelocating(), IsTransporting = AI_Cargo:IsTransporting() } )
|
self:I( { Carrier = CarrierGroupName, IsRelocating = AI_Cargo:IsRelocating(), IsTransporting = AI_Cargo:IsTransporting() } )
|
||||||
if AI_Cargo:IsRelocating() == false and AI_Cargo:IsTransporting() == false then
|
if AI_Cargo:IsRelocating() == false and AI_Cargo:IsTransporting() == false then
|
||||||
-- ok, so there is a free Carrier
|
-- ok, so there is a free Carrier
|
||||||
-- now find the first cargo that is Unloaded
|
-- now find the first cargo that is Unloaded
|
||||||
@@ -944,7 +944,7 @@ function AI_CARGO_DISPATCHER:onafterMonitor()
|
|||||||
if self.HomeZone then
|
if self.HomeZone then
|
||||||
if not self.CarrierHome[Carrier] then
|
if not self.CarrierHome[Carrier] then
|
||||||
self.CarrierHome[Carrier] = true
|
self.CarrierHome[Carrier] = true
|
||||||
AI_Cargo:__Home( 60, self.HomeZone:GetRandomPointVec2(), math.random( self.PickupMinSpeed, self.PickupMaxSpeed ), self.HomeZone )
|
AI_Cargo:Home( self.HomeZone:GetRandomPointVec2(), math.random( self.PickupMinSpeed, self.PickupMaxSpeed ), self.HomeZone )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -269,7 +269,7 @@ function GROUP:Destroy( GenerateEvent )
|
|||||||
self:CreateEventDead( timer.getTime(), UnitData )
|
self:CreateEventDead( timer.getTime(), UnitData )
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
self:CreateEventRemove( timer.getTime(), UnitData )
|
self:CreateEventRemoveUnit( timer.getTime(), UnitData )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
USERFLAG:New( self:GetName() ):Set( 100 )
|
USERFLAG:New( self:GetName() ):Set( 100 )
|
||||||
|
|||||||
Reference in New Issue
Block a user