0 of 0

File information

Last updated

Original upload

Created by

dTry and Borgut1337 and doodlum

Uploaded by

Borgut1337

Virus scan

Safe to use

Tags for this mod

About this mod

Updated version of dTry's "Shield of Stamina" mod, which redirects any damage from blocked attacks to Stamina instead of Health, until Stamina depletes. My update of the mod resolves one or two inconsistencies in the calculations of stamina damage.

Requirements
Permissions and credits
Changelogs
More Consistent Stamina Costs for Shield of Stamina

Version 1.2.2
19 May 2023
Borgut1337


Updated version of dTry's "Shield of Stamina" mod, which redirects any damage from blocked attacks to Stamina instead of Health, until Stamina depletes. My update of the mod resolves one or two inconsistencies in the calculations of stamina damage.



Requirements
- SKSE: https://skse.silverlock.org/
- Address Library for SKSE Plugins: https://www.nexusmods.com/skyrimspecialedition/mods/32444


(In)compatible Skyrim Versions
- Skyrim version 1.5.97 is compatible (personally tested).
- Skyrim versions 1.6.xxx should be compatible (not personally tested).
-
Also compatible with VR (confirmed by users).


Description
In principle, the features are the same as in the original Shield of Stamina mod: damage from blocked attacks get redirected to the Stamina bar first, until that depletes, with any remaining damage going into the Health bar.

The original mod has, in my opinion, one or two inconsistencies in how it computes the stamina and health damage, which I fix in this version of the mod.

The original implementation works like this: suppose that an attack deals
D damage (after already accounting for blocking), and the victim has S stamina left. If the current amount of stamina exceeds the damage (S >= D), all damage gets absorbed and reduces stamina instead, i.e. the victim loses D stamina. If there is not enough stamina left to absorb all damage (S < D), only S damage gets absorbed (depleting all remaining stamina), and the rest (S - D) goes into the health bar. However: there are also some base stamina costs associated with blocking outside of these calculations, and these are only applied after Shield of Stamina runs all of its code. This creates two issues:

(1) Victims with relatively low stamina receive less damage than they "should", because the original mod allows for the full current stamina S to absorb damage, even if less than S should be considered available given that some of that stamina is yet to be deducted as baseline cost for blocking. In practice, this meant that it was surprisingly difficult to deal much damage to blocking actors, even when their stamina was extremely low (but above 0).
(2) When the optional Guard Break feature is enabled (which is meant to cause actors to get staggered when blocking attacks that fully deplete their stamina), blocking actors would sometimes get their Stamina reduced to 0, but still not get staggered. Specifically, this would happen for actors who had more stamina remaining than damage received, but would get their stamina reduced to 0 afterwards when the game would apply the baseline stamina cost for blocking.

My implementation of the mod, when computing how much damage can be absorbed by stamina, checks how much stamina the game will later remove from the blocking actor as the baseline cost, and subtract this from the amount of health damage that is absorbed. It also applies the Guard Break feature (if enabled) in any case where the full block (after both absorbing damage AND applying baseline stamina costs for blocking) reduces stamina to 0. There will no longer be any surprising cases where a blocking actor does not get staggered after getting their stamina depleted, and it will be a bit easier to deal damage to blocking actors with extremely low stamina.

Installation
Same as any other standard mod, recommend installing using a Mod Manager. Safe to install or uninstall mid-game.


(In)compatibilities
- Like the original Shield of Stamina mod, not compatible with Valhalla Combat.
-
Make sure to remove the original .dll file if you previously had the original version of the mod installed.



Source Code
- Source code is available from GitHub: https://github.com/DennisSoemers/ShieldOfStamina


Disclaimer
- THIS MATERIAL IS NOT MADE, GUARANTEED OR SUPPORTED BY ZENIMAX OR ITS AFFILIATES.
- ALL FILES IN THE DOWNLOAD ARE PROVIDED ''AS IS'' WITHOUT ANY WARRANTY
OR GUARANTEE OF ANY KIND. IN NO EVENT CAN THE AUTHOR BE HELD RESPONSIBLE
FOR ANY CLAIMS, WHETHER OR NOT THEY ARE RELATED TO THE DOWNLOAD.


Credits
- dTry for the original Shield of Stamina mod
- doodlum for AE addresses.
- Stable Diffusion for the image.
- Bethesda Game Studios for The Elder Scrolls V: Skyrim, and The Creation Kit