Enderal SE https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
651 B
36 lines
651 B
4 months ago
|
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
|