From 7df1eb963f22f226d4ac679fabbc78cff544b20b Mon Sep 17 00:00:00 2001 From: leka1986 <83298840+leka1986@users.noreply.github.com> Date: Sun, 19 Apr 2026 20:36:44 +0200 Subject: [PATCH] Update CSAR.lua CSAR now treats aircraft with AircraftType[type] <= 0 as not CSAR-capable when building the active SAR unit list, while still allowing those type keys to exist for other systems such as FARP storage setup. Added those to the type, CSAR.AircraftType["Ka-50_3"] = 0 CSAR.AircraftType["Ka-50"] = 0 CSAR.AircraftType["AV8BNA"] = 0 --- Moose Development/Moose/Ops/CSAR.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Moose Development/Moose/Ops/CSAR.lua b/Moose Development/Moose/Ops/CSAR.lua index 0be8b7478..ff42181d9 100644 --- a/Moose Development/Moose/Ops/CSAR.lua +++ b/Moose Development/Moose/Ops/CSAR.lua @@ -504,6 +504,9 @@ CSAR.AircraftType["OH58D"] = 2 CSAR.AircraftType["CH-47Fbl1"] = 31 CSAR.AircraftType["AH-6J"] = 2 CSAR.AircraftType["MH-6J"] = 2 +CSAR.AircraftType["Ka-50_3"] = 0 +CSAR.AircraftType["Ka-50"] = 0 +CSAR.AircraftType["AV8BNA"] = 0 --- CSAR class version. -- @field #string version @@ -2538,8 +2541,11 @@ function CSAR:_AddMedevacMenuItem() if _unit then --self:T("Unitname ".._unit:GetName().." IsAlive "..tostring(_unit:IsAlive()).." IsPlayer "..tostring(_unit:IsPlayer())) if _unit:IsAlive() and _unit:IsPlayer() then - local unitName = _unit:GetName() - _UnitList[unitName] = unitName + local _maxUnits = self.AircraftType[_unit:GetTypeName()] + if _maxUnits == nil or _maxUnits > 0 then + local unitName = _unit:GetName() + _UnitList[unitName] = unitName + end end -- end isAlive end -- end if _unit end -- end for