Skip to content

Commit f987f1f

Browse files
Update weapon_system_api.lua
Hi, the current weapon system API links the AIM-9L to the AIM-9M's CSLID, preventing the 9Ls from being shown correctly in the MFD when loaded. This update corrects the issue plus I threw in a number of other models of Aim-9s in case they are added to the a-29b lua later.
1 parent a10eaee commit f987f1f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Cockpit/Scripts/Systems/weapon_system_api.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,11 @@ function set_wpn_selected_storage(pos)
165165
end
166166

167167
local WPN_WEAPONS_NAMES = {}
168-
WPN_WEAPONS_NAMES["{6CEB49FC-DED8-4DED-B053-E1F033FF72D3}"] = "AIM9L"
168+
WPN_WEAPONS_NAMES["{9BFD8C90-F7AE-4e90-833B-BFD0CED0E536}"] = "AIM9P"
169+
WPN_WEAPONS_NAMES["{AIM-9L}"] = "AIM9L"
170+
WPN_WEAPONS_NAMES["{AIM-9P5}"] = "AIM9P5"
171+
WPN_WEAPONS_NAMES["{6CEB49FC-DED8-4DED-B053-E1F033FF72D3}"] = "AIM9M"
172+
WPN_WEAPONS_NAMES["{5CE2FF2A-645A-4197-B48D-8720AC69394F}"] = "AIM9X"
169173
WPN_WEAPONS_NAMES["{A-29B TANK}"] = "TANK"
170174
WPN_WEAPONS_NAMES["{DB769D48-67D7-42ED-A2BE-108D566C8B1E}"] = "GBU12"
171175
WPN_WEAPONS_NAMES["{00F5DAC4-0466-4122-998F-B1A298E34113}"] = "M117"
@@ -225,4 +229,4 @@ end
225229

226230
function get_wpn_ventral_free()
227231
return WPN_VENTRAL_FREE:get() == 1
228-
end
232+
end

0 commit comments

Comments
 (0)