Jump to content

Got a HOTAS with Dual-Stage trigger? Map it to Gun-select AND Gun-fire


Recommended Posts

Posted

Did a bit of poking around in the controls configs and came upon some 'combo' commands. It pi...annoyed me a little bit ;) that one had to map the gun select and gun fire to separate commands, until I figured out that the game would do it for me!

 

This allows you to map your first-stage trigger (X52/Warthog etc.) to Gun-Select (flipped up trigger cover)while held...second stage trigger fires. think of it like PAC1 and PAC2 in the A-10...

 

go into \Saved Games\DCS\Config\Input\ka-50\joystick and open your joystick Lua in Notepad++ or whatever...Add the following line....

 

{combos = {{key = ""}, }, down = iCommandPlaneModeCannon, up = iCommandPlaneModeCannon, name = "Gun Select Dual", category = "Ins Cyclic Stick"},

 

save it, then go into the control options and map it to your first stage trigger. obviously map the second stage trigger to gun fire.

 

e.g. here's the first part of my lua. What I added is in red...

 

function layout()
return {
forceFeedback = {
trimmer = 1,
shake = 0.5,
swapAxes = false,
invertX = false,
invertY = false,
},
keyCommands = {
[color="Red"][b]{combos = {{key = ""}, }, down = iCommandPlaneModeCannon, up = iCommandPlaneModeCannon, name = "Gun Select Dual", category = "Ins Cyclic Stick"},[/b][/color]
{pressed = iCommandPlane_ABRIS_Axis_Decrease, name = "ABRIS Axis Decrease", category = "Ins ABRIS AMMS"},
{pressed = iCommandPlane_ABRIS_Axis_Increase, name = "ABRIS Axis Increase", category = "Ins ABRIS AMMS"},

Posted

Great idea, thank you. I will give it a whirl.

PC: AMD Ryzen 9 5950X | MSI Suprim GeForce 3090 TI | ASUS Prime X570-P | 128GB DDR4 3600 RAM | 2TB Samsung 870 EVO SSD | Win10 Pro 64bit

Gear: HP Reverb G2 | JetPad FSE | VKB Gunfighter Pro Mk.III w/ MCG Ultimate

 

VKBNA_LOGO_SM.png

VKBcontrollers.com

  • 4 weeks later...
Posted

Not that great idea... imho.

 

And what if you don't fire? You have to keep pressing it while aiming the gun etc... Then if you get tired press it again cause if you hurry a second time you will accidentally deactivate the gun while trying to open fire...

 

I mapped first trigger to gun fire and second to release weapon... you can't fire both in Ka50... simple.

  • Like 1

[sIGPIC][/sIGPIC]

I5 4670k, 32GB, GTX 1070, Thrustmaster TFRP, G940 Throttle extremely modded with Bodnar 0836X and Bu0836A,

Warthog Joystick with F-18 grip, Oculus Rift S - Almost all is made from gifts from friends, the most expensive parts at least

Posted
Wow, great idea!

 

Agreed. I like this. :thumbup:

ASUS ROG Maximus VIII Hero, i7-6700K, Noctua NH-D14 Cooler, Crucial 32GB DDR4 2133, Samsung 950 Pro NVMe 256GB, Samsung EVO 250GB & 500GB SSD, 2TB Caviar Black, Zotac GTX 1080 AMP! Extreme 8GB, Corsair HX1000i, Phillips BDM4065UC 40" 4k monitor, VX2258 TouchScreen, TIR 5 w/ProClip, TM Warthog, VKB Gladiator Pro, Saitek X56, et. al., MFG Crosswind Pedals #1199, VolairSim Pit, Rift CV1 :thumbup:

Posted

I mapped first trigger to gun fire and second to release weapon...

 

That's how I roll too.

 

I also use modifier and trigger to switch to gun mode.

i5-4670K@4.5GHz / 16 GB RAM / SSD / GTX1080

Rift CV1 / G-seat / modded FFB HOTAS

Posted

For a single stage trigger you can do also one little LUA trick:

 

edit

 

"...\DCS World\Mods\aircrafts\Ka-50\Cockpit\Scripts\Devices_specs\WeaponSystem.lua"

 

change first line from

 

use_single_trigger = false --true

 

to

 

use_single_trigger = true

 

...but every update will reverse it to default.

Posted (edited)
I'm pretty sure that just enables your trigger to fire the gun AND the missiles from one button. (not at the same time though, obviously)

Exactly. I had to describe it more precisely.

 

With that you have both triggers (gun trigger and weapons release button) on one designated joy switch or on space bar.

Edited by Suchacz
  • Recently Browsing   0 members

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