Fixes the problem that resulted in permanent lag when Sunhallowed arrows are fired into the sun.
Permissions and credits
Credits and distribution permission
Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou are not allowed to upload this file to other sites under any circumstances
Modification permissionYou must get permission from me before you are allowed to modify my files to improve it
Conversion permissionYou are not allowed to convert this file to work on other games under any circumstances
Asset use permissionYou must get permission from me before you are allowed to use any of the assets in this file
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou must get permission to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
File credits
This author has not credited anyone else in this file
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
At the conclusion of the sunburst effect after firing Sunhallowed arrows into the sun, the game might (depending on your Papyrus INI settings) become permanently laggy or choppy. This script should hopefully fix that.
Requires Dawnguard, naturally.
Installation Extract into your Skyrim Data/Scripts folder.
There's no forseeable reason why this modification should cause problems, but it's a good idea in general to make a backup save or two before installing any mod.
Uninstallation Delete DLC1MagicCastFromSunScript.pex from Data/Scripts. To be safe, don't do this while the sunburst effect is active.
Compatibility Potentially incompatible with mods that affect the sunburst effect and/or replace DLC1MagicCastFromSunScript.pex
Details In DLC1MagicCastFromSunScript.OnEffectFinish, busy loops are present to wait for the sun spell and explosions to finish. The issue is that the loops never yield, thus preventing the other functions in the script from properly setting the bFunctionRunningSunSpell to false. Consequently, Papyrus gets permanently hung up on the loop. The resolution is to add a short delay (0.1s) into the loop, which allows the CastSpellFromSun function to finish execution and set the variable to false.
Note that only the sun spell loop has been modified, as I didn't notice the RunningExplosion loop causing issues.