35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
Scriptname _00E_MAG_EldritchDamageConcME extends activemagiceffect
|
|
|
|
Import Math
|
|
|
|
;=====================================================================================
|
|
; EVENTS
|
|
;=====================================================================================
|
|
|
|
Event OnEffectStart(Actor akTarget, Actor akCaster)
|
|
|
|
if akCaster == PlayerREF
|
|
|
|
; Use flat caster damage without SKSE
|
|
float fMagnitude = 20
|
|
|
|
if SKSE.GetVersion()
|
|
fMagnitude = GetMagnitude()
|
|
endif
|
|
|
|
akCaster.DamageActorValue("Health", fMagnitude / EldritchDamageDivider.GetValue())
|
|
ParalyzeFxShader.Play(PlayerREF)
|
|
Utility.Wait(0.5)
|
|
ParalyzeFxShader.Stop(PlayerREF)
|
|
|
|
EndIf
|
|
|
|
EndEvent
|
|
|
|
;=====================================================================================
|
|
; PROPERTIES
|
|
;=====================================================================================
|
|
|
|
Actor Property PlayerREF Auto
|
|
GlobalVariable Property EldritchDamageDivider Auto
|
|
EffectShader Property ParalyzeFxShader Auto |