Project Zomboid

Project Zomboid

53 ratings
AutoWalkTo
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
6.154 KB
26 Jan, 2022 @ 9:34am
1 Change Note ( view )

Subscribe to download
AutoWalkTo

Description
AutoWalkTo! (autorun but walking!)

Wanna take your hands off the keyboard while you walk down that long stretch of road or through the woods?

This mod adds an option to the context menu to autorun (walk). Basically right click, mouse over "Auto Walk To", pick a direction, and watch as your character walks infinitely in that direction until you tell them to stop by doing something (WASD, esc, action, etc.) Currently the only way to use this hands free is to walk, you can initiate running/sprinting by using those keys in conjuction with the action. If you choose to run/sprint while using "Auto Walk To" you will find your character pauses briefly when the action retriggers itself. In the future I'd like to clean that up and add a keybind for having Auto Run working with Auto Walk, but for now we work with this.

The action checks 5 squares in the specified direction and triggers "Move To" targeted at that square, so as a result there is some pathfinding included with the action. You'll find the character will likely work its way around obstacles and out of buildings in some cases. Some side effects of this method however include occasionally targeting an undesired position when using in tight spaces, or if the action targets an invalid square the character will stop short of that location. Probably best to use this on wide open roads where your not gonna get chomped by zombies.

Thx again to Chopper for testing in a multiplayer environment!

Warning: I take no responsibility for your character walking into a horde of zombies after you left them on autorun and went to use the bathroom lol

Just a small simple mod, feel free to do as you please with it!

Workshop ID: 2732374884
Mod ID: AutoWalkTo
18 Comments
ArtemisUA 30 May @ 1:19pm 
Hi! Are you planning to add sandbox options to manually set walk to distance? I'd like to make a version of this mod that changes the walk to distance to 20 or more squares.
PickHandSam 14 Apr @ 3:14am 
please port this to build 42, me and my partner need this desperately
FCF 29 Mar, 2024 @ 10:24pm 
A radial menu for this mod would be nice!
󠀡󠀡 󠀡󠀡 󠀡󠀡 󠀡 30 Oct, 2022 @ 4:42pm 
Disable it when you right click so it doesn't start in combat please
jest  [author] 22 Feb, 2022 @ 4:29am 
Hmm is it only if you die while the action is running? I thought I've died a few times now and didn't have that happen, but I'll try and reproduce that next im on.
jest  [author] 10 Feb, 2022 @ 6:19am 
Originally I was going to do that actually, but I ran into a few logistical issues so ended up opting for the context menu. IIRC the two issues I encountered were that since two movement keys are often being pressed at once due to the isometric view it was difficult to find a key that could be used with the pinky that doesnt have an existing binding/conflict (and ofcourse people wouldnt wanna take their hand off the mouse), that and every once in a while when detecting the direction of the player the autowalk would get it wrong and start walking in a slightly different direction (likely due to my own mistake), so I saw the context menu as a suitable band aid to the situation without having to tinker too much more with the other implement
Markuis 10 Feb, 2022 @ 5:26am 
a hotkey for autowalking in the direcction we are looking at would be perfect.
Geruhn 6 Feb, 2022 @ 7:39am 
Totally forgot about it! Thanks :)
jest  [author] 3 Feb, 2022 @ 11:29am 
it doesn't work for driving no, but there is a vanilla cruise control if you hold shift you can toggle the speed up and down with W/S keys and itll keep going in whatever direction your headed :happymeat:
Geruhn 3 Feb, 2022 @ 11:02am 
does this also work for driving?