Deal flat entropy damage to caster without SKSE

This commit is contained in:
Eddoursul 2024-02-10 10:47:20 +01:00
parent 0ec55dc071
commit 615ae121ce
4 changed files with 16 additions and 2 deletions

View File

@ -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)

View File

@ -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