Sorry, I forgot to mention that this only affects the HP (condition) of the item (GearItem). Now, some items like the flare (FlareItem) which is also of type GearItem, has fields "float m_BurnLifetimeMinutes" & "FlareState m_State" which I did not set as it will need additional checking if the item indeed is a FlareItem so the game will not crash if I modify them. I only intend to restore the conditions of regular items like tools before they get completely broken/ruined, like from 5% to 100% but haven't tried on 0% yet (I think some items will despawn/disappear at 0% or when used up).
I changed to this tactic from "restoring tool condition on-use" because this is much easier to update whenever a new version of TLD is released. The old method was done with searching from 'unknown value' until I got the real condition of items to make the script. The old method also does not include torches and flares.
Another reason is probably because of my play style as I never really use flares and torches --- always used the lantern since it is a better light source and gun warning shots as wolf deterrents, which (as I prefer) is sometimes a little harder on new games without these items.
Hope this is okay for the meantime as I might add it later on.
How to use this cheat table?
- Install Cheat Engine
- Double-click the .CT file in order to open it.
- Click the PC icon in Cheat Engine in order to select the game process.
- Keep the list.
- Activate the trainer options by checking boxes or setting values from 0 to 1