4
Fork 0

Moved KillMove sync to a separate quest

steam-1.6.1130
Eddoursul 3 months ago
parent bdd260473e
commit 6c5ab0e966
  1. BIN
      SyncKillMove.esp
  2. BIN
      scripts/_00E_SyncKillMoveAlias.pex
  3. BIN
      scripts/_00e_playersetupscript.pex
  4. 34
      source/scripts/_00E_SyncKillMoveAlias.psc
  5. 21
      source/scripts/_00e_playersetupscript.psc

Binary file not shown.

@ -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

@ -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

Loading…
Cancel
Save