Reworked scripted mythical Acceleration as a spell
This commit is contained in:
parent
d32ed140fe
commit
326fc69bdc
BIN
Acceleration no skse.esp
Normal file
BIN
Acceleration no skse.esp
Normal file
Binary file not shown.
Binary file not shown.
@ -6,45 +6,19 @@ Scriptname _00E_FS_AccerlerateSC extends ActiveMagicEffect
|
|||||||
|
|
||||||
Event OnEffectStart(Actor akTarget, Actor akCaster)
|
Event OnEffectStart(Actor akTarget, Actor akCaster)
|
||||||
|
|
||||||
float fMagnitude = Self.GetMagnitude()
|
|
||||||
fSpeedBonus = akCaster.GetActorValue("Speedmult")*fMagnitude/100
|
|
||||||
akCaster.ModActorValue("Speedmult", fSpeedBonus)
|
|
||||||
_00E_StealthFXShader.Play(akCaster)
|
|
||||||
_00E_FS_AccelerateIMOD.Apply()
|
_00E_FS_AccelerateIMOD.Apply()
|
||||||
UpdateSpeed(akCaster)
|
|
||||||
|
|
||||||
EndEvent
|
EndEvent
|
||||||
|
|
||||||
Event OnEffectFinish(Actor akTarget, Actor akCaster)
|
Event OnEffectFinish(Actor akTarget, Actor akCaster)
|
||||||
|
|
||||||
akCaster.ModActorValue("Speedmult", -fSpeedBonus)
|
|
||||||
MAGAlterationTelekinesisThrow.Play(akCaster)
|
MAGAlterationTelekinesisThrow.Play(akCaster)
|
||||||
_00E_StealthFXShader.Stop(akCaster)
|
|
||||||
UpdateSpeed(akCaster)
|
|
||||||
|
|
||||||
EndEvent
|
EndEvent
|
||||||
|
|
||||||
Function UpdateSpeed(Actor Caster)
|
|
||||||
|
|
||||||
; what is this suppossed to do even????????
|
|
||||||
if Caster.HasSpell(_00E_Vision_UpdateAb)
|
|
||||||
Caster.RemoveSpell(_00E_Vision_UpdateAb)
|
|
||||||
EndIf
|
|
||||||
|
|
||||||
Caster.AddSpell(_00E_Vision_UpdateAb, False)
|
|
||||||
Utility.Wait(0.1)
|
|
||||||
Caster.RemoveSpell(_00E_Vision_UpdateAb)
|
|
||||||
|
|
||||||
EndFunction
|
|
||||||
|
|
||||||
|
|
||||||
;=====================================================================================
|
;=====================================================================================
|
||||||
; PROPERTIES
|
; PROPERTIES
|
||||||
;=====================================================================================
|
;=====================================================================================
|
||||||
|
|
||||||
float fSpeedBonus
|
|
||||||
|
|
||||||
EffectShader Property _00E_StealthFXShader Auto
|
|
||||||
ImageSpaceModifier Property _00E_FS_AccelerateIMOD Auto
|
ImageSpaceModifier Property _00E_FS_AccelerateIMOD Auto
|
||||||
Sound Property MAGAlterationTelekinesisThrow Auto
|
Sound Property MAGAlterationTelekinesisThrow Auto
|
||||||
Spell Property _00E_Vision_UpdateAb Auto
|
|
Loading…
Reference in New Issue
Block a user