Commit Graph

8263 Commits

Author SHA1 Message Date
Thomas 4ce820279e Update Message.lua
#MESSAGE Added :ToSet() and ToSetIf()
2026-03-04 13:53:03 +01:00
Thomas 2d4d4e3865 Merge branch 'develop' into master-ng 2026-03-04 12:01:31 +01:00
Thomas f01a1fb6b9 Merge pull request #2532 from FlightControl-Master/leka1986-patch-3
Update DynamicCargo.lua
2026-03-03 19:57:32 +01:00
leka1986 506073022b Update DynamicCargo.lua
- Added C-130-specific transport state handling to avoid false unloads with `ropelength = 0`.
- Added state flow for C-130 cargo:
  - attach (grounded proximity)
  - detach (airborne + distance)
  - airborne confirm
  - landed-stable confirm
  - unload event only after landed-stable check
- Added owner re-resolve fallback for C-130 when owner/unit refs are stale.
- Added C-130 config values:
  - `C130AttachDistance = 10`
  - `C130DetachDistance = 14`
  - `C130AirborneAGL = 8`
  - `C130LandedAGL = 0.5`
  - `C130StabilityEpsilon = 0.05`
  - `C130RequireAirborne = true`
  - owner resolve thresholds (`Move2D`, `Near2D`, `Max3D`)
- Updated default scheduler interval to `5` seconds.
- Changed tracking to one global timer for all tracked DynamicCargo objects:
  - starts when cargo exists
  - stops when no tracked cargo remains
- Added/updated aircraft dimensions table entries:
  - `CH-47Fbl1`, `Mi-8MTV2`, `Mi-8MT`, `UH-1H`, `Mi-24P`, `UH-60L`, `UH-60L_DAP`, `C-130J-30`
- Added helper getters:
  - `IsAttached()`
  - `IsDetached()`
  - `WasAirborneTransport()`
  - `IsLandedStable()`
  - `GetCarrierUnitName()`
  - `GetCarrierTypeName()`
  - `GetCarrierGroupName()`

**Behavior note**

- Non-C130 behavior stays on the existing logic path.
- Existing DynamicCargo event IDs and flow are kept (`New`, `Loaded`, `Unloaded`, `Removed`).
2026-03-03 19:37:42 +01:00
leka1986 85b582d6dd Update CTLD.lua
- Added C-130 DynamicCargo auto-build adapter inside CTLD core.
- New CTLD options:
  - `UseC130DynamicCargoAutoBuild = false` (default off)
  - `C130DynamicCargoAutoBuildMergeSeconds = 10`
- Hooked C-130 set registration into CTLD `Get Crates` flow (buildable cargo only: `VEHICLE` / `FOB`).
- Added CTLD internal set/entry tracking for C-130 crates:
  - map crate spawn -> dynamic cargo loaded/unloaded -> landed.
- Wired DynamicCargo event handling in CTLD:
  - on loaded: map to the correct CTLD set entry.
  - on unloaded: mark landed and create/rebind CTLD cargo proxy for build handoff.
  - on removed before landed: mark set failed and clean it.
- Added set completion logic:
  - build starts only when all crates in set are landed.
  - helper infantry is spawned and CTLD engineer build path is used.
- Added merge window batching by owner:
  - close drops from same C-130 can be processed together (one handoff window).
- Added scoped filtering in `_BuildCrates` for this path:
  - prevents counting unrelated nearby crates during engineer auto-build.
- Added cleanup paths for completed/failed/stale sets and stop lifecycle cleanup.
- Added/updated docs in section `2.2` for:
  - what the feature does,
  - required settings,
  - usage example,
  - and the important note that this applies to CTLD `Get Crates` cargo (not C-130 Loadsheet cargo).

**Behavior note**

