About this mod
Walk in all directions (diagonals included) by holding the Alt key (can be changed in-game). 1.3.1 compatible.
Useless in game version 2.+
- Permissions and credits
- Changelogs
Game version compatibility : 1.3.1 to 1.5.+ (old files availables for versions before 1.3)
In this mod:
✔️Walk in all 4 directions
✔️Walk in diagonals without speed difference
✔️Walk speed based on Panam's speed
✔️In-game configurable key (Adapted to all keyboards)
✔️Code explained
❌Hold Alt button, No toggle (workarounds available)
Tranlastions: English, French, Deutch, Polish & Spanish.
Speed reference:
I based the speed on the NPC Panam so you can walk along main NPCs during quests without overtaking them or be dumped. (Random NPCs in the city have variable movement speed that cannot be used as a reference).
- Download the file
- Open the folder \Cyberpunk 2077\r6\config
- Create a backup of the file inputUserMappings.xml
- Edit the file and change both LeftX_Axis and LeftY_Axis mapping blocks with the ones in the downloaded file inputUserMappings.txt
- Open the folder \Cyberpunk 2077\r6\config\settings\platform\pc
- Create a backup of the file options.json
- Edit the file, search for "crouchToggle" (Ctrl+F), and put the content of the downloaded file options.txt between the "crouchToggle" block and the "switchItem" block.
- In the same file, increment all following "order" lines by 1 (these go from 9 to 34, these should then go from 10 to 35).
- You're good to go
PS: for those using the drag-n-drop version, be aware that using this method might override any other mod previously added that changes your settings (as Better Controls Menu).
Just hold the Alt key (or the one you chose) while walking.
Customize the key:
Launch your game, in your settings, under Key bindings, find <NOT LOCALIZED>Walk (Hold) and set the key to whatever you want.
?Alternative to toggle the button:
- You might run an AutoHotkey script that toggle the key.
- Some peripheral softwares provide a function to toggle (or to create a macro to toggle) the walk button. (e.g. Corsair software, Logitech GHub, ...)
(Technical details for other developers)
First thing to know:
This file is used by the game as a base, so all your preferences defined in-game are NOT saved here.
This block defines the jogging & walking speed and keys for going forward ⬆️ and backward ⬇️.
In bold are changed/added elements from the original file:
<mapping name="LeftY_Axis" type="Axis" >
<button id="IK_Pad_LeftAxisY" />
<button id="IK_W" val="1.2" overridableUI="forward"/>
<button id="IK_S" val="-1.2" overridableUI="back"/>
<button id="IK_A" val="0.0" overridableUI="left"/>
<button id="IK_D" val="0.0" overridableUI="right"/>
<button id="IK_Alt" val="0.0" />
</mapping>
Let's take a look at each line:
- First button: is for console controller (just ignore it).
- 2nd & 3rd buttons: default buttons for moving forward and backward. Only their value changed.
- 4th & 5th buttons: Handle diagonals.
- 6th button: The walk button.
Description of a button:
<button id="IK_W" val="1.2" overridableUI="forward"/>
- id correspond to the default key.
- val defines the speed related to the key, the range is between 1.0 et -1.0 (Yes some of my values are out of range, but I will get to it later). A positive value means the character will go forward, and backward for a negative value.
- overridableUI indicates that the default key will be changed by the in-game preference you've defined. (Here it will use your in-game "forward" setting to override the default W key, usefull for AZERTY keyboards)
Game's value behavior:
If you press 2 keys, the game will combine thoses two values and take the average (within the +1.0 -1.0 limit). So, if these key values are 1.0 and 0.2, the result will be the 0.6.
Since we don't want our character to move when only pressing the Alt key, we need to define its value to 0.0. This means that only our "jogging" speed can change.
The default jogging speed is 1.0, so if you try to walk, the average value will be 0.5, but by exceeding the limit you can increase the average without affecting the jogging speed.
The ideal value I found is 1.2 which allows you to follow an NPC without gowing too fast or too slow. But if you don't care that much about looking at Panam's butt or you feel like a turtle, I suggest you to adjust the value between 1.5 (faster) and 1.0 (slower).
Handling diagonals:
<button id="IK_A" val="0.0" overridableUI="left"/>
<button id="IK_D" val="0.0" overridableUI="right"/>
When walking in diagonals (forward left for example), your average movement value is 0.8 (1.2 forward key, 1.2 left key, 0.0 Alt key), which is higher than the normal walk speed of 0.6. By adding these lines, we add another value of 0.0 which gives an average of 0.6, as expected. So the diagonals speed is the same as other directions.
1. Do I need to erase the game cache ?
Nop, erasing it shall not change anything (unless I missed something about it).
2. I can't bind my key. / Which key code to use ? (For version 1.0 of the mod)
Make sure the key code is correct.
➡️A complete list of all key codes is available in the Optional files.
3. After installing the mod, all keybinds show up as [NONE] or [INVALID] ("press [INVALID] to skip").
You propably have a typo or an extra line from the old code in your xml file. Double check what you've copied-pasted.
4. Will the mod reinitialize my settings ?
It should not unless you use the drag-n-drop version which might override other mods previously added, in this case the removal of the other mods might reset your settings.