About This File
SKSE64 plugin which fixes script hang in e.g. Naked Defeat and Deviously Cursed Loot:
When any mod disables the activate/use key via DisablePlayerControls(),
then the game sends an OnCrosshairRefChange Event to every Form which registered for said event.
This event keeps being sent for every frame, until the activate/use key is re-enabled.
Which in turn results in some script being seemingly stuck and refusing to execute (such as Naked Defeat or Cursed Loot)
This plugin fixes this by no longer sending the OnCrosshairRefChange Event just because the activate/use key has been disabled.
(Now said Event is only sent, when the Crosshair actually changes targets)
Requires Address Lib.
Tested with Special Edition v1.5.97 and Anniversary Edition v1.6.640
(but "should" be compatibly with anything inbetween aswell *fingers crossed* *no guarantees* *use at your own risk* )
source code on GitHub
Special thanks to:
alex77r4: for helping me understand this bug better in the Naked Defeat SE forum.
mrowrpurr: for creating the SKSE plugin template
the CommonlibSSE-NG creators/coders (including, but not limited to Ryan, powerof3, CharmedBaryon)
the SKSE team
(standing on the shoulders of giants)
Edited by yeahhowaboutnooo