Actors, shattered after Arctic Wind, were respawning in frozen state
This commit is contained in:
parent
40e1bb3521
commit
d89079e13f
Binary file not shown.
@ -10,11 +10,11 @@ Auto State Default
|
||||
Debug.Trace(self + ", OnEffectStart (Default): akTarget = " + akTarget + "; akCaster = " + akCaster)
|
||||
FrozenActor = akCaster
|
||||
|
||||
If FrozenActor && FrozenActor.GetAVPercentage("Health") > 0.1 && FrozenActor.HasPerk(_00E_FrozenPerk) == False
|
||||
If FrozenActor && FrozenActor.GetActorValuePercentage("Health") > 0.1 && FrozenActor.HasPerk(_00E_FrozenPerk) == False
|
||||
_00E_A1_ArcticWindFreezeM.Play(akTarget)
|
||||
FrozenActor.AddPerk(_00E_FrozenPerk)
|
||||
FrozenActor.EnableAI(False)
|
||||
FrozenActor.SetAV("Paralysis", 1.0) ; Prevents movement and attacking.
|
||||
FrozenActor.SetActorValue("Paralysis", 1.0) ; Prevents movement and attacking.
|
||||
GoToState("Frozen")
|
||||
EndIf
|
||||
|
||||
@ -120,7 +120,11 @@ EndState
|
||||
|
||||
State Finished
|
||||
|
||||
; Do nothing
|
||||
Event OnEffectFinish(Actor akTarget, Actor akCaster)
|
||||
FrozenActor.SetActorValue("Paralysis", 0)
|
||||
FrozenActor.EnableAI(True)
|
||||
FrozenActor.RemovePerk(_00E_FrozenPerk)
|
||||
EndEvent
|
||||
|
||||
EndState
|
||||
|
||||
@ -152,7 +156,7 @@ Function ShatterEnemy()
|
||||
Steam.UnlockAchievement("END_FROZEN_01")
|
||||
_00E_FrozenAchievementUnlocked.SetValueInt(1)
|
||||
EndIf
|
||||
|
||||
|
||||
; DeletePositionMarker()
|
||||
EndFunction
|
||||
|
||||
@ -167,7 +171,7 @@ EndFunction
|
||||
Function EnableTargetAI()
|
||||
If bReenabledAI == False
|
||||
bReenabledAI = True
|
||||
FrozenActor.SetAV("Paralysis", 0)
|
||||
FrozenActor.SetActorValue("Paralysis", 0)
|
||||
;/ If PositionMarkerRef
|
||||
FrozenActor.MoveTo(PositionMarkerRef)
|
||||
EndIf /;
|
||||
|
Loading…
Reference in New Issue
Block a user