Refresh heat vision on item equip
This commit is contained in:
parent
68c6a351de
commit
69da4522a9
Binary file not shown.
8
src/CWxBionicEyesOnEquip.gek
Normal file
8
src/CWxBionicEyesOnEquip.gek
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
scn CWxBionicEyesOnEquip
|
||||||
|
|
||||||
|
begin function { ref rEquipper, ref rEquipped }
|
||||||
|
|
||||||
|
let CWxBionicEyesQuest.heatShader1stPersonActive := 0
|
||||||
|
let CWxBionicEyesQuest.heatShader3rdPersonActive := 0
|
||||||
|
|
||||||
|
end
|
@ -8,6 +8,7 @@ begin function { iMode }
|
|||||||
|
|
||||||
SetOnKeyUpEventHandler CWxBionicEyesOnHotkey 1 CWxVisionModeHotkey
|
SetOnKeyUpEventHandler CWxBionicEyesOnHotkey 1 CWxVisionModeHotkey
|
||||||
SetOnControlDownEventHandler CWxBionicEyesOnHotkey 1 27 ; Grab
|
SetOnControlDownEventHandler CWxBionicEyesOnHotkey 1 27 ; Grab
|
||||||
|
SetEventHandler "OnActorEquip" CWxBionicEyesOnEquip
|
||||||
|
|
||||||
; Clear list of processed actors to reapply shaders
|
; Clear list of processed actors to reapply shaders
|
||||||
if CWxVisionModeLevel > 0
|
if CWxVisionModeLevel > 0
|
||||||
@ -18,6 +19,7 @@ begin function { iMode }
|
|||||||
else
|
else
|
||||||
SetOnKeyUpEventHandler CWxBionicEyesOnHotkey 0 CWxVisionModeHotkey
|
SetOnKeyUpEventHandler CWxBionicEyesOnHotkey 0 CWxVisionModeHotkey
|
||||||
SetOnControlDownEventHandler CWxBionicEyesOnHotkey 0 27 ; Grab
|
SetOnControlDownEventHandler CWxBionicEyesOnHotkey 0 27 ; Grab
|
||||||
|
RemoveEventHandler "OnActorEquip" CWxBionicEyesOnEquip
|
||||||
endif
|
endif
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user