mirror of
https://github.com/FlightControl-Master/MOOSE_MISSIONS.git
synced 2025-08-15 10:37:46 +00:00
Add files via upload
This commit is contained in:
parent
f6a3307187
commit
4c3a80a3cc
@ -0,0 +1,57 @@
|
||||
-------------------------------------------------------------------------
|
||||
-- AmmoTruck 100 - NTTR - Basic
|
||||
-------------------------------------------------------------------------
|
||||
-- Documentation
|
||||
--
|
||||
-- AMMOTRUCK: https://flightcontrol-master.github.io/MOOSE_DOCS_DEVELOP/Documentation/Functional.AmmoTruck.html
|
||||
--
|
||||
-------------------------------------------------------------------------
|
||||
-- Join the game master slot. The howitzers are firing at the red
|
||||
-- bunkers. When close to out of ammunition, trucks will drive towards
|
||||
-- the artillery pieces and reload them.
|
||||
-------------------------------------------------------------------------
|
||||
-- Date: November 2022
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
|
||||
BASE:TraceOn()
|
||||
BASE:TraceClass("AMMOTRUCK")
|
||||
|
||||
local truckset = SET_GROUP:New():FilterCoalitions("blue"):FilterActive(true):FilterCategoryGround():FilterPrefixes("Truck"):FilterStart()
|
||||
local ariset = SET_GROUP:New():FilterCoalitions("blue"):FilterActive(true):FilterCategoryGround():FilterPrefixes("Artillery"):FilterStart()
|
||||
|
||||
local ammotruck = AMMOTRUCK:New(truckset,ariset,coalition.side.BLUE,"Logistics",ZONE:FindByName("HomeZone"))
|
||||
ammotruck.waitingtime = 60*15
|
||||
ammotruck.unloadtime = 60*10
|
||||
ammotruck.monitor = -30
|
||||
ammotruck.ammothreshold = 5
|
||||
ammotruck.usearmygroup = true
|
||||
|
||||
--Truck has been sent off:
|
||||
function ammotruck:OnAfterRouteTruck(From, Event, To, Truckdata, Aridata)
|
||||
local m = MESSAGE:New("Truck "..Truckdata.name.." on the way!",15,"AmmoTruck"):ToBlue()
|
||||
end
|
||||
|
||||
|
||||
--Truck has arrived:
|
||||
function ammotruck:OnAfterTruckArrived(From, Event, To, Truckdata)
|
||||
local m = MESSAGE:New("Truck "..Truckdata.name.." arrived!",15,"AmmoTruck"):ToBlue()
|
||||
end
|
||||
|
||||
|
||||
--Truck is returning home:
|
||||
function ammotruck:OnAfterTruckReturning(From, Event, To, Truckdata)
|
||||
local m = MESSAGE:New("Truck "..Truckdata.name.." returning!",15,"AmmoTruck"):ToBlue()
|
||||
end
|
||||
|
||||
|
||||
--Truck is arrived at home:
|
||||
function ammotruck:OnAfterTruckHome(From, Event, To, Truckdata)
|
||||
local m = MESSAGE:New("Truck "..Truckdata.name.." arrived home!",15,"AmmoTruck"):ToBlue()
|
||||
end
|
||||
|
||||
|
||||
local trucks = SPAWN:New("Truck")
|
||||
:InitLimit(5,0)
|
||||
:InitRandomizePosition(true,100,10)
|
||||
:SpawnScheduled(15,0)
|
||||
Binary file not shown.
10
AMT - AmmoTruck/AmmoTruck 100 - NTTR - Basic/pack.ps1
Normal file
10
AMT - AmmoTruck/AmmoTruck 100 - NTTR - Basic/pack.ps1
Normal file
@ -0,0 +1,10 @@
|
||||
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
||||
cd $dir
|
||||
$file = Split-Path $dir -leaf
|
||||
|
||||
$dir
|
||||
$file
|
||||
|
||||
cd "_unpacked"
|
||||
. 7z a -r -y -tzip "..\$file.miz" *
|
||||
cd ..
|
||||
7
AMT - AmmoTruck/AmmoTruck 100 - NTTR - Basic/unpack.ps1
Normal file
7
AMT - AmmoTruck/AmmoTruck 100 - NTTR - Basic/unpack.ps1
Normal file
@ -0,0 +1,7 @@
|
||||
$dir = split-path -parent $MyInvocation.MyCommand.Definition
|
||||
cd $dir
|
||||
$file = Split-Path $dir -leaf
|
||||
Remove-Item .\_unpacked -Force -Recurse
|
||||
md "_unpacked"
|
||||
cd "_unpacked"
|
||||
. 7z x -r -y "..\$file.miz" *
|
||||
Loading…
x
Reference in New Issue
Block a user