Moved KillMove sync to a separate quest
This commit is contained in:
parent
bdd260473e
commit
6c5ab0e966
BIN
SyncKillMove.esp
Normal file
BIN
SyncKillMove.esp
Normal file
Binary file not shown.
BIN
scripts/_00E_SyncKillMoveAlias.pex
Normal file
BIN
scripts/_00E_SyncKillMoveAlias.pex
Normal file
Binary file not shown.
Binary file not shown.
34
source/scripts/_00E_SyncKillMoveAlias.psc
Normal file
34
source/scripts/_00E_SyncKillMoveAlias.psc
Normal file
@ -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…
Reference in New Issue
Block a user