Skip to content

Commit

Permalink
v1.0.2a-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
RedK0d committed May 21, 2022
1 parent 11f004b commit e6086b9
Show file tree
Hide file tree
Showing 17 changed files with 238 additions and 195 deletions.
115 changes: 84 additions & 31 deletions CHANGELOG.md
@@ -1,6 +1,59 @@
# 21/05/2022 v1.0.2a-beta
Fixed issues
.Interference issue with All Modules
Reworked mod logic.
The mod only starts if the aircraft is supported.

Su-27/J-11A
.Moved Scan Zone Left
.Moved Scan Zone Right
--Todo Code Scan Zone Return to center
.Removed Scan Zone Up
.Removed Scan Zone Down
.Added Scan Zone Up/Down

Su-33
.Moved Scan Zone Left
.Moved Scan Zone Right
--Todo Code Scan Zone Return to center
.Removed Scan Zone Up
.Removed Scan Zone Down
.Added Scan Zone Up/Down

MiG-29A/G/S
.Added Scan Zone Up/Down

Su-25T
.Removed HOTAS Target Lock (Handle)
.Added HOTAS Quick A-A to A-G Switch

Su-25
.Removed HOTAS Target Lock (Handle)
.Added HOTAS Quick A-A to A-G Switch
.Fixed ASP-17 Glass Up/Down (Only cycled down)

F-15C
.Added Bingo Fuel Index CW/CCW
.Label_Change Radar Off
> Radar On/Off
.Label_Change Parking Brakes
> Emergency Brakes
(Left Click):Engage
(Right Click):Disengage
.Added_Message Emergency Brakes now triggers a user message
A-10A
.Label_Change Wheel Brake
> Emergency Brakes
(Left Click):Engage
(Right Click):Disengage
.Added_Message Emergency Brakes now triggers a user message




# 12/05/2022 v1.0.1c-beta
Fixed issues
.Interference issue with F-16I SUFA Module
.Interference issue with F-16I SUFA Module
F-15C
.Added HOTAS Target Lock
.Added HOTAS Radar - Return To Search/NDTWS
Expand Down Expand Up @@ -101,10 +154,10 @@ F-15C
# 09/05/2022 v0.3.0-alpha

Fixed issues
.Interference issue with Eurofighter Module
.Interference issue with PUCARA Module
.Interference issue with WW1FlyingCircus Module
.Interference issue with RAFB Module
.Interference issue with Eurofighter Module
.Interference issue with PUCARA Module
.Interference issue with WW1FlyingCircus Module
.Interference issue with RAFB Module
.Issue with Ripple Quantity Select/SPPU select on Su-25T,Su-25

General Improvement
Expand Down Expand Up @@ -311,9 +364,9 @@ Known issues
Changelog now in descending order

Fixed issues
.Interference issue with AH-64D Module
.Interference issue with AH-6 Module
.Interference issue with Rafale Module
.Interference issue with AH-64D Module
.Interference issue with AH-6 Module
.Interference issue with Rafale Module
.Some buttons were not giving consistent output
.Position of connectors was not updated

Expand Down Expand Up @@ -395,7 +448,7 @@ Su-27/J-11A
# 16/02/2022 v0.1.7-alpha

Fixed issues
.Interference issue with Bell-47 Module
.Interference issue with Bell-47 Module

Enhancements
Su-25T
Expand Down Expand Up @@ -447,23 +500,23 @@ Added MiG-29S and Mig-29A Support
# 12/02/2022 v0.1.6-alpha

Fixed issues
.Interference issue with F-5E-3 Module
.Interference issue with AV8BNA Module
.Interference issue with Spitfire LF Mk. IX Module
.Interference issue with Bf-109K-4 Module
.Interference issue with P-47D-40 Module
.Interference issue with P-47D-30bl1 Module
.Interference issue with SA342L Module
.Interference issue with SA342M Module
.Interference issue with SA342Minigun Module
.Interference issue with SA342Mistral Module
.Interference issue with C-101CC Module
.Interference issue with C-101EB Module
.Interference issue with FW-190A8 Module
.Interference issue with L-39C Module
.Interference issue with L-39ZA Module
.Interference issue with P-51D-30-NA Module
.Interference issue with P-51D Module
.Interference issue with F-5E-3 Module
.Interference issue with AV8BNA Module
.Interference issue with Spitfire LF Mk. IX Module
.Interference issue with Bf-109K-4 Module
.Interference issue with P-47D-40 Module
.Interference issue with P-47D-30bl1 Module
.Interference issue with SA342L Module
.Interference issue with SA342M Module
.Interference issue with SA342Minigun Module
.Interference issue with SA342Mistral Module
.Interference issue with C-101CC Module
.Interference issue with C-101EB Module
.Interference issue with FW-190A8 Module
.Interference issue with L-39C Module
.Interference issue with L-39ZA Module
.Interference issue with P-51D-30-NA Module
.Interference issue with P-51D Module

