Sprool Posted October 28, 2020 Posted October 28, 2020 There doesnt seem to be any key bindings attached to the Mi-8 cannon 3-way switch - inner 800/outer 800/624/622 selector for the gunpods. Ideally Id like to bind it to a switch on my button box. How can I find out which buttons this could correspond to, and try to edit the controls lua?
Sprool Posted October 28, 2020 Author Posted October 28, 2020 Not sure...i tried allocating buttons to these, some worked the red safety throw and the switch underneath but none of them worked the 3-way cannon switch. I tried allocating key bindings too but nothing except a mouse click moves the switch to any of its 3 positions
Flappie Posted October 28, 2020 Posted October 28, 2020 You are right. These controls don't work for me either, be it with a joystick or the default "O" key. When I add joystick keybindings for them, my .diff.lua file shows these codes: "800 or 624/622+800 Switch - 800 / 624/622+800" --> "d854pnilu854cdnilvd1vpnilvu0" "800 or 624/622+800 Switch - 624/622+800" --> "d3041pnilunilcd12vd0vpnilvunil" "800 or 624/622+800 Switch - 800" --> "d3041pnilunilcd12vd1vpnilvunil" And in the \mods\aircraft\mi8-mtv2\input\mi-8mtv2\keyboard\default.lua (default keybindings), I find this: {combos = {{key = 'O'}}, down = device_commands.Button_59, cockpit_device_id = devices.WEAPON_SYS, value_down = 1.0, name = _('800 or 624-622-800 Switch - 800/624-622-800'), category = {_('Left Overhead Panel'), _('Armament System')}}, { down = device_commands.Button_41, cockpit_device_id = devices.WEAPON_SYS, value_down = 1, name = _('800 or 624-622-800 Switch - 800'), category = {_('Left Overhead Panel'), _('Armament System')}}, { down = device_commands.Button_41, cockpit_device_id = devices.WEAPON_SYS, value_down = 0, name = _('800 or 624-622-800 Switch - 624-622-800'), category = {_('Left Overhead Panel'), _('Armament System')}}, It doesn't look right for several reasons: The 3 controls are supposed to be tied to the same button, with values in {0, 1, -1}. Here, we see two different button numbers, 59 and 41. In the .diff.lua file, the prefix is supposed to be "d3059" (or "d3041"), but it reads "d854" instead. We need a fix from ED. 1 ---
Sprool Posted November 13, 2020 Author Posted November 13, 2020 I found out its done with the GUV Mode switch, up/down, in that way it acts like a rotary knob with 4 positions.
Recommended Posts