Username:

Password:

Pages: [1]
  Print  
Author Topic: How to program in TARGET Il2 - 3 position zoom on a switch in other SIMS  (Read 3170 times)
TX-Gunslinger
BLACK 2
Administrator
Hero Member
*****
Offline Offline

Posts: 2213


View Profile
« 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));"
)
)
);
Logged

Black 2 TX Flight Leader
GOZR
TX-Member
Hero Member
*****
Offline Offline

Posts: 1479



View Profile WWW
« Reply #1 on: June 02, 2011, 09:44:54 am »

Great Gunny ! Smiley
Logged

-GOZR
TX-Gunslinger
BLACK 2
Administrator
Hero Member
*****
Offline Offline

Posts: 2213


View Profile
« Reply #2 on: June 02, 2011, 01:46:06 pm »

Hiya Goze!

Listen, I need to create a new account on your forums.  I have not been there in so long because I've had trouble with my password

Look for my new registration today Smiley

S!

Gunny
Logged

Black 2 TX Flight Leader
Pages: [1]
  Print  
 
Jump to: