Half-Life 2: Deathmatch

Half-Life 2: Deathmatch

Lorelai Aug 21, 2024 @ 3:49pm
How To Play With a Controller or Steam Deck
Part 1: controller.cfg

Head to Half-Life 2: Deathmatch's properties then click on installed files then browse.

From here go to 'HL2MP' then 'CFG'

Make a copy of 'config.cfg' to and name it 'Keyboard.cfg' This will preserve your current settings.

Create a new text document in here and name it 'controller.cfg' (make sure you have file extensions enabled in windows)

Open the newly created 'controller.cfg' in notepad and paste the following text into it:

cfgver "1" unbindall bind "p" "headtrack_reset_home_pos" bind "`" "toggleconsole" bind "ESCAPE" "cancelselect" bind "F3" "askconnect_accept" bind "F9" "vr_toggle" bind "JOY1" "+jump" bind "JOY3" "+reload" bind "JOY2" "+use" bind "JOY4" "impulse 100" bind "JOY5" "+speed" bind "JOY6" "phys_swap" bind "JOY7" "impulse 50" bind "JOY8" "pause" bind "ctrl" "+duck" bind "z" "+zoom" bind "POV_UP" "slot1" bind "POV_RIGHT" "slot2" bind "POV_DOWN" "slot3" bind "POV_LEFT" "slot4" bind "Z AXIS POS" "+attack2" bind "Z AXIS NEG" "+attack" joy_name "Xbox360 controller" joy_advaxisx "3" joy_advaxisy "1" joy_advaxisr "2" joy_advaxisu "4" joy_pitchsensitivity "1.0" joy_yawsensitivity "-1.25" joy_response_move "5" joy_response_look "1" joy_lowend "0.65" joy_lowmap "0.15" joy_accelscale "1.4" joy_autoaimdampenrange "0.85" joy_autoaimdampen "0.5" joystick "1" mat_software_aa_strength "0.000000" mat_software_aa_strength_vgui "1.000000" hud_fastswitch "1" con_enable "1" +jlook

Now lets head over to the Steam Controller Configurator

Part 2: Steam Controller Configurator

In Half-Life 2: Deathmatch's properties, switch to the controller tab and then click on 'Controller Configurator.'

In this new menu ensure that Steam Input is enabled.

Once steam input is enabled, Look for the section that says 'Current Template:'
Click on the 'Current Template' and then select 'Gamepad' from the templates tab.

We are almost done. Now press back and navigate to 'Edit Layout'
In this menu there should be a 'Joysticks' tab on the left. Enter this menu.
Now bind the Right Joystick Click to 'Z' on the keyboard and bind the Left Joystick Click to 'Ctrl'
you can bind any buttons that you wish, but I am just using this for ease of setup, Z will be Zoom and Ctrl will be Crouch.

Now finally click on the settings icon beside 'Z key' a menu should pop up, from this select settings.

In settings select 'Toggle' (if you want this behaviour if not just leave it and ignore.)

repeat these actions for 'Ctrl Key'

You are now done the setup.

Part 3: In Game

Now you are in game! but your controller is not fully working yet.
Press the ` key (left of 1) and open the console.
Into this type 'exec controller' to switch to controller and 'exec keyboard' to return to keyboard and mouse.

I hope this helped some people play the game!

When you have played around with this control scheme, you can change it in the Steam Controller configurator by binding different buttons to other buttons, or by changing the bindings in 'controller.cfg'
Last edited by Lorelai; Aug 21, 2024 @ 3:51pm
< >
Showing 1-2 of 2 comments
Lorelai Aug 21, 2024 @ 3:56pm 
If you want to change controller look sensitivity, add a sensitivity 3.0 (or your desired value) to the controller.cfg so it does not conflict with your mouse and keyboard
|911|Da11aS Aug 22, 2024 @ 10:16am 
Nice, thanks for the guide!
< >
Showing 1-2 of 2 comments
Per page: 1530 50