Auto Walk lets players walk forward without holding a key.
It is toggled with the toggleautowalk console command, which the plugin binds to the N key
by default, and stops as soon as the player presses a movement key. Plugins can forbid it
through the CanPlayerAutoWalk hook. The state is networked as the auto_walk variable of
the player.
Summary
Hooks
Moves auto walking players forward at full speed.
Hooks
On the server
Moves auto walking players forward at full speed. Turns auto walk off as soon as the player presses a movement key.
Parameters
- actor Player
- move_data CMoveData
- cmd_data CUserCmd
On the client
Moves the player forward at full speed while auto walk is on (clientside prediction).
Parameters
- client Player
- move_data CMoveData
- _cmd_data CUserCmd
Defined in
- plugins/sh_autowalk.lua:19 server
- plugins/sh_autowalk.lua:48 client