- Default behavior is unchanged unless `UseC130DynamicCargoAutoBuild` is enabled.
2026-03-03 19:35:17 +01:00
Thomas 8968add126 Merge pull request #2528 from Rolln-dev/Rolln/ParamsCleanup
UPDATE: FUNCTIONAL, NAVIGATION, OPS, SOUND, UTILITIES and WRAPPER function params
2026-03-03 06:25:56 +01:00
Rolln-dev 4e910fcd7a UPDATE: OPS function params
- Added (Optional) to param descriptions for params that have default values
2026-03-02 20:48:54 -07:00
leka1986 c65d93dd73 Revert "Update CTLD.lua" 2026-03-02 22:23:48 +01:00
Rolln-dev ea3689791b UPDATE: SOUND function params
- Added (Optional) to param descriptions for params that have default values
2026-03-02 09:19:20 -07:00
Rolln-dev 38bdcfd297 UPDATE: WRAPPER function params
- Added (Optional) to param descriptions for params that have default values
2026-03-02 08:59:40 -07:00
Rolln-dev b74ec54bea UPDATE: UTILITIES function params
- Added (Optional) to param descriptions for params that have default values
2026-03-02 08:35:47 -07:00
Thomas c346eb7acc Update CTLD.lua 2026-03-02 16:24:29 +01:00
Rolln-dev 414a1d2ca5 UPDATE: NAVIGATION function params
- Added (Optional) to param descriptions for params that have default values
2026-03-02 08:12:03 -07:00
Rolln-dev 6f16d34681 UPDATE: FUNCTIONAL function params
- Added (Optional) to param descriptions for params that have default values
2026-03-02 08:03:56 -07:00
Thomas 877ca7176a Update Utils.lua
#UTILS - Make PrintTableToLog() safer against endless cycles
2026-03-02 12:22:13 +01:00
Thomas ee002fa470 Merge pull request #2524 from FlightControl-Master/leka1986-patch-1
Update OpsGroup.lua
2026-03-02 06:42:38 +01:00
Rolln-dev 753691f5db UPDATE: Core function params
- Fixed some incorrect param types
- Added (Optional) to param descriptions that have default values
2026-03-01 16:28:12 -07:00
Frank 216d023c45 Auftrag
- Improvements
2026-03-01 23:11:36 +01:00
leka1986 d5911afde1 Update OpsGroup.lua
Fixed mojibake
2026-03-01 19:38:52 +01:00
Frank a57532d7bf Merge branch 'master-ng' into develop 2026-03-01 15:42:19 +01:00
Frank e02a1f705b Merge pull request #2523 from FlightControl-Master/FF/Ops
Update
2026-03-01 15:36:27 +01:00
Frank 2e4d401f61 Update
- SET: cleaned up FilterPrefixes
- AUFTRAG: fixed bug in _GetDCSAttackTask
- CONTROLLABLE: Removed unused parameter AttackQtyLimit from TaskAttackGroup, changed weapon type enum for some tasks.
2026-03-01 15:35:05 +01:00
Applevangelist 9c16734141 xx 2026-03-01 14:07:02 +01:00
Applevangelist 384e0b1212 Merge remote-tracking branch 'origin/master-ng' into develop
# Conflicts:
#	Moose Development/Moose/Ops/CTLD.lua
#	Moose Development/Moose/Ops/CTLD_CARGO.lua
#	Moose Development/Moose/Ops/CTLD_Hercules.lua
#	Moose Development/Moose/Ops/CTLD_Localization.lua
2026-03-01 14:04:19 +01:00
Applevangelist 3d6bd4ea54 #Fix some missing localizations 2026-03-01 14:03:13 +01:00
Thomas fe0f0a0190 Update CTLD.lua 2026-02-28 18:33:35 +01:00
Thomas 429307ecc3 Update Modules.lua 2026-02-28 17:38:21 +01:00
Thomas 180d861426 Update CTLD.lua 2026-02-28 17:36:48 +01:00
Thomas 7c15e1119b #CTLD - Added localization and SRS
#CTLD - Added localization and SRS
2026-02-28 17:32:50 +01:00
Applevangelist 11d7a31584 #CTLD Localization 2026-02-27 16:18:32 +01:00
Applevangelist ebd61a70b0 #MSRS - some HOUND specific adjustments 2026-02-27 09:34:19 +01:00
Applevangelist bed8196f10 #CSAR - Missing message translations 2026-02-27 09:21:09 +01:00
Frank 0ce082ed80 Merge branch 'master-ng' into FF/Ops 2026-02-26 16:10:33 +01:00
Applevangelist 486dc6d218 #SRS - fix for Hound Backend if only one frequency is set
#CSAR - Added localization options, added some SRS options (backend, provider)
2026-02-26 15:44:14 +01:00
Frank 8788dc264d Merge branch 'develop' into FF/Ops 2026-02-26 08:09:18 +01:00
Frank 5ff5da9d9a Update Enums.lua
- Added new Weapon type enums
- Added torpedos to Auto weapon type
2026-02-26 08:08:44 +01:00
Frank bfc9d357d6 Update Auftrag.lua
- Added GetCargoSet function
2026-02-24 15:30:16 +01:00
Applevangelist fc79fd18b8 Merge remote-tracking branch 'origin/master-ng' into develop 2026-02-23 18:13:49 +01:00
Applevangelist a949b7ae8c xx 2026-02-23 18:13:16 +01:00
Frank 6362e37804 Merge pull request #2517 from FlightControl-Master/FF/Ops
AUFTRAG
2026-02-22 16:33:54 +01:00
Frank 8471132fe7 AUFTRAG
AUFTRAG FREIGHTTRANSPORT
- Added proper success/failure evaluation
2026-02-22 16:31:03 +01:00
Thomas 2449ed4c96 Merge pull request #2516 from FlightControl-Master/master-ng
Merge from master-ng
2026-02-22 13:45:16 +01:00
leka1986 052f055bbf Update CTLD.lua
Added:  function CTLD:AddStaticsCargoFromType(Name,TypeName,Mass,Stock,SubCategory,DontShowInMenu,Location,UnitTypes,Category,ShapeName,ResourceMap,DisplayName)
Added:  function CTLD:CanGetTroops, this is a final check for outside hooks, if player have conditions.


