My brain lights up when I see mods with 'Optimized' or 'Script Fix' in the title with no thumbnail image - it's usually a sign I'm on to a winner.
To help my monke brain understand what's going on here, what did the original script do, what issue did it have, and how does the optimised version relying on PAPER address said issue?
I picked this out from the link ExpensiveLadder put of the description page:
ο»ΏIt tries to avoid triggering more than once per frame for the same pairing of akAggressor + target (self). For example, the regular OnHit event may trigger many times within a single frame for a single hit by a poisoned/enchanted weapon, which can cause numerous performance issues. OnImpact will only trigger once.
I'm not a coder but I'll guess this replaces any scripting where a mod uses the OnHit event to avoid multiple triggering of the script. I still don't know enough to be certain though. I know it replaces MagicPlayEffectShaderOnHitScript.pex and MagicPlayEffectShaderOnHitScript.psc that are in the Unofficial Skyrim Modder's Patch.
7 comments
To help my monke brain understand what's going on here, what did the original script do, what issue did it have, and how does the optimised version relying on PAPER address said issue?
I'm not a coder but I'll guess this replaces any scripting where a mod uses the OnHit event to avoid multiple triggering of the script. I still don't know enough to be certain though. I know it replaces MagicPlayEffectShaderOnHitScript.pex and MagicPlayEffectShaderOnHitScript.psc that are in the Unofficial Skyrim Modder's Patch.
https://www.nexusmods.com/skyrimspecialedition/mods/58862
Replacing the OnHit with OnImpact does prevent the shaders from being triggered by Concentration spells, but that should be fine for this script.