Walk n Run
A temporary workaround for Mouse+Keyboard Users who want to walk instead of always running.
i let the mod for information purpose. it was the most shortest life for a mod
re-implemented keyboard keybind for sprint
you can also change the keybind directly in the parameters menu ingame
version 1.0 : initial release
version 1.1 : reactivate keybind
version 1.2 : fixed keybind conflict with dart and dash skills. assigned sprint to V
Install:
put this file in your Dying light 2 directory here : ..\Steam\steamapps\common\Dying Light 2\ph\source\
This mod alter player/player_variables.scr file.
If you already have a mod who replace this file, you can modify it yourself
find Param(“SprintWithoutInput”, “1”); and change it’s value to 0 (zero) to force the walking state.
Also altered scripts/inputs/inputs_keyboard.scr
to add the keybind to V (to fix conflict with dash and dart skills)
added entries in the game config menu
added:
// default binding
AddAction(_ACTION_SPRINT,EInputTarget_Player, EInputDevice_Keyboard, false, EKey__V, false, false);
// with or without toggling option
Layout(“Keybinding_SprintMode”)
{
Preset(“&OptionOn&”)
{
RemoveAction(_ACTION_SPRINT, EInputDevice_Keyboard);
AddAction(_ACTION_SPRINT_TOGGLE, EInputTarget_Player, EInputDevice_Keyboard, false, EKey__V, false, false);
}
Preset(“&OptionOff&”)
{
RemoveAction(_ACTION_SPRINT_TOGGLE, EInputDevice_Keyboard);
AddAction(_ACTION_SPRINT, EInputTarget_Player, EInputDevice_Keyboard, false, EKey__V, false, false);
}
}
// assign keybind
LayoutKeybinding(“Keybinding_Sprint”, _CATEGORY_BASE, _COLLIDE_BASE)
{
Action(_ACTION_SPRINT_TOGGLE); // EInputTarget_Player, EInputDevice_Keyboard, EKey__V
Action(_ACTION_SPRINT); //EInputTarget_Player, EInputDevice_Keyboard, EKey__V
}
// add lines in the game config menu
View(“&Keybinding_View_Movement&”)
{
Layout(“Keybinding_MoveForward”, “&Keybinding_MoveForward&”);
Layout(“Keybinding_MoveBackward”, “&Keybinding_MoveBackward&”);
Layout(“Keybinding_MoveLeft”, “&Keybinding_MoveLeft&”);
Layout(“Keybinding_MoveRight”, “&Keybinding_MoveRight&”);
Layout(“Keybinding_DuckMode”, “&Keybinding_DuckMode&”);
Layout(“Keybinding_Duck”, “&Keybinding_Duck&”);
Layout(“Keybinding_SprintMode”, “&Keybinding_SprintMode&”); // walk n run mod
Layout(“Keybinding_Sprint”, “&Keybinding_Sprint&”); // walk n run mod
Layout(“Keybinding_Jump”, “&Keybinding_Jump&”);
}
I also altered some other parameters to my liking
reduced the FOV deformation scale by half when running
Param(“FovSprintModif”, “3.0”);
Reduced headbob factor to minimum
Param(“HeadBobFactor”, “0.1” );
altered sprint effect (sides deformation) to half
Param(“SprintEffects”, “1.5”);