36 lines
651 B
Plaintext
36 lines
651 B
Plaintext
Scriptname _00E_KillMove Hidden
|
|
|
|
int Function Off() Global
|
|
|
|
GlobalVariable KillMove = Game.GetForm(0x100F19) as GlobalVariable
|
|
int iPrevValue = KillMove.GetValue() as int
|
|
|
|
KillMove.SetValue(0 as float)
|
|
Utility.SetINIBool("bVATSDisable:VATS", true)
|
|
|
|
return iPrevValue
|
|
|
|
EndFunction
|
|
|
|
int Function On() Global
|
|
|
|
GlobalVariable KillMove = Game.GetForm(0x100F19) as GlobalVariable
|
|
int iPrevValue = KillMove.GetValue() as int
|
|
|
|
KillMove.SetValue(1 as float)
|
|
Utility.SetINIBool("bVATSDisable:VATS", false)
|
|
|
|
return iPrevValue
|
|
|
|
EndFunction
|
|
|
|
int function SetValue(bool bValue) Global
|
|
|
|
if bValue
|
|
return On()
|
|
else
|
|
return Off()
|
|
endif
|
|
|
|
endfunction
|