Counter no SKSE
This commit is contained in:
parent
b7cd5604dc
commit
ed849c2d51
BIN
Counter update.esp
Normal file
BIN
Counter update.esp
Normal file
Binary file not shown.
Binary file not shown.
@ -1,6 +1,5 @@
|
||||
Scriptname _00E_OverstrainSC extends activemagiceffect
|
||||
|
||||
|
||||
;=====================================================================================
|
||||
; EVENTS
|
||||
;=====================================================================================
|
||||
@ -18,6 +17,12 @@ Event OnEffectStart(Actor akTarget, Actor akCaster)
|
||||
|
||||
bAwardXP = (akCasterREF == None || (akCasterREF.GetFactionRank(EPFaction) >= 0) || akCasterREF.HasEffectKeyword(BlameSpellKeyword))
|
||||
|
||||
if SKSE.GetVersion()
|
||||
fMagnitude = GetMagnitude()
|
||||
endif
|
||||
|
||||
fDamageMagnitude = fMagnitude * akCasterREF.GetActorValue("Illusion") / 5
|
||||
|
||||
EndIf
|
||||
|
||||
EndEvent
|
||||
@ -49,10 +54,17 @@ Function CastStun()
|
||||
akTargetREF.PlaceAtMe(_00E_FS_OverstrainEXP)
|
||||
_00E_Ability_StaggerSelfSpell.RemoteCast(akTargetREF, akCasterREF, akTargetREF)
|
||||
|
||||
float fStrength = (Self.GetMagnitude()*akCasterREF.GetActorValue("Illusion")/5)
|
||||
_00E_FS_OverstrainDMGSP.SetNthEffectMagnitude(0, fStrength)
|
||||
iStunStage = 2
|
||||
|
||||
if SKSE.GetVersion()
|
||||
_00E_FS_OverstrainDMGSP.SetNthEffectMagnitude(0, fDamageMagnitude)
|
||||
_00E_FS_OverstrainDMGSP.Cast(akTargetREF, akTargetREF)
|
||||
else
|
||||
; taper magnitude = effect magnitude * Taper Weight * Taper Duration / (Taper Curve + 1)
|
||||
; does not match SKSE damage, needs improvement
|
||||
akTargetREF.DamageActorValue("Health", fDamageMagnitude + fDamageMagnitude * 0.3 * 1.0 / (2.0 + 1))
|
||||
endif
|
||||
|
||||
IllusionNegativeFXS.Play(akTargetREF)
|
||||
MAGIllusionReleaseAimedSDM.Play(akTargetREF)
|
||||
IllusionDark01Imod.Apply()
|
||||
@ -69,6 +81,7 @@ Actor akTargetREF
|
||||
Actor akCasterREF
|
||||
Bool bAwardXP
|
||||
Int iStunStage
|
||||
float fDamageMagnitude
|
||||
|
||||
Spell Property _00E_Ability_StaggerSelfSpell Auto
|
||||
Spell Property _00E_FS_OverstrainDMGSP Auto
|
||||
@ -87,3 +100,5 @@ ImageSpaceModifier Property IllusionDark01Imod Auto
|
||||
Keyword Property BlameSpellKeyword Auto
|
||||
|
||||
Faction Property EPFaction Auto
|
||||
|
||||
Float Property fMagnitude = 7.0 Auto
|
||||
|
Loading…
Reference in New Issue
Block a user