mirror of
https://github.com/FlightControl-Master/MOOSE_MISSIONS.git
synced 2026-08-25 13:02:11 +00:00
MOOSE demonstration missions [skip ci]
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
+2
@@ -2,6 +2,8 @@
|
|||||||
-- Name: AIC-APC-000 - APC
|
-- Name: AIC-APC-000 - APC
|
||||||
-- Author: FlightControl
|
-- Author: FlightControl
|
||||||
-- Date Created: 26 Mar 2018
|
-- Date Created: 26 Mar 2018
|
||||||
|
-- Date Checked: 01 Jan 2021
|
||||||
|
-- Working example
|
||||||
--
|
--
|
||||||
-- A demonstration of the AI_CARGO_APC class.
|
-- A demonstration of the AI_CARGO_APC class.
|
||||||
-- This simple example transports Infantry.
|
-- This simple example transports Infantry.
|
||||||
|
|||||||
BIN
Binary file not shown.
@@ -1,10 +1,6 @@
|
|||||||
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
||||||
cd $dir
|
cd $dir
|
||||||
$file = Split-Path $dir -leaf
|
$file = Split-Path $dir -leaf
|
||||||
|
cd "_unpacked"
|
||||||
$dir
|
. 7z a -r -y -tzip "..\$file.miz" *
|
||||||
$file
|
|
||||||
|
|
||||||
cd "_unpacked"
|
|
||||||
. 7z a -r -y -tzip "..\$file.miz" *
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
||||||
cd $dir
|
cd $dir
|
||||||
$file = Split-Path $dir -leaf
|
$file = Split-Path $dir -leaf
|
||||||
Remove-Item .\_unpacked -Force -Recurse
|
Remove-Item .\_unpacked -Force -Recurse
|
||||||
md "_unpacked"
|
md "_unpacked"
|
||||||
cd "_unpacked"
|
cd "_unpacked"
|
||||||
. 7z x -r -y "..\$file.miz" *
|
. 7z x -r -y "..\$file.miz" *
|
||||||
|
|||||||
+4
-2
@@ -2,12 +2,14 @@
|
|||||||
-- Name: AIC-APC-001 - APC with Cargo declared in ME
|
-- Name: AIC-APC-001 - APC with Cargo declared in ME
|
||||||
-- Author: FlightControl
|
-- Author: FlightControl
|
||||||
-- Date Created: 26 Mar 2018
|
-- Date Created: 26 Mar 2018
|
||||||
|
-- Date Checked: 01 Dec 2021
|
||||||
|
-- Changed Cargo auto tag from ~ to #, working example
|
||||||
--
|
--
|
||||||
-- A demonstration of the AI_CARGO_APC class.
|
-- A demonstration of the AI_CARGO_APC class.
|
||||||
-- This simple example transports Infantry.
|
-- This simple example transports Infantry.
|
||||||
-- The cargo is declared with the ~CARGO tag in the mission editor.
|
-- The cargo is declared with the #CARGO tag in the mission editor.
|
||||||
-- So, within the mission, the infantry groups have the name:
|
-- So, within the mission, the infantry groups have the name:
|
||||||
--
|
-- e.g. Infantry1#CARGO(T=Infantry,RR=2000,NR=25)
|
||||||
|
|
||||||
local InfantryCargoSet = SET_CARGO:New():FilterTypes( "Infantry" ):FilterStart()
|
local InfantryCargoSet = SET_CARGO:New():FilterTypes( "Infantry" ):FilterStart()
|
||||||
local APC = GROUP:FindByName( "APC" )
|
local APC = GROUP:FindByName( "APC" )
|
||||||
|
|||||||
BIN
Binary file not shown.
+5
-9
@@ -1,10 +1,6 @@
|
|||||||
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
||||||
cd $dir
|
cd $dir
|
||||||
$file = Split-Path $dir -leaf
|
$file = Split-Path $dir -leaf
|
||||||
|
cd "_unpacked"
|
||||||
$dir
|
. 7z a -r -y -tzip "..\$file.miz" *
|
||||||
$file
|
|
||||||
|
|
||||||
cd "_unpacked"
|
|
||||||
. 7z a -r -y -tzip "..\$file.miz" *
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|||||||
+7
-7
@@ -1,7 +1,7 @@
|
|||||||
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
||||||
cd $dir
|
cd $dir
|
||||||
$file = Split-Path $dir -leaf
|
$file = Split-Path $dir -leaf
|
||||||
Remove-Item .\_unpacked -Force -Recurse
|
Remove-Item .\_unpacked -Force -Recurse
|
||||||
md "_unpacked"
|
md "_unpacked"
|
||||||
cd "_unpacked"
|
cd "_unpacked"
|
||||||
. 7z x -r -y "..\$file.miz" *
|
. 7z x -r -y "..\$file.miz" *
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
-- Name: AIC-APC-002 - APC Move by Game Master
|
-- Name: AIC-APC-002 - APC Move by Game Master
|
||||||
-- Author: FlightControl
|
-- Author: FlightControl
|
||||||
-- Date Created: 26 Mar 2018
|
-- Date Created: 26 Mar 2018
|
||||||
--
|
-- Date Checked: 01 Jan 2021. Changed ~ to # in ME Group Names. Not sure how this is supposed to work for the Game Master
|
||||||
|
|
||||||
local InfantryCargoSet = SET_CARGO:New():FilterTypes( "Infantry" ):FilterStart()
|
local InfantryCargoSet = SET_CARGO:New():FilterTypes( "Infantry" ):FilterStart()
|
||||||
|
|
||||||
|
|||||||
BIN
Binary file not shown.
+5
-9
@@ -1,10 +1,6 @@
|
|||||||
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
||||||
cd $dir
|
cd $dir
|
||||||
$file = Split-Path $dir -leaf
|
$file = Split-Path $dir -leaf
|
||||||
|
cd "_unpacked"
|
||||||
$dir
|
. 7z a -r -y -tzip "..\$file.miz" *
|
||||||
$file
|
|
||||||
|
|
||||||
cd "_unpacked"
|
|
||||||
. 7z a -r -y -tzip "..\$file.miz" *
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|||||||
+7
-7
@@ -1,7 +1,7 @@
|
|||||||
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
||||||
cd $dir
|
cd $dir
|
||||||
$file = Split-Path $dir -leaf
|
$file = Split-Path $dir -leaf
|
||||||
Remove-Item .\_unpacked -Force -Recurse
|
Remove-Item .\_unpacked -Force -Recurse
|
||||||
md "_unpacked"
|
md "_unpacked"
|
||||||
cd "_unpacked"
|
cd "_unpacked"
|
||||||
. 7z x -r -y "..\$file.miz" *
|
. 7z x -r -y "..\$file.miz" *
|
||||||
|
|||||||
+2
-1
@@ -2,7 +2,8 @@
|
|||||||
-- Name: AIC-APC-003 - APC Troops and Equipment
|
-- Name: AIC-APC-003 - APC Troops and Equipment
|
||||||
-- Author: FlightControl
|
-- Author: FlightControl
|
||||||
-- Date Created: 07 Apr 2018
|
-- Date Created: 07 Apr 2018
|
||||||
--
|
-- Date Checked: 01 Jan 2021
|
||||||
|
-- Not sure what the test case is
|
||||||
|
|
||||||
local InfantryCargoSet = SET_CARGO:New():FilterTypes( "Infantry" ):FilterStart()
|
local InfantryCargoSet = SET_CARGO:New():FilterTypes( "Infantry" ):FilterStart()
|
||||||
|
|
||||||
|
|||||||
BIN
Binary file not shown.
+5
-9
@@ -1,10 +1,6 @@
|
|||||||
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
||||||
cd $dir
|
cd $dir
|
||||||
$file = Split-Path $dir -leaf
|
$file = Split-Path $dir -leaf
|
||||||
|
cd "_unpacked"
|
||||||
$dir
|
. 7z a -r -y -tzip "..\$file.miz" *
|
||||||
$file
|
|
||||||
|
|
||||||
cd "_unpacked"
|
|
||||||
. 7z a -r -y -tzip "..\$file.miz" *
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|||||||
+7
-7
@@ -1,7 +1,7 @@
|
|||||||
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
||||||
cd $dir
|
cd $dir
|
||||||
$file = Split-Path $dir -leaf
|
$file = Split-Path $dir -leaf
|
||||||
Remove-Item .\_unpacked -Force -Recurse
|
Remove-Item .\_unpacked -Force -Recurse
|
||||||
md "_unpacked"
|
md "_unpacked"
|
||||||
cd "_unpacked"
|
cd "_unpacked"
|
||||||
. 7z x -r -y "..\$file.miz" *
|
. 7z x -r -y "..\$file.miz" *
|
||||||
|
|||||||
+5
-2
@@ -2,7 +2,10 @@
|
|||||||
-- Name: AIC-APC-004 - APC Pickup
|
-- Name: AIC-APC-004 - APC Pickup
|
||||||
-- Author: FlightControl
|
-- Author: FlightControl
|
||||||
-- Date Created: 23 Apr 2018
|
-- Date Created: 23 Apr 2018
|
||||||
--
|
-- Date Checked: 01 Jan 2021, working example, changed Deploy to async call
|
||||||
|
|
||||||
|
BASE:TraceClass("AI_CARGO_APC")
|
||||||
|
BASE:TraceOn()
|
||||||
|
|
||||||
local InfantryCargoSet = SET_CARGO:New():FilterTypes( "Infantry" ):FilterStart()
|
local InfantryCargoSet = SET_CARGO:New():FilterTypes( "Infantry" ):FilterStart()
|
||||||
local APC = GROUP:FindByName( "APC" )
|
local APC = GROUP:FindByName( "APC" )
|
||||||
@@ -19,7 +22,7 @@ Cargo_APC:__Pickup( 1, ZONE:New( "Pickup" ):GetCoordinate() )
|
|||||||
-- @param #string Event
|
-- @param #string Event
|
||||||
-- @param #string To
|
-- @param #string To
|
||||||
function Cargo_APC:OnAfterLoaded( APC, From, Event, To )
|
function Cargo_APC:OnAfterLoaded( APC, From, Event, To )
|
||||||
Cargo_APC:Deploy( ZONE:New( "Deploy" ):GetCoordinate() )
|
Cargo_APC:__Deploy( 1, ZONE:New( "Deploy" ):GetCoordinate() )
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
BIN
Binary file not shown.
@@ -1,10 +1,6 @@
|
|||||||
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
||||||
cd $dir
|
cd $dir
|
||||||
$file = Split-Path $dir -leaf
|
$file = Split-Path $dir -leaf
|
||||||
|
cd "_unpacked"
|
||||||
$dir
|
. 7z a -r -y -tzip "..\$file.miz" *
|
||||||
$file
|
|
||||||
|
|
||||||
cd "_unpacked"
|
|
||||||
. 7z a -r -y -tzip "..\$file.miz" *
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
||||||
cd $dir
|
cd $dir
|
||||||
$file = Split-Path $dir -leaf
|
$file = Split-Path $dir -leaf
|
||||||
Remove-Item .\_unpacked -Force -Recurse
|
Remove-Item .\_unpacked -Force -Recurse
|
||||||
md "_unpacked"
|
md "_unpacked"
|
||||||
cd "_unpacked"
|
cd "_unpacked"
|
||||||
. 7z x -r -y "..\$file.miz" *
|
. 7z x -r -y "..\$file.miz" *
|
||||||
|
|||||||
+5
@@ -2,9 +2,13 @@
|
|||||||
-- Name: AIC-APC-001 - Troops Relocate APC
|
-- Name: AIC-APC-001 - Troops Relocate APC
|
||||||
-- Author: FlightControl
|
-- Author: FlightControl
|
||||||
-- Date Created: 07 Apr 2018
|
-- Date Created: 07 Apr 2018
|
||||||
|
-- Date Checked: 01 Jan 2021, working
|
||||||
--
|
--
|
||||||
-- Demonstration of troops relocation when carrier is destroyed...
|
-- Demonstration of troops relocation when carrier is destroyed...
|
||||||
-- Carrier will relocate to the rescue carrier.
|
-- Carrier will relocate to the rescue carrier.
|
||||||
|
--
|
||||||
|
|
||||||
|
BASE:TraceClass("AI_CARGO_APC")
|
||||||
|
|
||||||
local InfantryCargoSet = SET_CARGO:New():FilterTypes( "Infantry" ):FilterStart()
|
local InfantryCargoSet = SET_CARGO:New():FilterTypes( "Infantry" ):FilterStart()
|
||||||
|
|
||||||
@@ -19,6 +23,7 @@ function CargoTroops:OnAfterDestroyed( CargoCarrier )
|
|||||||
local NewCarrierGroup = self:FindCarrier( CargoCarrier:GetCoordinate(), 1000 ) -- which returns one Carrier GROUP object or nil.
|
local NewCarrierGroup = self:FindCarrier( CargoCarrier:GetCoordinate(), 1000 ) -- which returns one Carrier GROUP object or nil.
|
||||||
if NewCarrierGroup then
|
if NewCarrierGroup then
|
||||||
self:SetCarrier( NewCarrierGroup )
|
self:SetCarrier( NewCarrierGroup )
|
||||||
|
self:__Pickup(1,ZONE:New("Pickup Zone"):GetCoordinate(),30)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
BIN
Binary file not shown.
+5
-9
@@ -1,10 +1,6 @@
|
|||||||
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
||||||
cd $dir
|
cd $dir
|
||||||
$file = Split-Path $dir -leaf
|
$file = Split-Path $dir -leaf
|
||||||
|
cd "_unpacked"
|
||||||
$dir
|
. 7z a -r -y -tzip "..\$file.miz" *
|
||||||
$file
|
|
||||||
|
|
||||||
cd "_unpacked"
|
|
||||||
. 7z a -r -y -tzip "..\$file.miz" *
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|||||||
+7
-7
@@ -1,7 +1,7 @@
|
|||||||
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
||||||
cd $dir
|
cd $dir
|
||||||
$file = Split-Path $dir -leaf
|
$file = Split-Path $dir -leaf
|
||||||
Remove-Item .\_unpacked -Force -Recurse
|
Remove-Item .\_unpacked -Force -Recurse
|
||||||
md "_unpacked"
|
md "_unpacked"
|
||||||
cd "_unpacked"
|
cd "_unpacked"
|
||||||
. 7z x -r -y "..\$file.miz" *
|
. 7z x -r -y "..\$file.miz" *
|
||||||
|
|||||||
+1
@@ -2,6 +2,7 @@
|
|||||||
-- Name: AIC-APC-010 - Multiple APC
|
-- Name: AIC-APC-010 - Multiple APC
|
||||||
-- Author: FlightControl
|
-- Author: FlightControl
|
||||||
-- Date Created: 24 Apr 2018
|
-- Date Created: 24 Apr 2018
|
||||||
|
-- Date Checked: 01 Jan 2021, working
|
||||||
--
|
--
|
||||||
|
|
||||||
local InfantrySet = SET_CARGO:New():FilterTypes( "Infantry" ):FilterStart()
|
local InfantrySet = SET_CARGO:New():FilterTypes( "Infantry" ):FilterStart()
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
+5
-9
@@ -1,10 +1,6 @@
|
|||||||
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
||||||
cd $dir
|
cd $dir
|
||||||
$file = Split-Path $dir -leaf
|
$file = Split-Path $dir -leaf
|
||||||
|
cd "_unpacked"
|
||||||
$dir
|
. 7z a -r -y -tzip "..\$file.miz" *
|
||||||
$file
|
|
||||||
|
|
||||||
cd "_unpacked"
|
|
||||||
. 7z a -r -y -tzip "..\$file.miz" *
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|||||||
+7
-7
@@ -1,7 +1,7 @@
|
|||||||
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
||||||
cd $dir
|
cd $dir
|
||||||
$file = Split-Path $dir -leaf
|
$file = Split-Path $dir -leaf
|
||||||
Remove-Item .\_unpacked -Force -Recurse
|
Remove-Item .\_unpacked -Force -Recurse
|
||||||
md "_unpacked"
|
md "_unpacked"
|
||||||
cd "_unpacked"
|
cd "_unpacked"
|
||||||
. 7z x -r -y "..\$file.miz" *
|
. 7z x -r -y "..\$file.miz" *
|
||||||
|
|||||||
+10
-7
@@ -2,13 +2,17 @@
|
|||||||
-- Name: AIC-HEL-000 - Helicopter
|
-- Name: AIC-HEL-000 - Helicopter
|
||||||
-- Author: FlightControl
|
-- Author: FlightControl
|
||||||
-- Date Created: 13 Apr 2018
|
-- Date Created: 13 Apr 2018
|
||||||
--
|
-- Date Checked: 01 Jan 2021
|
||||||
|
-- Updated Moose, needs fix #1417 to work
|
||||||
|
|
||||||
|
BASE:TraceClass("AI_CARGO_HELICOPTER")
|
||||||
|
BASE:TraceOn()
|
||||||
|
|
||||||
WorkerCargoSet = SET_CARGO:New():FilterTypes( "Workers" ):FilterStart()
|
WorkerCargoSet = SET_CARGO:New():FilterTypes( "Workers" ):FilterStart()
|
||||||
|
|
||||||
|
|
||||||
for i = 1, 10 do
|
for i = 1, 5 do
|
||||||
local WorkerGroup = GROUP:FindByName( string.format( "Infantry#%03d", i ) )
|
local WorkerGroup = GROUP:FindByName( string.format( "Infantry %03d", i ) )
|
||||||
local WorkersCargo = CARGO_GROUP:New( WorkerGroup, "Workers", string.format( "Infantry %d", i ), 1000, 35 )
|
local WorkersCargo = CARGO_GROUP:New( WorkerGroup, "Workers", string.format( "Infantry %d", i ), 1000, 35 )
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -20,15 +24,14 @@ CargoHelicopter = AI_CARGO_HELICOPTER:New( Helicopter, WorkerCargoSet )
|
|||||||
PickupZone = ZONE:New( "PickupZone" )
|
PickupZone = ZONE:New( "PickupZone" )
|
||||||
DeployZones = { ZONE:New( "DeployZone Alpha" ), ZONE:New( "DeployZone Beta" ), ZONE:New( "DeployZone Gamma" ) }
|
DeployZones = { ZONE:New( "DeployZone Alpha" ), ZONE:New( "DeployZone Beta" ), ZONE:New( "DeployZone Gamma" ) }
|
||||||
|
|
||||||
CargoHelicopter:Pickup( PickupZone:GetRandomCoordinate( 500, 200 ) )
|
CargoHelicopter:Pickup( PickupZone:GetRandomCoordinate( 400, 100 ) )
|
||||||
|
|
||||||
function CargoHelicopter:onafterLoaded( Helicopter, From, Event, To, Cargo )
|
function CargoHelicopter:onafterLoaded( Helicopter, From, Event, To, Cargo )
|
||||||
CargoHelicopter:Deploy( DeployZones[math.random( 1, #DeployZones ) ]:GetRandomCoordinate( 500, 100 ), math.random( 50, 250 ) )
|
CargoHelicopter:__Deploy(1,DeployZones[math.random( 1, #DeployZones ) ]:GetRandomCoordinate( 500, 100 ), math.random( 50, 250 ) )
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function CargoHelicopter:onafterUnloaded( Helicopter, From, Event, To, Cargo )
|
function CargoHelicopter:onafterUnloaded( Helicopter, From, Event, To, Cargo )
|
||||||
CargoHelicopter:Pickup( PickupZone:GetRandomCoordinate( 500, 200 ), math.random( 50, 250 ) )
|
CargoHelicopter:__Pickup( 1,PickupZone:GetRandomCoordinate( 500, 200 ), math.random( 50, 250 ) )
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -1,10 +1,6 @@
|
|||||||
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
||||||
cd $dir
|
cd $dir
|
||||||
$file = Split-Path $dir -leaf
|
$file = Split-Path $dir -leaf
|
||||||
|
cd "_unpacked"
|
||||||
$dir
|
. 7z a -r -y -tzip "..\$file.miz" *
|
||||||
$file
|
|
||||||
|
|
||||||
cd "_unpacked"
|
|
||||||
. 7z a -r -y -tzip "..\$file.miz" *
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
||||||
cd $dir
|
cd $dir
|
||||||
$file = Split-Path $dir -leaf
|
$file = Split-Path $dir -leaf
|
||||||
Remove-Item .\_unpacked -Force -Recurse
|
Remove-Item .\_unpacked -Force -Recurse
|
||||||
md "_unpacked"
|
md "_unpacked"
|
||||||
cd "_unpacked"
|
cd "_unpacked"
|
||||||
. 7z x -r -y "..\$file.miz" *
|
. 7z x -r -y "..\$file.miz" *
|
||||||
|
|||||||
@@ -2,11 +2,12 @@
|
|||||||
-- Name: AIC-PLN-000 - Airplane
|
-- Name: AIC-PLN-000 - Airplane
|
||||||
-- Author: FlightControl
|
-- Author: FlightControl
|
||||||
-- Date Created: 14 Apr 2018
|
-- Date Created: 14 Apr 2018
|
||||||
--
|
-- Date Checked: 01 Jan 2021
|
||||||
|
-- Update to latest Moose, working
|
||||||
|
--
|
||||||
|
|
||||||
VehicleCargoSet = SET_CARGO:New():FilterTypes( "Vehicles" ):FilterStart()
|
VehicleCargoSet = SET_CARGO:New():FilterTypes( "Vehicles" ):FilterStart()
|
||||||
|
|
||||||
|
|
||||||
for i = 1, 10 do
|
for i = 1, 10 do
|
||||||
local WorkerGroup = GROUP:FindByName( string.format( "Vehicle #%03d", i ) )
|
local WorkerGroup = GROUP:FindByName( string.format( "Vehicle #%03d", i ) )
|
||||||
local WorkersCargo = CARGO_GROUP:New( WorkerGroup, "Vehicles", string.format( "Vehicle %d", i ), 5000, 35 )
|
local WorkersCargo = CARGO_GROUP:New( WorkerGroup, "Vehicles", string.format( "Vehicle %d", i ), 5000, 35 )
|
||||||
@@ -21,7 +22,6 @@ CargoAirplane = AI_CARGO_AIRPLANE:New( Airplane, VehicleCargoSet )
|
|||||||
PickupAirbase = AIRBASE:FindByName( AIRBASE.Caucasus.Kobuleti )
|
PickupAirbase = AIRBASE:FindByName( AIRBASE.Caucasus.Kobuleti )
|
||||||
DeployAirbases = { AIRBASE:FindByName( AIRBASE.Caucasus.Batumi ), AIRBASE:FindByName( AIRBASE.Caucasus.Gudauta ) }
|
DeployAirbases = { AIRBASE:FindByName( AIRBASE.Caucasus.Batumi ), AIRBASE:FindByName( AIRBASE.Caucasus.Gudauta ) }
|
||||||
|
|
||||||
|
|
||||||
CargoAirplane:Pickup( PickupAirbase:GetCoordinate() )
|
CargoAirplane:Pickup( PickupAirbase:GetCoordinate() )
|
||||||
|
|
||||||
function CargoAirplane:OnAfterLoaded( Airplane, From, Event, To, Cargo )
|
function CargoAirplane:OnAfterLoaded( Airplane, From, Event, To, Cargo )
|
||||||
|
|||||||
Binary file not shown.
@@ -1,10 +1,6 @@
|
|||||||
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
||||||
cd $dir
|
cd $dir
|
||||||
$file = Split-Path $dir -leaf
|
$file = Split-Path $dir -leaf
|
||||||
|
cd "_unpacked"
|
||||||
$dir
|
. 7z a -r -y -tzip "..\$file.miz" *
|
||||||
$file
|
|
||||||
|
|
||||||
cd "_unpacked"
|
|
||||||
. 7z a -r -y -tzip "..\$file.miz" *
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
||||||
cd $dir
|
cd $dir
|
||||||
$file = Split-Path $dir -leaf
|
$file = Split-Path $dir -leaf
|
||||||
Remove-Item .\_unpacked -Force -Recurse
|
Remove-Item .\_unpacked -Force -Recurse
|
||||||
md "_unpacked"
|
md "_unpacked"
|
||||||
cd "_unpacked"
|
cd "_unpacked"
|
||||||
. 7z x -r -y "..\$file.miz" *
|
. 7z x -r -y "..\$file.miz" *
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user