Weighty Charged Attacks
For OpenMW 0.48.0+
-- Solthas, 20230116

Changelog
1.5 - Added setting for debuffing speed on release to simulate followthrough / recovery.

(Combine with Charge Attack Parry!) Get weightier charged attacks! You'll be slowed while you're charging them up depending on weapon weight and your strength, but you'll get a different attack buff afterward, for grounded or jumping attacks, depending on weapon weight and your charge time!

[RECOMMENDATIONS]
My other lua mods may seamlessly be used with this one! Charge Attack Parry is the companion mod for this one, and is highly recommended.
Charge Attack Parry: 
Directional Attack Stat Buffs: https://www.nexusmods.com/morrowind/mods/52168

[INSTALLATION]
Note: This mod only works with 0penMW 0.48+, and is only tested on OpenMW 0.48.0.

Unzip the mod subdirectory wherever you put your mods, or on a datapath listed in openmw.cfg (default Windows location C:\Users\...\Documents\My Games\OpenMW), and check the checkbox in OpenMW Launcher > Data Files > SolWeightyChargeAttacks.omwscripts

[DESCRIPTION]
This mod uses what Lua API hooks currently exist for OpenMW 0.48 to debuff you while you're charging an attack, and buff you for a short duration once you release it, depending on whether you are in the air or on the ground at that time.

As it stands, the buffs are as follows:
	While charging, lose speed and agility, scaling with (1+sqrt(weaponWeight)) and with (50/strength).
	On release, buff, scaling with (1+sqrt(weaponWeight)) and min(2, chargeTime*weaponSpeed). If in their air, buff strength and endurance. If on the ground, buff weapon skills, increasing accuracy.
	
The logic is as follows: Charging an extra heavy attack exposes you to danger and keeps you from dodging well. You can either put that focus into aiming your attack perfectly, or expend extra fatigue doing a powerful swing, aided by your extra cool in air momentum. That's how it's supposed to feel at least.

[IMPLEMENTATION]
Every frame, the script checks whether you're using the use action. If so, then the very first frame of that, it checks if you've got the correct weapon setup. If so, it debuffs you and sets your state as "charging". Then, when you release the use key, on the first frame of that, it kills the "charging" state, removes the debuffs, and applies the buffs, triggering a timer to them remove them after buffDuration has passed.

[CONFLICTS]
I hope there aren't any. I've set this mod up so that it doesn't change any values absolutely, and so that it tracks its state internally. I suppose it'll conflict with mods that change how you charge attacks.

[CREDITS]
Me. Antsan for the inspiration to separate grounded and jumping attack buffs.