Skip to content

Commit

Permalink
prevent the f16 from causing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
llamaXc committed Jan 2, 2024
1 parent 033a4ae commit 81336fe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wwt/ufcPatch/aircraft/ufcPatchF16.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local ufcUtils = require("ufcPatch\\utilities\\ufcPatchUtils")

-- The F16 will not work by default due to WinWing news F16 ICP. This ufcPatch file will no longer be used.
ufcPatchF16 = {}

function ufcPatchF16.generateUFCData()
Expand Down
2 changes: 2 additions & 0 deletions wwt/ufcPatch/ufcPatch.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ function ufcPatch.generateUFCExport(deltaTime, moduleName)
return ufcPatchAH64.generateUFCData()

-- F-16C_50 sends information when latest is available
-- WARNING: The F-16C ufc patch addon will no longer work. This is due to SimApp Pro and the new F16 ICP causing issues.
-- For now, this will be disabled
elseif moduleName == 'F-16C_50' then
return ufcPatchF16.generateUFCData()

Expand Down
5 changes: 3 additions & 2 deletions wwt/wwtExport.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,10 @@ do

-- Required to trick SimApp Pro into allowing UFC/Com/Scratch pad commands
local isF18 = _self.Name == 'FA-18C_hornet'
if isF18 == false then
local isF16 = _self.Name == 'F-16C_50'
-- To prevent Breaking the ICP, this mod will be disabled when flying the F18 or the F16
if isF18 == false and isF16 == false then
_winwing.ufcPatch.useCustomUFC = true
_send["msg"]="FA-18C_hornet"
end

_winwing.net.send(_send)
Expand Down

0 comments on commit 81336fe

Please sign in to comment.