Scorpion27 Posted January 23, 2021 Posted January 23, 2021 I can't find in "options/adj conrol" a key bind for arming ejection seat (EJECTION CONTROLS ARMED) lever - left front of seat. It is a kind of pain in the neck for home cockpit VR to search blind for mouse just to arm ejection seat, while everything else can be done by buttons etc. Cheers
LeCuvier Posted January 23, 2021 Posted January 23, 2021 adding the line of code below to the file "default.lua" gives you a command binding for a maintained 2-position ON/OFF switch. ON = Locked, OFF = Armed: {down = cpt_commands.EjectionSafetyLever, up = cpt_commands.EjectionSafetyLever, value_down = 1.0, value_up = 0.0, cockpit_device_id = devices.CPT_MECH, name = _('Ejection Safety Lever 2-Pos ARMED/LOCKED'), category = {_('Systems')}}, If you don't have such a switch or prefer to use a pair of pushbuttons, you need to add these 2 lines of code: {down = cpt_commands.EjectionSafetyLever, value_down = 1.0, cockpit_device_id = devices.CPT_MECH, name = _('Ejection Safety Lever ARMED'), category = {_('Systems')}}, {down = cpt_commands.EjectionSafetyLever, value_down = 0.0, cockpit_device_id = devices.CPT_MECH, name = _('Ejection Safety Lever LOCKED'), category = {_('Systems')}}, 1 LeCuvier Windows 10 Pro 64Bit | i7-4790 CPU |16 GB RAM|SSD System Disk|SSD Gaming Disk| MSI GTX-1080 Gaming 8 GB| Acer XB270HU | TM Warthog HOTAS | VKB Gladiator Pro | MongoosT-50 | MFG Crosswind Pedals | TrackIR 5
Skligmund Posted March 16, 2021 Posted March 16, 2021 Excellent, I was just coming on here to ask about the same thing. I can currently fly an entire mission starting cold and dark without touching my keyboard or mouse other than the ejection seat arming and AI comms. Ryzen 3700X, MSI X370 Gaming Pro Carbon, 32GB DDR4-3200, MSI GTX 1070, TM Warthog HOTAS, TM Cougar MFD's, TekCreations F-16 ICP, TrackIR 5, 1080P 55" TV. All mounted to Next Level Racing Flight Stand
AKA_Clutter Posted May 22, 2023 Posted May 22, 2023 (edited) Hi all, I am trying to get this to work and am having some trouble. I have added the above line to both the DCS Install folder\mods\aircraft\F-16c\input\joystick\default.lua and the DCS Install folder\mods\aircraft\F-16c\input\keyboard\default.lua files. It shows up int the control setup as an assignable keyboard command but it doesn't show up as an assignable joystick/throttle command. I also tried adding it to just the joystick dafault.lua file, but that didn't work either. I added the command at the bottom of the file, just before the end of rile/return. Any idea of what I'm doing wrong? Edited May 22, 2023 by AKA_Clutter ---------------- AKA_Clutter Win 10 Pro, Intel i7 12700k @4.6 GHz, EVGA RTX 3080 FTW, Ultra 64 GB G.Skill DDR4 3600 RAM, Acer 27" flat screen, HP Reverb G2, TM Warthog HOTAS with Virpil warBRD base, MFG Rudder Pedals, Virpil TCS Rotor Base with AH-64Dcollective, TrackIR 5 Pro w/Vector Expansion, PointCTRL.
LeCuvier Posted May 23, 2023 Posted May 23, 2023 14 hours ago, AKA_Clutter said: ...I added the command at the bottom of the file, just before the end of rile/return. That's definitively the wrong insert point. It must be inserted after these lines (beginning of the file) local cockpit = folder.."../../../Cockpit/Scripts/" dofile(cockpit.."devices.lua") dofile(cockpit.."command_defs.lua") local res = external_profile("Config/Input/Aircrafts/common_joystick_binding.lua") join(res.keyCommands,{ and before these lines (near the end of file): }) -- joystick axes join(res.axisCommands,{ I recommend to insert near the beginning of the file. 1 LeCuvier Windows 10 Pro 64Bit | i7-4790 CPU |16 GB RAM|SSD System Disk|SSD Gaming Disk| MSI GTX-1080 Gaming 8 GB| Acer XB270HU | TM Warthog HOTAS | VKB Gladiator Pro | MongoosT-50 | MFG Crosswind Pedals | TrackIR 5
AKA_Clutter Posted May 23, 2023 Posted May 23, 2023 2 hours ago, LeCuvier said: ... .... ..... and before these lines (near the end of file): }) -- joystick axes join(res.axisCommands,{ I recommend to insert near the beginning of the file. Works like a charm now. And it makes sense. With them at the bottom of the file, it would treat the line as an axes. Thanks! ---------------- AKA_Clutter Win 10 Pro, Intel i7 12700k @4.6 GHz, EVGA RTX 3080 FTW, Ultra 64 GB G.Skill DDR4 3600 RAM, Acer 27" flat screen, HP Reverb G2, TM Warthog HOTAS with Virpil warBRD base, MFG Rudder Pedals, Virpil TCS Rotor Base with AH-64Dcollective, TrackIR 5 Pro w/Vector Expansion, PointCTRL.
Aronis Posted February 16 Posted February 16 Was looking for same thing, will this modification make you have issues on-line gaming??? Mike
Pribs86 Posted April 14 Posted April 14 Can DCS make this change? I don't really like going into the code or whatever it's called. Don't want to screw something up worse or violate any multiplayer authentication as well.
LeCuvier Posted April 14 Posted April 14 6 hours ago, Pribs86 said: Can DCS make this change? I don't really like going into the code or whatever it's called. Don't want to screw something up worse or violate any multiplayer authentication as well. Of course they can. But they obviously don't see this as a priority. This thread starts in January 2021 and they have never responded in any way. 1 1 LeCuvier Windows 10 Pro 64Bit | i7-4790 CPU |16 GB RAM|SSD System Disk|SSD Gaming Disk| MSI GTX-1080 Gaming 8 GB| Acer XB270HU | TM Warthog HOTAS | VKB Gladiator Pro | MongoosT-50 | MFG Crosswind Pedals | TrackIR 5
Pribs86 Posted April 15 Posted April 15 On 4/14/2025 at 2:56 AM, LeCuvier said: Of course they can. But they obviously don't see this as a priority. This thread starts in January 2021 and they have never responded in any way. It was a rhetorical question, sorry. 1
Recommended Posts