mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-07-26 10:29:37 +00:00
878eaf4301ec03c00f6c8d75dff127e71f532091
Added
* UseC130LoadAndUnload toggle, false by default.
* C130basetype = "cds_crate" -- only for the C-130
* Extended AddCratesCargo & AddCratesCargoNoMove with another parms where we can force Typename for the static for the C-130, even though a parms passed before it with another shape. the last parms will still be forced only if the unit is C-130J. else, the last parms will not be used.
Example usage:
Foothold_ctld:AddCratesCargo("FARP",{"CTLD_TROOP_FOB"},CTLD_CARGO.Enum.FOB,3,1500,10, "FARP",nil,nil,nil,"Cargos","ammo_cargo",nil, "cds_crate")
Blocked the build of crates if still inside C-130J and CH-47F using 15 Meters for the C-130 and 5 meters for the CH-47.
ListCargo will now display what's inside besed on _GetUnitCapabilities / 2
** Manage Units, New menu only for the C-130J.
* New menu under CTLD. Get Units, Remove units nearby.
* Addunits function.
function CTLD:AddUnits(Name,Templates,Type,Stock,SubCategory,UnitTypes)
Example usage.
Foothold_ctld:AddUnits("Humvee",{"CTLD_CARGO_HMMWV"},CTLD_CARGO.Enum.VEHICLE,10, "ANTI TANK")
Those will be placed on a safe distance using same method as crates based on length and (idx-1)*2.5 + length.
* Added FSM, OnAfterUnitsSpawn. No internal, only Hook.
* Added 3 functions,
AddStockUnits
SetStockUnits
GetStockUnits
Added documents.
You can find documentation for MOOSE in the following places:
- Generated documentation of all MOOSE classes:
- For the
masterbranch: MOOSE_DOCS - For the
developbranch: MOOSE_DOCS_DEVELOP
- For the
- Documentation:
- The old Guides can be found in our archive.
- Visit our new documentation at the MOOSE GitHub page.
- Overview of all MOOSE repositories on GitHub.
Description
Languages
Lua
99.9%