Jump to content

How to set controls manually (problem when setting ingame)


Recommended Posts

Hello,

 

i decided to finish this classic game which i overlooked for all those years. After some initial problems with installation i faced another problem - with setting controls. In my case (and i believe i am not the only one) is not possible to save keyboard settings - it keeps switching to defaults after press OK. Sadly those default controls are one of the worst i had chance to experience so...

 

i did some research and found solution in manually setting those binds using "autoexec.cfg" file in games root folder.

 

1) you need to find set of lines beginning with ""enabledevice "##keyboard""

 

2) now you simply change the "##xy" value of particular binds (where xy refers to unique code of each key) using this sheet

 

keyboardcodes.jpg

 

3) For example: I want to set "Flashlight" function which is in default [L] on [F] key. So i look up "FlashLight" in those lines and change original

 

rangebind "##keyboard" "##38" 0.000000 0.000000 "FlashLight" // 38 = [L] //

 

to

 

rangebind "##keyboard" "##33" 0.000000 0.000000 "FlashLight" // 33 = [F] //

 

Note that some binds have different names than stated ingame, like "Crouch" is refered as "Duck" in config file, but i am sure you can deduce such things.

 

4) To make things even easier i am also posting my config written in same order as ingame settings menu so its easier to edit. You can simply copy and paste it to your config file then customize it by yourself. In case you need to add some function (i skipped few ones), you can find its name in previous lines starting like "AddAction x" (x = functions name) using same template.

 




enabledevice "##keyboard"
rangebind "##keyboard" "##17" 0.000000 0.000000 "Forward" 
rangebind "##keyboard" "##31" 0.000000 0.000000 "Backward" 
rangebind "##keyboard" "##30" 0.000000 0.000000 "StrafeLeft" 
rangebind "##keyboard" "##32" 0.000000 0.000000 "StrafeRight" 
rangebind "##keyboard" "##42" 0.000000 0.000000 "Speed" 
rangebind "##keyboard" "##57" 0.000000 0.000000 "Jump" 
rangebind "##keyboard" "##29" 0.000000 0.000000 "Duck" 
rangebind "##keyboard" "##56" 0.000000 0.000000 "TurnAround" 
rangebind "##keyboard" "##58" 0.000000 0.000000 "RunLock" 
rangebind "##keyboard" "##18" 0.000000 0.000000 "Activate" 
rangebind "##keyboard" "##19" 0.000000 0.000000 "Reload" 
rangebind "##keyboard" "##46" 0.000000 0.000000 "NextAmmo" 
rangebind "##keyboard" "##16" 0.000000 0.000000 "HolsterWeapon" 
rangebind "##keyboard" "##15" 0.000000 0.000000 "Inventory" 
rangebind "##keyboard" "##45" 0.000000 0.000000 "Score" 
rangebind "##keyboard" "##20" 0.000000 0.000000 "Mission" 
rangebind "##keyboard" "##33" 0.000000 0.000000 "FlashLight" 
rangebind "##keyboard" "##44" 0.000000 0.000000 "CursorTog" 
rangebind "##keyboard" "##21" 0.000000 0.000000 "SendMessage" 
rangebind "##keyboard" "##22" 0.000000 0.000000 "TeamMessage" 
rangebind "##keyboard" "##13" 0.000000 0.000000 "DecLayout" 
rangebind "##keyboard" "##12" 0.000000 0.000000 "IncLayout" 
rangebind "##keyboard" "##67" 0.000000 0.000000 "QuickLoad" 
rangebind "##keyboard" "##64" 0.000000 0.000000 "QuickSave" 
rangebind "##keyboard" "1" 0.000000 0.000000 "Weapon_1" 
rangebind "##keyboard" "2" 0.000000 0.000000 "Weapon_2" 
rangebind "##keyboard" "3" 0.000000 0.000000 "Weapon_3" 
rangebind "##keyboard" "4" 0.000000 0.000000 "Weapon_4" 
rangebind "##keyboard" "5" 0.000000 0.000000 "Weapon_5" 
rangebind "##keyboard" "6" 0.000000 0.000000 "Weapon_6" 
rangebind "##keyboard" "7" 0.000000 0.000000 "Weapon_7" 
rangebind "##keyboard" "8" 0.000000 0.000000 "Weapon_8" 
rangebind "##keyboard" "9" 0.000000 0.000000 "Weapon_9" 
rangebind "##keyboard" "##11" 0.000000 0.000000 "Weapon_0" 
enabledevice "##mouse"
rangebind "##mouse" "Tlačítko 0" 0.000000 0.000000 "Fire" 
rangebind "##mouse" "##y-axis" 0.000000 0.000000 "Axis2" 
scale "##mouse" "##y-axis" 0.001250
rangebind "##mouse" "##x-axis" 0.000000 0.000000 "Axis1" 
scale "##mouse" "##x-axis" 0.001250
rangebind "##mouse" "##z-axis" 0.100000 255.000000 "NextWeapon" -255.000000 -0.100000 "PrevWeapon" 
rangebind "##mouse" "Tlačítko 3" 0.000000 0.000000 "ZoomIn" 
rangebind "##mouse" "Tlačítko 4" 0.000000 0.000000 "ZoomOut" 
rangebind "##mouse" "Tlačítko 1" 0.000000 0.000000 "Activate" 
 

 

and here is preview of config posted above from ingame settings:

 

nolfcntrl1.jpg

 

nolfcntrl2.jpg

 

nolfcntrl3.jpg

 

nolfcntrl4.jpg

Thats it! I hope it will help someone out. :)

 

 

P.S.: Sorry for my bad english. Also it would be great to sticky this guide. ;)

Edited by merlo
Link to comment
Share on other sites

  • 1 year later...

Uh, sorry! The "keyboard map" picture didn't appeared when I first wrote this post. I can see it now, thank you very much for the help! :s134:

 

Unfortunatelly I cannot open the jpg pictures. Could you help me to set some keys? Or if you could post a character table with keys and code numbers would be very nice.

 

crouch/duck would be "left Alt"

zoom in would be "Q or E" all the same (as no lean left)

zoom out would be "E or Q" all the same (as no lean right)

next ammo/function would be "left Control"

flashlight would be "C"

holster weapon would be "F"

 

I think that would be all what I don't like in game default keyboard configuration.

 

Thank you for your help in advance. :)

Edited by cuccos19
Link to comment
Share on other sites

  • 5 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines Privacy Policy.