Jump to content

Recommended Posts

Posted (edited)

I found this tiny script to add NVG to Su-25T.

 

 

{combos = {{key = "H", reformers = {"RWin", "RAlt", }}, }, pressed = iCommandPlane_Helmet_Brightess_Down, name = "Gain goggles down", category = "Sensors"},

{combos = {{key = "H", reformers = {"RWin", "RCtrl", }}, }, pressed = iCommandPlane_Helmet_Brightess_Up, name = "Gain goggles up", category = "Sensors"},

{combos = {{key = "H", reformers = {"RWin", }}, }, down = iCommandViewNightVisionGogglesOn, name = "Toggle goggles", category = "Sensors"},

 

 

It works great for the 25T and 25A, but I just can't get it to work for the 27, 29 or 33. I try editing both the default.lua file in mod/..../keyboard as well as copying this file into savedgames/...su27/.../keyboard.

 

Any idea where I'm going wrong?

 

Thanks!

Edited by tovivan
Posted

Out of interest, how did you get it to work for the Su-25T? Where does that script go?

System Spec: Cooler Master Cosmos C700P Black Edition case. | AMD 5950X CPU | MSI RTX-3090 GPU | 32GB HyperX Predator PC4000 RAM | | TM Warthog stick & throttle | TrackIR 5 | Samsung 980 Pro NVMe 4 SSD 1TB (boot) | Samsung 870 QVO SSD 4TB (games) | Windows 10 Pro 64-bit.

 

Personal wish list: DCS: Su-27SM & DCS: Avro Vulcan.

Posted (edited)
It won't work the Su-25A/T and A10A have the background code for NVs, the fighters don't

 

Yeah, discovered that as well. :( And in the process messed up my game that no controls for ANYTHING (keyboard, joystick, mouse, headtracker) worked anymore. Had to do a repair.

 

Out of interest, how did you get it to work for the Su-25T? Where does that script go?

 

It goes in the "default.lua" file in "\DCS World\Mods\aircraft\Su-25T\Input\su-25T\keyboard" folder.

 

Just add these three lines at the end of the "sensors" field, after

{combos = {{key = '.', reformers = {'RAlt'}}}, down = iCommandPlaneThreatWarnSoundVolumeUp, name = _('RWR/SPO Sound Signals Volume Up'), category = _('Sensors')},
So the last part of "-- Sensors" will look like this:

 

....

...

...

{combos = {{key = '.', reformers = {'RAlt'}}}, down = iCommandPlaneThreatWarnSoundVolumeUp, name = _('RWR/SPO Sound Signals Volume Up'), category = _('Sensors')},

{combos = {{key = "H", reformers = {"RWin", "RAlt", }}, }, pressed = iCommandPlane_Helmet_Brightess_Down, name = "Gain goggles down", category = "Sensors"},

{combos = {{key = "H", reformers = {"RWin", "RCtrl", }}, }, pressed = iCommandPlane_Helmet_Brightess_Up, name = "Gain goggles up", category = "Sensors"},

{combos = {{key = "H", reformers = {"RWin", }}, }, down = iCommandViewNightVisionGogglesOn, name = "Toggle goggles", category = "Sensors"},

 

 

Then just run the game and use RWin+H to toggle NVG.

111-simples_2.png

 

:) :thumbup: :pilotfly:

Edited by tovivan
  • Like 1
Posted

Cool, thanks very much.

 

+ Rep to you Sir!

System Spec: Cooler Master Cosmos C700P Black Edition case. | AMD 5950X CPU | MSI RTX-3090 GPU | 32GB HyperX Predator PC4000 RAM | | TM Warthog stick & throttle | TrackIR 5 | Samsung 980 Pro NVMe 4 SSD 1TB (boot) | Samsung 870 QVO SSD 4TB (games) | Windows 10 Pro 64-bit.

 

Personal wish list: DCS: Su-27SM & DCS: Avro Vulcan.

Posted
Cool, thanks very much.

 

+ Rep to you Sir!

 

No problem, glad to finally be able to help, instead of always be the one asking for help. xD

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...