jazzisparis / JIP-LN-NVSE

An extension for the New Vegas Script Extender (NVSE)
GNU General Public License v3.0
50 stars 14 forks source link

Fix Get/SetLockedOut functions #31

Closed shad0wshayd3 closed 1 year ago

shad0wshayd3 commented 1 year ago

SetLockedOut was creating empty ExtraTerminalState data for Terminals, overriding the Hack Difficulty set on their base forms. Both SetLockedOut and GetLockedOut were only checking for and setting ExtraLock data on Doors without considering they might be inheriting it from their teleport doors. All changes made by SetLockedOut also needed to be marked for the game to handle them correctly on save/load.

I'm not 100% sure on the 0x80000000 flag for ExtraTerminalState, but it's used in some game code and it works so ¯\(ツ)\/¯.

jazzisparis commented 1 year ago

Thanks! Your fix was incorporated.