Added a workaround for the Quick Reflexes slow down effect getting stuck
This commit is contained in:
parent
715f290858
commit
c9d3f98294
BIN
Skyrim.esm
BIN
Skyrim.esm
Binary file not shown.
BIN
scripts/QuickReflexesFix.pex
Normal file
BIN
scripts/QuickReflexesFix.pex
Normal file
Binary file not shown.
19
source/scripts/QuickReflexesFix.psc
Normal file
19
source/scripts/QuickReflexesFix.psc
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
ScriptName QuickReflexesFix extends activemagiceffect
|
||||||
|
|
||||||
|
Spell Property PerkQuickReflexes Auto
|
||||||
|
float Property fUpdateTime Auto
|
||||||
|
|
||||||
|
Event OnEffectStart(Actor akCaster, Actor akTarget)
|
||||||
|
If akCaster == Game.GetForm(0x14)
|
||||||
|
if SKSE.GetVersion()
|
||||||
|
fUpdateTime = GetDuration()
|
||||||
|
endif
|
||||||
|
|
||||||
|
RegisterForSingleUpdate(fUpdateTime + 0.05)
|
||||||
|
EndIf
|
||||||
|
EndEvent
|
||||||
|
|
||||||
|
; Since this is a Fire and Forget spell, this update normally gets unregistered before OnUpdate() ever fires
|
||||||
|
Event OnUpdate()
|
||||||
|
(Game.GetForm(0x14) as Actor).DispelSpell(PerkQuickReflexes)
|
||||||
|
EndEvent
|
Loading…
Reference in New Issue
Block a user