CH47F types added plus doorcheck

This commit is contained in:
Applevangelist 2024-08-03 14:30:27 +02:00
parent 38e10331c9
commit 16655cf070
3 changed files with 8 additions and 3 deletions

View File

@ -293,7 +293,7 @@ CSAR.AircraftType["Bronco-OV-10A"] = 2
CSAR.AircraftType["MH-60R"] = 10
CSAR.AircraftType["OH-6A"] = 2
CSAR.AircraftType["OH58D"] = 2
CSAR.AircraftType["CH-47Fbl1"] = 30
CSAR.AircraftType["CH-47Fbl1"] = 31
--- CSAR class version.
-- @field #string version

View File

@ -1251,7 +1251,7 @@ CTLD.UnitTypeCapabilities = {
["Bronco-OV-10A"] = {type="Bronco-OV-10A", crates= false, troops=true, cratelimit = 0, trooplimit = 5, length = 13, cargoweightlimit = 1450},
["OH-6A"] = {type="OH-6A", crates=false, troops=true, cratelimit = 0, trooplimit = 4, length = 7, cargoweightlimit = 550},
["OH58D"] = {type="OH58D", crates=false, troops=false, cratelimit = 0, trooplimit = 0, length = 14, cargoweightlimit = 400},
["CH-47Fbl1"] = {type="CH-47Fbl1", crates=true, troops=true, cratelimit = 4, trooplimit = 33, length = 30, cargoweightlimit = 3000},
["CH-47Fbl1"] = {type="CH-47Fbl1", crates=true, troops=true, cratelimit = 4, trooplimit = 31, length = 30, cargoweightlimit = 8000},
}
--- CTLD class version.

View File

@ -2315,10 +2315,15 @@ function UTILS.IsLoadingDoorOpen( unit_name )
return true
end
if type_name == " OH-58D" and (unit:getDrawArgumentValue(35) > 0 or unit:getDrawArgumentValue(421) == -1) then
if type_name == "OH-58D" and (unit:getDrawArgumentValue(35) > 0 or unit:getDrawArgumentValue(421) == -1) then
BASE:T(unit_name .. " cargo door is open")
return true
end
if type_name == "CH-47Fbl1" and (unit:getDrawArgumentValue(86) > 0) then
BASE:T(unit_name .. " rear cargo door is open")
return true
end
return false