Reworked cargo placement in the case of none ship.
Cargo will be placed and sizes are depended on the cargo type, this can be further tweaked under the function GetCrates. This is applied to all types of cargo and all type of units.

Removed "Get" from the menu if the UseC130LoadAndUnload is true, player choose now the amount of cargo, then they will spawn. Same is for the Chinook if GCLoading is enabled.

Increased the UH-60L_DAP crate limit to 2 and the weight limit to 3500.

C130basetype is now independent of UseC130LoadAndUnload true / false. It will always be cds_crate for the C-130, and players can change it to whatever.
2026-02-22 13:25:42 +01:00
Thomas 8bb080dba7 Merge pull request #2514 from FlightControl-Master/master-ng
Update Airbase.lua
2026-02-18 11:42:18 +01:00
Thomas c31e8e8130 Update Airbase.lua
#AIRBASE removed a "." from Marianas Airbase names
2026-02-18 11:40:05 +01:00
Frank 09fd4d25b7 AUFTRAG
- Added check for cargo in zone
2026-02-16 22:25:59 +01:00
Frank e3c753ba71 Merge pull request #2513 from FlightControl-Master/FF/Ops
AUFTRAG
2026-02-15 22:47:53 +01:00
Frank 1ac0249fe5 AUFTRAG
- improved FREIGHTTRANSPORT mission type
2026-02-15 22:44:39 +01:00
Thomas a127c8b7c7 Merge pull request #2512 from FlightControl-Master/master-ng
Merge from master
2026-02-15 13:34:18 +01:00
Thomas 843ef4d9d2 Update CTLD.lua 2026-02-15 13:32:57 +01:00