TX-Gunslinger
|
 |
« on: May 31, 2011, 01:30:26 am » |
|
Finally, I figured out how to create Il2 style - 3 position zoom - assigned to a single key. Plus - script below allows a slider to be part of the action too. The min-max slider values available for trim are -1024 to +1024 with 0 obviously being the center.
Works really well. Even better than Il2 - you could have 4 zoom levels or customize the %zoom on each.
--------------------------------------------------------------------------------------------------- //First line maps the slider lever/elev trim on Warthog Throttle to DX_SLIDER_AXIS
MapAxis(&Throttle, THR_FC, DX_SLIDER_AXIS, AXIS_NORMAL, MAP_ABSOLUTE); SetSCurve(&Throttle, THR_FC, 0, 0, 0, 0, 0);
//Now we will setup script to modify the DX_SLIDER_AXIS - to jump to three preset zooms using SEQ - and set button zoom ala Il2!
MapKeyIO(&HCougar, H3R, PULSE+VW_External_Friendly, SEQ( EXEC("TrimDXAxis(DX_SLIDER_AXIS, SET(0));" ), EXEC("TrimDXAxis(DX_SLIDER_AXIS, SET(1024));" ), EXEC("TrimDXAxis(DX_SLIDER_AXIS, SET(-1024));" ) ) );
|