Half-Life 2: Update

Half-Life 2: Update

52 betyg
Null Movement (Improve Keyboard Player Movement)
Av Cory
This guide will allow it so that the player will no longer stop moving when pressing multiple WASD keys.
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
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 kommentarer
GLITCHEDGT 31 maj @ 19:23 
wht💀
Madcat of Shimano 24 okt, 2021 @ 19:03 
Very good script. However, I have been having a problem where HL2 sometimes doesn't execute this on launch.
jornmann 29 sep, 2021 @ 23:16 
Alright, thank you :)
Cory  [skapare] 29 sep, 2021 @ 13:33 
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:40 
Great solution! I have a question, though: Does this add any delay/lag to moving?
RussianSeppukuE03 25 mar, 2021 @ 12:40 
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 @ 16:53 
very clever
RumaenatorX 22 maj, 2020 @ 11:51 
nice idea
Paper Jack 15 mar, 2020 @ 11:28 
Great guide.
Thanks a lot for this script!
:lunar2019coolpig: