DIVINITY: ORIGINAL SIN 2
Toggle Sprint by LaughingLeader
Divinity: Original Sin 2 » Miscellaneous
Added: 29/09/2017 - 07:34AM
Updated: 22/10/2017 - 02:51AM

23 Endorsements

2.3.2 Latest version

599 Unique D/Ls

1,225 Total D/Ls

7,784 Total Views

Uploaded by LaughingLeader

Description

Last updated at 2:51, 22 Oct 2017 Uploaded at 7:34, 29 Sep 2017

Adds the ability to toggle sprinting outside of combat. Sprinting can also be set to automatically turn back on once combat ends.

To get the auto-sprint toggle ball, check your inventory after toggling
sprint. If, for some reason, you don't have sprint on a new game, reload
a save and it should be added to all your player characters.

Current sprint speed values are set at what feels like a reasonable pace. More
options for tweaking speed values may be available in the future, upon
request.

Versions:

PAK
- Packaged version. Place in your Mods folder and enable in the mods menu.

Loose - Unpackaged version. Place in your Data folder to keep achievements enabled with this mod.

To Install:

PAK Version:
1. Unzip and place in your Mods folder (i.e. "Documents\Larian Studios\Divinity Original Sin 2\Mods" ).
2. Launch DOS2, and click the Mods button at the main menu.
3. Check the box next to Toggle Sprint.
4. Hit confirm after enabling the mod.

Loose Version:
1. Unzip and move the contents to the DOS2 Data folder (i.e. "Steam\steamapps\common\Divinity Original Sin 2\Data" ).
2. Confirm that everything was copied in correctly by launching DOS2 and seeing this message: https://i.imgur.com/o8rgEsu.png


Important:
Version 2.0 and above should now be compatible with all mods. Currently untested against previous saves that had ToggleSprint 1.3.

Previous versions (1.3,1.4) are incompatible with other mods that modify Player.charScript. Using multiple mods that both include their own scripts inside Player.charScript will require a manual merge.



Modifying Movement Speed:

Note that this will cover modding the loose files, as this is the easiest way to quickly change things.

The movement speed bonuses I apply via the sprinting status are in the Stats_PlayerSprint entry. This is located in "Data\Public\Shared\Stats\Generated\Data\ToggleSprint_Potion.txt". I highlighted the areas you'll want to modify here: Potion.txt

If you want to modify other bonuses, take a look at Data.txt located at Public\Shared\Stats\Generated\Data\Data.txt.
I've made this file available for download (so you don't have to extract it). Save the gist (right click Raw -> Save Link As) and move it to (Public\Shared\Stats\Generated\Data).

I haven't tested what most of the values are for, but many of them have names that should be fairly obvious, like "CarryWeightPerStr", or "SneakSpeedBoost".

Source:

The full source is hosted on Github..
I encourage you to take a look if you're interested in seeing how a basic scripting mod is done.