Deal flat entropy damage to caster without SKSE
This commit is contained in:
parent
0ec55dc071
commit
615ae121ce
Binary file not shown.
Binary file not shown.
@ -10,7 +10,14 @@ Event OnEffectStart(Actor akTarget, Actor akCaster)
|
|||||||
|
|
||||||
if akCaster == PlayerREF
|
if akCaster == PlayerREF
|
||||||
|
|
||||||
akCaster.DamageActorValue("Health", (Self.GetMagnitude()/(EldritchDamageDivider.GetValue())))
|
; Use flat caster damage without SKSE
|
||||||
|
float fMagnitude = 20
|
||||||
|
|
||||||
|
if SKSE.GetVersion()
|
||||||
|
fMagnitude = GetMagnitude()
|
||||||
|
endif
|
||||||
|
|
||||||
|
akCaster.DamageActorValue("Health", fMagnitude / EldritchDamageDivider.GetValue())
|
||||||
ParalyzeFxShader.Play(PlayerREF)
|
ParalyzeFxShader.Play(PlayerREF)
|
||||||
Utility.Wait(0.5)
|
Utility.Wait(0.5)
|
||||||
ParalyzeFxShader.Stop(PlayerREF)
|
ParalyzeFxShader.Stop(PlayerREF)
|
||||||
|
@ -10,8 +10,15 @@ Event OnEffectStart(Actor akTarget, Actor akCaster)
|
|||||||
|
|
||||||
caster = akCaster
|
caster = akCaster
|
||||||
|
|
||||||
|
; Use flat caster damage without SKSE
|
||||||
|
float fMagnitude = 20
|
||||||
|
|
||||||
|
if SKSE.GetVersion()
|
||||||
|
fMagnitude = GetMagnitude()
|
||||||
|
endif
|
||||||
|
|
||||||
; Pre-calculate caster's damage because GetMagnitude() in DealSelfDMG fails if the ME finishes before reaching that code.
|
; Pre-calculate caster's damage because GetMagnitude() in DealSelfDMG fails if the ME finishes before reaching that code.
|
||||||
fCasterDamage = Self.GetMagnitude() / EldritchDamageDivider.GetValue()
|
fCasterDamage = fMagnitude / EldritchDamageDivider.GetValue()
|
||||||
|
|
||||||
EndEvent
|
EndEvent
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user