diff --git a/SyncKillMove.esp b/SyncKillMove.esp new file mode 100644 index 00000000..641d0492 Binary files /dev/null and b/SyncKillMove.esp differ diff --git a/scripts/_00E_SyncKillMoveAlias.pex b/scripts/_00E_SyncKillMoveAlias.pex new file mode 100644 index 00000000..5a781db6 Binary files /dev/null and b/scripts/_00E_SyncKillMoveAlias.pex differ diff --git a/scripts/_00e_playersetupscript.pex b/scripts/_00e_playersetupscript.pex index 3e3a3323..12e0148d 100644 Binary files a/scripts/_00e_playersetupscript.pex and b/scripts/_00e_playersetupscript.pex differ diff --git a/source/scripts/_00E_SyncKillMoveAlias.psc b/source/scripts/_00E_SyncKillMoveAlias.psc new file mode 100644 index 00000000..90ff7f87 --- /dev/null +++ b/source/scripts/_00E_SyncKillMoveAlias.psc @@ -0,0 +1,34 @@ +Scriptname _00E_SyncKillMoveAlias extends ReferenceAlias + +GlobalVariable Property KillMove Auto + +Event OnInit() + + ; it seems like that this ini setting does not do stuff by itself (or it is bugged) + ; therefore we need to read it from the file and change the global with which the killmoves are conditioned + + if SKSE.GetVersion() == 0 + return + endif + + If Utility.GetINIBool("bVATSDisable:VATS") + KillMove.SetValue(0.0) + Else + KillMove.SetValue(1.0) + EndIf + +EndEvent + +Event OnPlayerLoadGame() + + if SKSE.GetVersion() == 0 + return + endif + + If Utility.GetINIBool("bVATSDisable:VATS") + KillMove.SetValue(0.0) + Else + KillMove.SetValue(1.0) + EndIf + +EndEvent diff --git a/source/scripts/_00e_playersetupscript.psc b/source/scripts/_00e_playersetupscript.psc index 4b3eeebe..04502e4c 100644 --- a/source/scripts/_00e_playersetupscript.psc +++ b/source/scripts/_00e_playersetupscript.psc @@ -18,8 +18,6 @@ Event OnInit() PlayerREF.SetActorValue("speedMult", 95) PlayerREF.SetActorValue("Healrate", 0) - EnableDisableKillmove() - ; starts all quests that are in the formlist Int iIndex = QuestsToStart.GetSize() While iIndex > 0 @@ -41,19 +39,6 @@ EndEvent ; ALL UPDATES ;===================================================================================== -Function EnableDisableKillmove() - - ; it seems like that this ini setting does not do stuff by itself (or it is bugged) - ; therefore we need to read it from the file and change the global with which the killmoves are conditioned - - If Utility.GetINIBool("bVATSDisable:VATS") == false - KillMove.SetValueInt(1) - Else - KillMove.SetValueInt(0) - EndIf - -EndFunction - Function SetAutoSaveInterval() ; updates the autosave interval @@ -90,8 +75,6 @@ Function Maintenance() Message.ResetHelpMessage("Clear") (Game.GetForm(0xAC80E) as Message).ShowAsHelpMessage("Clear", 0.1, 1, 1) - EnableDisableKillmove() - SetAutoSaveInterval() RefreshMountNamesOnLoad() @@ -104,10 +87,6 @@ EndFunction ; PROPERTIES ;===================================================================================== -_00E_MQ05Prologue_Functions Property MQ05PrologueFunctions Auto - Actor Property PlayerREF Auto FormList Property QuestsToStart Auto - -GlobalVariable Property KillMove Auto