Su-25T
. Solved Su-25T Possible bug between Attitude Hold Autopilot and Auto pilot Reset #32
Expand All @@ -481,9 +534,9 @@ Su-25T

# 09/02/2022 v0.1.5-alpha
Fixed issues
.Interference issue with Yak-52 Module
.Interference issue with MOSQUITOFBMKVI Module
.Interference issue with Mi-8MT Module
.Interference issue with Yak-52 Module
.Interference issue with MOSQUITOFBMKVI Module
.Interference issue with Mi-8MT Module
Enhancements
Added Su-25T Support
.Added Altimeter Pressure Increase/Decrease
Expand Down Expand Up @@ -521,8 +574,8 @@ Added Su-25T Support
# 05/02/2022 v0.1.4-alpha

Fixed issues
.Interference issue with Su-25T Module
.Interference issue with TF-51D Module
.Interference issue with Su-25T Module
.Interference issue with TF-51D Module
Su-27/33/J-11A
.AP Auto button should be Attitude Hold #21
."Toggle Mirrors" action still appears when cockpit is open #24
Expand Down
127 changes: 95 additions & 32 deletions Cockpit/Scripts/SYSTEMS/clickable.lua
Expand Up @@ -15,10 +15,13 @@ local aircraft = get_aircraft_type()
local mastermode = 0
local mastermodeF15 = 0
local radarScanAreaf15 = 1
local selecter_timer = 0
local selecter_timer = 0
local radar_pos_az = 0
local planeradar_timer = 0
local bingo_timer = 0
local chutestate
local CLIC_MODE_AA_COUNTER
local CLIC_MODE_QUICK_COUNTER
--------------------------------------------------------------------
--local test = get_param_handle("BASE_SENSOR_RIGHT_THROTTLE_POS")

Expand All @@ -27,11 +30,12 @@ local CLIC_MODE_AA_COUNTER


function post_initialize()
print_message_to_user("v1.0.1c-beta",10)
print_message_to_user("v1.0.2a-beta",10)
print_message_to_user(aircraft,10)
dispatch_action(nil,Keys.iCommandCockpitClickModeOnOff)
chutestate = 0
CLIC_MODE_AA_COUNTER = 0
CLIC_MODE_QUICK_COUNTER = 0
--dump("list_cockpit_params",list_cockpit_params())
local birth = LockOn_Options.init_conditions.birth_place

Expand Down Expand Up @@ -138,8 +142,12 @@ function SetCommand(command,value)

end

if command == device_commands.CLIC_ASP then
dispatch_action(nil,Keys.iCommandPlaneHUDFilterOnOff)

if command == device_commands.CLIC_ASP and value >0 then
dispatch_action(0,Keys.iCommandPlaneHUDFilterOnOff,-1.0)
end
if command == device_commands.CLIC_ASP and value <0 then
dispatch_action(0,Keys.iCommandPlaneHUDFilterOnOff,1.0)
end
if command == device_commands.CLIC_TRIM_L then
dispatch_action(nil,Keys.iCommandPlaneTrimLeft)
Expand Down Expand Up @@ -255,6 +263,24 @@ function SetCommand(command,value)

end

if command == device_commands.CLIC_MODE_QUICK and value ==1 then
CLIC_MODE_QUICK_COUNTER = CLIC_MODE_QUICK_COUNTER +1
if mastermode == 6 then
dispatch_action(nil,Keys.iCommandPlaneModeGrid)

end
mastermode = 0

if CLIC_MODE_QUICK_COUNTER == 1 then
dispatch_action(nil,Keys.iCommandPlaneModeFI0)
end
if CLIC_MODE_QUICK_COUNTER == 2 then
dispatch_action(nil,Keys.iCommandPlaneModeGround)
CLIC_MODE_QUICK_COUNTER = 0
end

end


if command == device_commands.CLIC_MODE then

Expand Down Expand Up @@ -352,6 +378,14 @@ function SetCommand(command,value)
if command == device_commands.CLIC_AUTO_GCA and value == 1 then
dispatch_action(nil,Keys.iCommandPlaneSAUHRadio)

end
if command == device_commands.CLIC_AUTO_PATH and value == 1 then
dispatch_action(nil,Keys.iCommandPlaneRouteAutopilot)

