4
Fork 0

Added an MCM option to toggle killmoves

development
Eddoursul 3 months ago
parent f85cf43704
commit 719d00d4b6
  1. BIN
      Separated health bar controls.esp
  2. BIN
      interface/translate_english.txt
  3. BIN
      scripts/_00e_enderalmcm.pex
  4. BIN
      scripts/_00e_ski_playerloadgamealias.pex
  5. 14
      source/scripts/_00e_enderalmcm.psc
  6. 12
      source/scripts/_00e_ski_playerloadgamealias.psc

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -23,6 +23,7 @@ Event OnPageReset(string page)
toggleOID_ReadAloudBooks = AddToggleOption(_00E_ConfigMenu_DisableReadAloudBooks.GetName(), _00E_DisableReadAloudBooks.GetValue() != 0)
toggleOID_VideoSkip = AddToggleOption(_00E_ConfigMenu_VideoSkip.GetName(), _00E_VideoSkip.GetValue() != 0)
toggleOID_ActorHealthBars = AddToggleOption(_00E_ConfigMenu_ActorHealthBars.GetName(), _00E_ActorHealthBarsEnabled.GetValue() != 0)
toggleOID_KillMoves = AddToggleOption(_00E_ConfigMenu_KillMove.GetName(), KillMove.GetValue() != 0)
SetCursorPosition(1)
@ -84,6 +85,14 @@ Event OnOptionSelect(int option)
else
ActorHealthBarWidget.UnregisterEvents()
endif
elseif option == toggleOID_KillMoves
ChangeCheckbox(toggleOID_KillMoves, KillMove)
if KillMove.GetValue()
Utility.SetINIBool("bVATSDisable:VATS", false)
else
Utility.SetINIBool("bVATSDisable:VATS", true)
endif
EndIf
EndEvent
@ -114,6 +123,8 @@ Event OnOptionHighlight(int option)
SetInfoText("$ConfigMenuVideoSkipInfo")
ElseIf option == toggleOID_ActorHealthBars
SetInfoText("$ConfigMenuActorHealthBars")
ElseIf option == toggleOID_KillMoves
SetInfoText("$ConfigMenuKillMoves")
EndIf
EndEvent
@ -147,6 +158,7 @@ int toggleOID_OtherTutorials
int toggleOID_ReadAloudBooks
int toggleOID_VideoSkip
int toggleOID_ActorHealthBars
int toggleOID_KillMoves
Message Property _00E_ConfigMenu_Keybindings Auto
Message Property _00E_ConfigMenu_OtherOptions Auto
@ -162,6 +174,7 @@ Message Property _00E_ConfigMenu_DisableOtherTutorials Auto
Message Property _00E_ConfigMenu_DisableReadAloudBooks Auto
Message Property _00E_ConfigMenu_VideoSkip Auto
Message Property _00E_ConfigMenu_ActorHealthBars Auto
Message Property _00E_ConfigMenu_KillMove Auto
_FS_Phasmalist_ControlQuest Property controlQuest Auto
_00E_Horseflute_SC Property _00E_HorseFlute_New Auto
@ -174,6 +187,7 @@ GlobalVariable Property _00E_DisableOtherTutorials Auto
GlobalVariable Property _00E_DisableReadAloudBooks Auto
GlobalVariable Property _00E_VideoSkip Auto
GlobalVariable Property _00E_ActorHealthBarsEnabled Auto
GlobalVariable Property KillMove Auto
_00E_MeditationHotkeyAlias Property PlayerMeditation Auto

@ -1,10 +1,18 @@
scriptname _00E_SKI_PlayerLoadGameAlias extends ReferenceAlias
; EVENTS -----------------------------------------------------------------------------------------
event OnPlayerLoadGame()
if KillMove.GetValue()
Utility.SetINIBool("bVATSDisable:VATS", false)
else
Utility.SetINIBool("bVATSDisable:VATS", true)
endif
Quest bSkyUI = Game.GetFormFromFile(0x802, "SkyUI_SE.esp") as Quest
if bSkyUI
(GetOwningQuest() as _00E_EnderalMCM).OnGameReload()
endif
endEvent
GlobalVariable Property KillMove Auto

Loading…
Cancel
Save