Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover

IL-2 Sturmovik: Cliffs of Dover Latest instalment in the acclaimed IL-2 Sturmovik series from award-winning developer Maddox Games.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 10-23-2011, 06:22 PM
koko koko is offline
Registered Member
 
Join Date: Jan 2010
Posts: 4
Post

Hi O_TaipaN,

here is my solution for zooming.

Because it is using the MouseAxisTrim function, it will work only in Target Script Editor.

It uses CSU/D hat for zooming IN and OUT. Zoomspeed is adjustable. SC-button is "quickback" Hotkey for FoV90.

It also switches TrackIR Precision mode ON when zooming. SC-button will disable it.

If you would like to test it, you need to adjust "Hold to Adjust Field of
View" = d in your game (Controls/Camera) and if you use TIR Precision hotkey, it has to be F9

Download Zoom.zip.

Extract anywhere you want

Open TARGET Script Editor, choose Menu/Open/...Zoom.tmc and click Open and Run.

Open the game and test. Make sure that "Hold to Adjust Field of View" = d and/or TIR Precision Hotkey = F9

You can also COPY/PASTE the red lines to your .tmc file.

Default location in Win7 C:\Users\USERNAME\AppData\Roaming\Thrustmaster\TAR GET\Scripts

Open TARGET Script Editor, choose Menu/Open.../TARGET/Scripts/xxx.tmc and click Open. Paste the lines somewhere between

if(Init(&EventHandle)) return 1; and

}
int EventHandle(int type, alias o, int x)

Then click Run and open the game.

Make sure that CSU, CSD and SC are empty in your tmc profile before COPY/PASTE.


Code:
include "target.tmh"

 int main()
 {
 if(Init(&EventHandle)) return 1;

 // COPY FROM HERE -----------------------------------------------------

 // When the hat is pulled down...

	 MapKey(&Throttle, CSD, CHAIN(
	 D(),
	 DOWN+'d', // Activate "Hold to Adjust FoV" (D)
	 D(),
	 DOWN+USB[0x42], // Activate TIR Precision mode (F9)
	 REXEC(0, 30, "TrimDXAxis(MOUSE_Y_AXIS, 1);" // Zoomspeed = 30
 )));

 // When the hat is released...

 MapKeyR(&Throttle, CSD, UP+'d'); // Deactivate "Hold to Adjust FoV"

 // When the hat is pushed up...

	 MapKey(&Throttle, CSU, CHAIN(
	 D(),
	 DOWN+'d', // Activate "Hold to Adjust FoV" (D)
	 REXEC(0, 30, "TrimDXAxis(MOUSE_Y_AXIS, -1);" // Zoomspeed = 30
 )));

 // When the hat is released...

 MapKeyR(&Throttle, CSU, UP+'d'); // Deactivate "Hold to Adjust FoV"

 // When the SC-button is pressed down...

 MapKey(&Throttle, SC, CHAIN(
	 UP+USB[0x42], // Deactivate TIR Precision mode (F9)
	 D(),
	 PULSE+USB[0x4E] // Quickback to FoV90
 ));

 //When the SC-button is released

 MapKeyR(&Throttle, SC, EXEC("TrimDXAxis(MOUSE_Y_AXIS, SET(0));")); // Reset the Mouse Y-axis back to middle

 // TO HERE ---------------------------------------------------------------

 }
 int EventHandle(int type, alias o, int x)
 {
 DefaultMapping(&o, x);
 }
<S>koko
Attached Files
File Type: zip Zoom.zip (595 Bytes, 9 views)

Last edited by koko; 10-23-2011 at 06:31 PM.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:50 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.