Merge pull request #2456 from FlightControl-Master/master

Merge from master
This commit is contained in:
Thomas
2025-11-27 18:07:18 +01:00
committed by GitHub
2 changed files with 17 additions and 1 deletions
+2 -1
View File
@@ -515,7 +515,8 @@ ENUMS.ReportingName =
Atlas = "A400",
Lancer = "B1-B",
Stratofortress = "B-52H",
Hercules = "C-130",
Herc = "C-130",
Hercules = "C-130J-30",
Super_Hercules = "Hercules",
Globemaster = "C-17",
Greyhound = "C-2A",
@@ -2300,6 +2300,21 @@ function UTILS.IsLoadingDoorOpen( unit_name )
return true
end
if type_name=="C-130J-30" and (unit:getDrawArgumentValue(86)==1)then
BASE:T(unit_name.." rear doors are open")
return true
end
if type_name=="C-130J-30" and (unit:getDrawArgumentValue(87)==1)then
BASE:T(unit_name.." Side door(s) are open")
return true
end
if type_name=="C-130J-30" and (unit:getDrawArgumentValue(88)==1)then
BASE:T(unit_name.." Paratroop door(s) are open")
return true
end
if string.find(type_name, "Hercules") and (unit:getDrawArgumentValue(1215) == 1 and unit:getDrawArgumentValue(1216) == 1) then
BASE:T(unit_name .. " rear doors are open")
return true