Tank turret movement using the keyboard -1 reply

Please wait...

VyvyanBasterd

Achtung Panzer!

50 XP

8th July 2004

0 Uploads

15 Posts

0 Threads

#1 14 years ago

Hi all,

Some of you may have seen me on the Wolf server (as =JFF=VyvyanBasterd), but I never found a reason to post, until now.

In another thread I saw someone asking for the ability to use the keyboard arrow keys for tank turret movement. Since I too get pretty frustrated when having to pull the mouse over my desk over and over again trying to turn the Tiger turret, I did some experimenting and finally found the answer and wanted to share it with all of you.

In your profile folder (in \Battlefield 1942\Mods\bf1942\Settings\Profiles\[your profile]\Controls) open the land.con file in an editor. Look for the following lines:

ControlMap.addAxisToAxisMapping c_PIMouseLookX IDFMouse IDAxis_0 0 ControlMap.addAxisToAxisMapping c_PIMouseLookY IDFMouse IDAxis_1 0

If you want to be able to use for instance the arrowkeys for all directions of the turret, change it to the following (add the two lines):

ControlMap.addAxisToAxisMapping c_PIMouseLookX IDFMouse IDAxis_0 0 ControlMap.addKeysToAxisMapping c_PIMouseLookX IDFKeyboard IDKey_ArrowRight IDKey_ArrowLeft 1 ControlMap.addAxisToAxisMapping c_PIMouseLookY IDFMouse IDAxis_1 0 ControlMap.addKeysToAxisMapping c_PIMouseLookY IDFKeyboard IDKey_ArrowUp IDKey_ArrowDown 1

You can now use both your keyboard arrow keys and your mouse to move the turret in any direction. As a bonus you now get a very smooth and realistic looking movement of the tank turret! You won't get any speed advantages, in fact I think it moves just slightly slower. But due to the smoothness of the movement it probably turns just as "fast" as the jurky mouse controls. I don't think the Y-axis keyboard moving part adds anything useful (mouse will do just fine), but I added it here anyway.

You can ofcourse map it to other keys, you just have to find out what the IDs are (just look in the .con files after changing something else ingame). Personally I will change the mapping for X-controlling the turret to numpad delete and numpad enter, since I got everything mapped there and will never taken my hand off those keys... :daddy:

A few thinks to consider. First, don't use the ingame control's save button, because then these changes will be lost. Second, make sure the keys you're going to use aren't already used in land.con or common.con, because it will result in a conflict, and you're changes will be lost.

Happy tanking!




Major Hartmann

Major Disinformation

50 XP

27th April 2003

0 Uploads

2,347 Posts

0 Threads

#2 14 years ago

Hey, nice one




Driver

Tomorrow Comes Today

50 XP

29th January 2004

0 Uploads

823 Posts

0 Threads

#3 14 years ago

Sticky this, very usefull...




urseus

|LAB|urseus²

50 XP

8th May 2003

0 Uploads

263 Posts

0 Threads

#4 14 years ago

I think id feel wierd taking my hand off the wasd. In a tank i need to be moving almost all the time....




Kurupt95

[2ndPnZ]

50 XP

2nd March 2004

0 Uploads

346 Posts

0 Threads

#5 14 years ago

Very nice :cool:




Hail of Nails

I want to be like Revenge

50 XP

13th June 2004

0 Uploads

376 Posts

0 Threads

#6 14 years ago

Hmm.... Cool stuff. Can we get these keys to work for AA guns as well? And while we're saying this, has anyone had any trouble re-binding the C Key for the Camera in-game? Mine does not want to re-bind, and always remains C. I do not want a camera button, as the F9-11 do just fine for the views I want. I sometimes accidentally hit C when going prone or crouching (which I bound to X), which totally screws my aim.




Sgt Saunders

Master of space and time

50 XP

29th September 2003

0 Uploads

206 Posts

0 Threads

#7 14 years ago

I agree. You have to be ready to scoot at a moments notice. What would be nice is if you could set up a mouse button that would override the A-D keys while it is being pressed. Say, press mouse button 4 and the A-D keys would now rotate the turret. Release the button and they would revert to left and right turn of the vehicle.




axkgkadragon

GF is my bext friend *hugs GF*

50 XP

16th November 2003

0 Uploads

798 Posts

0 Threads

#8 14 years ago

wait wait wait........we can make it even cooler if we can control the turrent with the joystick...the whole trigger thing would be kewl




Aequitas

aka [SHEEP]BrotherMaynard

50 XP

8th February 2001

0 Uploads

489 Posts

0 Threads

#9 14 years ago

That, or just use my side mouse buttons 4 and 5 to rotate the turret left and right, that would be really nice. Does BF even recognize 4th and 5th mouse buttons? I'd have to go check I guess.

BTW, thanks VyvyanBasterd, very useful.




VyvyanBasterd

Achtung Panzer!

50 XP

8th July 2004

0 Uploads

15 Posts

0 Threads

#10 14 years ago
AequitasThat, or just use my side mouse buttons 4 and 5 to rotate the turret left and right, that would be really nice. Does BF even recognize 4th and 5th mouse buttons? I'd have to go check I guess. BTW, thanks VyvyanBasterd, very useful.

You're welcome! I was thinking of doing the same thing, and since I can't seem to get the numpad decimal and enter keys to work :( , I decided to use those mouse buttons. To map the two side-buttons of my Logitech MX510 I used: ControlMap.addButtonsToAxisMapping c_PIMouseLookX IDFMouse IDButton_4 IDButton_3 1 But I just found out after starting the game a 2nd time the settings seem to be gone... :( Strange.