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)
|
||||
|
||||
float fMagnitude = Self.GetMagnitude()
|
||||
fSpeedBonus = akCaster.GetActorValue("Speedmult")*fMagnitude/100
|
||||
akCaster.ModActorValue("Speedmult", fSpeedBonus)
|
||||
_00E_StealthFXShader.Play(akCaster)
|
||||
_00E_FS_AccelerateIMOD.Apply()
|
||||
UpdateSpeed(akCaster)
|
||||
|
||||
|
||||
EndEvent
|
||||
|
||||
Event OnEffectFinish(Actor akTarget, Actor akCaster)
|
||||
|
||||
akCaster.ModActorValue("Speedmult", -fSpeedBonus)
|
||||
MAGAlterationTelekinesisThrow.Play(akCaster)
|
||||
_00E_StealthFXShader.Stop(akCaster)
|
||||
UpdateSpeed(akCaster)
|
||||
|
||||
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
|
||||
;=====================================================================================
|
||||
|
||||
float fSpeedBonus
|
||||
|
||||
EffectShader Property _00E_StealthFXShader Auto
|
||||
ImageSpaceModifier Property _00E_FS_AccelerateIMOD Auto
|
||||
Sound Property MAGAlterationTelekinesisThrow Auto
|
||||
Spell Property _00E_Vision_UpdateAb Auto
|
Loading…
Reference in New Issue
Block a user