Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   IL-2 Sturmovik: Cliffs of Dover (http://forum.fulqrumpublishing.com/forumdisplay.php?f=189)
-   -   Adjust field of view - without mouse? (http://forum.fulqrumpublishing.com/showthread.php?t=27315)

O_TaipaN 10-22-2011 11:43 AM

Adjust field of view - without mouse?
 
I'm trying to assign a smooth adjusting of FOV, like ROF and DCS have, to my Warthog throttle.

I see the option to hold mouse button 5, which DOES adjust FOV when you move the mouse forward or backward.

BUT, I can't figure out how to get that working on keys without the mouse.

Has anyone found a solution or is there a button for increase/decrease FOV?

SFF_Karhu 10-22-2011 05:51 PM

Hi.

I use Joy2Key program for Fov changes. I have set 2 buttons on my joystick, one for zoom out and one for zoom in.Choose a key/keys on you throttle or joystick. Select camera settings in Clod and set a key for hold to adjust field of view. Repeat that and then choose mouse emulation on Joy2Key and set those 2 keys here too. Now you can manage how much and fast you want to zoom just pressing keys on you throttle or joystick! :)

No1 Cheese 10-22-2011 05:54 PM

Thank you so much for asking this :)

Cheese

O_TaipaN 10-23-2011 02:50 AM

Thanks

That will work.

I think probably for zoom in.

But zoom out the mouse goes WAY too far doesn't it. Freaky.

So I will use the FOV90 button for zoom out instead.

Please add the FOV keys to the game.. I wonder how multi monitor players deal with this.

SFF_Karhu 10-23-2011 10:54 AM

Hi.

Quote:

But zoom out the mouse goes WAY too far doesn't it. Freaky.
Yes it does. :) But you can manage the amount of zoom in Joy2Key. And you will get use to that freaky zoom. Its a quick way to handle the zoom.

The old IL-2 Sturmovik I use San´s Fov Changer, because I used 3 monitors system eyefinity. I havent found nothing like that for Clod yet. This is the closest I have found and much better than the 3 step zoom, because I want to zoom out and in without steps.

Kwiatek 10-23-2011 12:12 PM

I think FOV change should be smooth like in other games ( ROF etc).

They should make 2 function - ZOOM IN and ZOOM OUT ( FOV IN / OUT )

No1 Cheese 10-23-2011 12:39 PM

i wish it was that simple :)

Cheese

koko 10-23-2011 06:22 PM

1 Attachment(s)
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

Dano 10-23-2011 06:44 PM

We really should not need anything other than a simple in game function for this, it's sad that people have to resort to third party programs to allow something so simple.

O_TaipaN 10-23-2011 07:02 PM

Quote:

Originally Posted by koko (Post 353375)
Hi O_TaipaN,

here is my solution for zooming.

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

<S>koko

Thanks koko!

I didn't think about if target can alter mouse input, I should have looked more since I'm already using that trim function to create a blackshark style trim button for CloD.

I can just slot this into my script for the mic switch up/down. I'm using Mic up/down to zoom in and out, then Mic left/right for FOV30 and FOV70. Best of both worlds ;)

I'll try this script tomorrow, then I can delete JoyToKey from my startup list.


All times are GMT. The time now is 05:52 PM.

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