1
Fork 0

Toggle god mode off before killing the player with a script

development
Eddoursul 4 months ago
parent 7a4e5e4e3b
commit acb1326376
  1. BIN
      scripts/_00e_epupdatefunctions.pex
  2. BIN
      scripts/_00e_killplayeronenter.pex
  3. BIN
      scripts/_00e_mq09_questfunctions.pex
  4. BIN
      scripts/_00e_mq12b_ballistaspellme.pex
  5. BIN
      scripts/_00e_mq13c_functions.pex
  6. BIN
      scripts/_00e_playerkillonenter.pex
  7. 1
      source/scripts/_00e_epupdatefunctions.psc
  8. 4
      source/scripts/_00e_killplayeronenter.psc
  9. 1
      source/scripts/_00e_mq09_questfunctions.psc
  10. 1
      source/scripts/_00e_mq12b_ballistaspellme.psc
  11. 1
      source/scripts/_00e_mq13c_functions.psc
  12. 13
      source/scripts/_00e_playerkillonenter.psc

Binary file not shown.

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

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

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

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

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

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

Loading…
Cancel
Save