Half-Life 2: Update

Half-Life 2: Update

52 ratings
Null Movement (Improve Keyboard Player Movement)
By Cory
This guide will allow it so that the player will no longer stop moving when pressing multiple WASD keys.
   
Award
Favorite
Favorited
Unfavorite
Null Movement
In source games when you press opposite WASD keys at the same time it cancels out the movement all together and forces you to stop until you lift one of the buttons. This can be especially annoying when you are playing an fps and can prevent you from making quick actions. Copy the following code into the autoexec.cfg file in your Half Life 2: Update folder to make it so that when you press two WASD keys at the same time you continue moving in the new direction instead of stalling which helps make quick desicions faster.

The file is located in:

C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2 Update\hl2\cfg\autoexec.cfg

(If you do not have the file then right click, create a blank text document, and rename it to autoexec.cfg)

// Null Movement bind w +mfwd bind s +mback bind a +mleft bind d +mright alias +mfwd "-back;+forward;alias checkfwd +forward" alias +mback "-forward;+back;alias checkback +back" alias +mleft "-moveright;+moveleft;alias checkleft +moveleft" alias +mright "-moveleft;+moveright;alias checkright +moveright" alias -mfwd "-forward;checkback;alias checkfwd none" alias -mback "-back;checkfwd;alias checkback none" alias -mleft "-moveleft;checkright;alias checkleft none" alias -mright "-moveright;checkleft;alias checkright none" alias checkfwd none alias checkback none alias checkleft none alias checkright none alias none ""

Now the player will move freely when pressing opposing movement keys.
9 Comments
GLITCHEDGT 31 May @ 7:23pm 
wht💀
Floppa Gaming 24 Oct, 2021 @ 7:03pm 
Very good script. However, I have been having a problem where HL2 sometimes doesn't execute this on launch.
jornmann 29 Sep, 2021 @ 11:16pm 
Alright, thank you :)
Cory  [author] 29 Sep, 2021 @ 1:33pm 
It shouldn't add lag. It's a pretty light script, any modern computer should handle it fine.

The TF2 community has used this fix for years, I just realized that it would work in other source games as well.

jornmann 28 Sep, 2021 @ 3:40am 
Great solution! I have a question, though: Does this add any delay/lag to moving?
RussianSeppukuE03 25 Mar, 2021 @ 12:40pm 
Nice! Note that you can also toggle crouch and zoom and quick melee and throw grenades with the following entries:
bind x toggle_duck
bind MOUSE3 toggle_zoom
Alias "+quickmelee" "slot1; +attack;"
alias "-quickmelee" "-attack; lastinv;"
bind v +quickmelee
bind t "use weapon_frag;wait 450;+attack;wait 15;-attack;wait 50;lastinv"
"450" in the last line can be shorted but having it shorter than your view model draw animation will prevent it from functioning correctly.
fortheloveoftheroses 19 Sep, 2020 @ 4:53pm 
very clever
RumaenatorX 22 May, 2020 @ 11:51am 
nice idea
Paper Jack 15 Mar, 2020 @ 11:28am 
Great guide.
Thanks a lot for this script!
:lunar2019coolpig: