Half-Life 2: Update

Half-Life 2: Update

52 valoraciones
Null Movement (Improve Keyboard Player Movement)
Por Cory
This guide will allow it so that the player will no longer stop moving when pressing multiple WASD keys.
   
Premiar
Favoritos
Favorito
Quitar
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 comentarios
GLITCHEDGT 31 MAY a las 19:23 
wht💀
Madcat of Shimano 24 OCT 2021 a las 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 a las 23:16 
Alright, thank you :)
Cory  [autor] 29 SEP 2021 a las 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 a las 3:40 
Great solution! I have a question, though: Does this add any delay/lag to moving?
RussianSeppukuE03 25 MAR 2021 a las 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 a las 16:53 
very clever
RumaenatorX 22 MAY 2020 a las 11:51 
nice idea
Paper Jack 15 MAR 2020 a las 11:28 
Great guide.
Thanks a lot for this script!
:lunar2019coolpig: