2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_MAG_EldritchDamageConcME extends activemagiceffect
|
|
|
|
|
|
|
|
Import Math
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; EVENTS
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
Event OnEffectStart(Actor akTarget, Actor akCaster)
|
|
|
|
|
|
|
|
if akCaster == PlayerREF
|
|
|
|
|
2023-12-08 02:45:53 +00:00
|
|
|
akCaster.DamageActorValue("Health", (Self.GetMagnitude()/(EldritchDamageDivider.GetValue())))
|
2021-10-05 22:15:58 +00:00
|
|
|
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
|