PDA

View Full Version : Pseudo toe brakes for IL-2



Revvin
10th December 2006, 09:14 PM
This script has been discussed, refined and distilled over a few discussions at the Hangar now so I can't take credit for this but its a very handy little script to provide pseudo toe braking capability in IL-2: Forgotten Battles.

Scenario
IL-2 does not support separate axis input for toe brakes. Instead you can only map a single axis to apply the brakes. This means that you can only press one pedal which is fine in most cases but does feel a little 'odd' when taxiing. What this script does is set a CMS axis to be applied in the game to apply the brakes whichever of the toe brakes is depressed so if you want to taxi left you can push the left pedal forward to apply left rudder as normal and apply the brake by pushing the left toe brake or vice versa which gives the feeling of having differential braking. It doesn't actually give you differential toe braking but it does feel far more intuitive with this script.

The Script
Load up your profile into the Control Manager software and click on the CM Editor button http://www.ch-hangar.com/SiteFiles/Images/faq/cmeditorbtn.jpg If you have not added CMS capability to your map then click the add button http://www.ch-hangar.com/SiteFiles/Images/faq/cmaddbtn.jpg and select 'CMS Controls' and click 'Okay'. This will add a CMS Controls tab into the GUI. Once you have the CM Editor open cut and paste the following script in between the words script and endscript.



IF ([JS3.A1 > JS3.A2]) then
CMS.A1 = JS3.A1;
ELSE
CMS.A1 = JS3.A2;
ENDIF


In the example above JS3.A1 and JS3.A2 are my left and right toe brake axis on my Pro Pedals because my Pro Pedals are the third device in my map file. First select the Pro Pedals tab and set the toe brakes axis from being X and Y to 'None' in the drop down 'DX Axis' selection box. CMS.A1 is the CMS axis we are going to assign as the rudder axis. To do this click on the CMS Controls tab in the Control Manager GUI and you will see an array of buttons. At the bottom there are 4 rows of buttons with the heading 'Axes'. click on the first button which is labelled 'A1' and then in the 'DirectX Function' box select 'CM Device 3' and 'R Axis' in the drop down boxes as I have in the image below.

http://www.ch-hangar.com/SiteFiles/Images/faq/il2brakescms.jpg

Once you've done that just go into IL-2's controller setup screen and press either toe brake to assign that CMS axis to the brake axis in IL-2 and you're done!

The profile in which I've used this script can be downloaded here (http://www.ch-hangar.com/forum/showthread.php?t=2250).