end
if command == device_commands.CLIC_AUTO_REAP and value == 1 then
dispatch_action(nil,Keys.iCommandPlaneStabHrad)

end
if command == device_commands.CLIC_AUTO_DAMPER then
dispatch_action(nil,Keys.iCommandPlaneStabHbarBank)
Expand Down Expand Up @@ -455,34 +489,41 @@ function SetCommand(command,value)
if command == device_commands.CLIC_TV and value ==1 then
dispatch_action(nil,Keys.iCommandPlaneEOSOnOff)
end

if command == device_commands.CLIC_SCAN_L then
dispatch_action(nil,Keys.iCommandSelecterLeft)
if value ~=1 then
dispatch_action(nil,Keys.iCommandSelecterStop)
end
end

if command == device_commands.CLIC_SCAN_R then
dispatch_action(nil,Keys.iCommandSelecterRight)
if value ~=1 then

if command == device_commands.CLIC_SCAN_L then
dispatch_action(nil,Keys.iCommandSelecterLeft)
if value ~=1 then
dispatch_action(nil,Keys.iCommandSelecterStop)
end
end
end

if command == device_commands.CLIC_SCAN_U then
dispatch_action(nil,Keys.iCommandSelecterUp)
if value ~=1 then
dispatch_action(nil,Keys.iCommandSelecterStop)
if command == device_commands.CLIC_SCAN_R then
dispatch_action(nil,Keys.iCommandSelecterRight)

if value ~=1 then
dispatch_action(nil,Keys.iCommandSelecterStop)
end
end
end

if command == device_commands.CLIC_SCAN_D then
dispatch_action(nil,Keys.iCommandSelecterDown)
if value ~=1 then
dispatch_action(nil,Keys.iCommandSelecterStop)

if command == device_commands.CLIC_SCAN_EL then
selecter_timer = 0.025

if command == device_commands.CLIC_SCAN_EL and value ==-1 then
dispatch_action(nil,Keys.iCommandSelecterDown)
--print_message_to_user("iCommandSelecterDown")
end
if command == device_commands.CLIC_SCAN_EL and value ==1 then
dispatch_action(nil,Keys.iCommandSelecterUp)
--print_message_to_user("iCommandSelecterUp")
end
end
end










Expand Down Expand Up @@ -699,6 +740,14 @@ function SetCommand(command,value)
dispatch_action(nil,Keys.iCommandChangeRippleIntervalDown)

end
if command == device_commands.CLIC_EMERGENCY_BRAKES_ON and value == 1 then
dispatch_action(nil,Keys.iCommandPlaneWheelBrakeOn)
print_message_to_user("Emergency Brakes\nEngaged")
end
if command == device_commands.CLIC_EMERGENCY_BRAKES_OFF and value == 1 then
dispatch_action(nil,Keys.iCommandPlaneWheelBrakeOff)
print_message_to_user("Emergency Brakes\nDisengaged")
end
--F-15C Specifics
if aircraft=="F-15C" then
if command == device_commands.CLIC_FIRE and value == 1 then
Expand All @@ -710,12 +759,17 @@ function SetCommand(command,value)
if command == device_commands.CLIC_LANDING_LIGHTS_F15 then
dispatch_action(nil,Keys.iCommandPlaneHeadLightOnOff)
end
if command == device_commands.CLIC_PARKING_BRAKES_F15_ON and value == 1 then
dispatch_action(nil,Keys.iCommandPlaneWheelBrakeOn)
end
if command == device_commands.CLIC_PARKING_BRAKES_F15_OFF and value == 1 then
dispatch_action(nil,Keys.iCommandPlaneWheelBrakeOff)

if command == device_commands.CLIC_BINGO then
bingo_timer = 0.25

if value ==-1 then
dispatch_action(0,Keys.iCommandPlaneFSQuantityIndicatorSelectorINT,-1)
elseif value ==1 then
dispatch_action(0,Keys.iCommandPlaneFSQuantityIndicatorSelectorINT,1)
end
end

end
-- Master Combat Mode Controls
-- To be reworked to implement the Navigation mod which has two sub mods, which causes problems.
Expand Down Expand Up @@ -803,6 +857,15 @@ function update()
dispatch_action(nil,Keys.iCommandPlaneRadarStop)
end
end
if bingo_timer > 0 then
bingo_timer = bingo_timer - update_time_step
if bingo_timer <= 0 then
bingo_timer = 0
dispatch_action(0,Keys.iCommandPlaneFSQuantityIndicatorSelectorINT,0)

end
end

end

need_to_be_closed = false -- close lua state after initialization
Expand Down

0 comments on commit e6086b9

Please sign in to comment.