Got now back a good version working with CARGO now as a separate object.

- Sling load working but dealing with the DCS bugs.
- Normal CARGO pickup and deployment is working now, but needs to be
further optimized...
This commit is contained in:
svenvandevelde
2016-02-14 12:03:17 +01:00
parent 2f7e3ffb76
commit 6019a2a170
9 changed files with 600 additions and 249 deletions

View File

@@ -28,9 +28,10 @@ trace.f(self.ClassName)
Child.CargoType = CargoType
Child.GoalVerb = CargoType .. " " .. Child.GoalVerb
Child.OnBoardSide = OnBoardSide
Child.IsLandingRequired = false -- required to decide whether the client needs to land or not
Child.IsSlingLoad = false -- Indicates whether the cargo is a sling load cargo
Child.Stages = { STAGE_CARGO_INIT:New(), STAGE_CARGO_LOAD:New(), STAGEBRIEF:New(), STAGESTART:New(), STAGEROUTE:New(), STAGELANDING:New(), STAGELANDED:New(), STAGELOAD:New(), STAGEDONE:New() }
Child.SetStage( Child, 1 )
end
return Child
@@ -91,10 +92,10 @@ trace.f( self.ClassName )
if not Client._Menus[Cargo.CargoType].PickupMenu then
Client._Menus[Cargo.CargoType].PickupMenu = missionCommands.addSubMenuForGroup(
Client:ClientGroup():getID(),
self.TEXT[1],
self.TEXT[1] .. " " .. Cargo.CargoType,
nil
)
trace.i( self.ClassName, 'Added PickupMenu' .. self.TEXT[1] )
trace.i( self.ClassName, 'Added PickupMenu: ' .. self.TEXT[1] .. " " .. Cargo.CargoType )
end
if Client._Menus[Cargo.CargoType].PickupSubMenus == nil then