Toggle god mode off before killing the player with a script

This commit is contained in:
Eddoursul 2024-01-17 03:42:38 +01:00
parent 7a4e5e4e3b
commit acb1326376
12 changed files with 10 additions and 11 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -139,6 +139,7 @@ State RealPlayer
If iArcaneFever >= 100 && isdead == False
isdead = True
Debug.SetGodMode(false)
Player.Kill()
_00E_Player_sArcaneFever_Death.Show()
If !bDoneArcanistsFever

View File

@ -2,7 +2,7 @@ Scriptname _00E_KillPlayerOnEnter extends ObjectReference
Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef == Game.GetPlayer()
Debug.SetGodMode(false)
Game.GetPlayer().Kill(None)
EndIf
EndEvent

View File

@ -304,6 +304,7 @@ Function KillPlayer()
_00E_AMB_Mystic_Whispers02M.Play(PlayerREF)
PoisonDeath.Apply()
Wait(2.9)
Debug.SetGodMode(false)
FadeToBlackHoldIMOD.ApplyCrossFade(afFadeDuration = 0.5)
PlayerREF.DamageActorValue("Health", 1000)
PlayerREF.KillEssential(_00E_MQ09_SamaelRef)

View File

@ -7,6 +7,7 @@ Event OnEffectStart(Actor akTarget, Actor akCaster)
ParalyzeFxShader.Play(PlayerREF)
Utility.Wait(0.5)
ParalyzeFxShader.Stop(PlayerREF)
Debug.SetGodMode(false)
PlayerREF.Kill()
EndIf

View File

@ -681,6 +681,7 @@ Function CollapseReactor()
ShockFXShader.Play(akCompanionNoRomance)
ShockFXShader.Play(akCompanionRomance)
MAGShockExpMassImod.Apply()
Debug.SetGodMode(false)
akCompanionNoRomance.Kill(akSteelbirdAtrium)
akCompanionRomance.Kill(akSteelbirdAtrium)
PlayerREF.Kill(akSteelbirdAtrium)

View File

@ -1,13 +1,8 @@
ScriptName _00E_PlayerKillOnEnter Extends ObjectReference
;-- Functions ---------------------------------------
; Skipped compiler generated GetState
; Skipped compiler generated GotoState
Event OnTriggerEnter(ObjectReference akActionRef)
If akActionRef == Game.GetPlayer() as ObjectReference
Game.GetPlayer().Kill(None)
If akActionRef == Game.GetPlayer()
Debug.SetGodMode(false)
Game.GetPlayer().Kill()
EndIf
EndEvent