Project Zomboid

Project Zomboid

Realistic Inventory
star  [developer] Nov 27, 2019 @ 11:28pm
Guide
Definitions
BIG item
weight > 1.95, (or some really BIG item)
MEDIUM item
weight > 0.55, (or clothes)
Small item
any other item

Rules
You can carry:
  1. About 0.5-1.5 kg of small items, depending on the number of pockets you have.
  2. In addition, THREE(3) MEDIUM items OR ONE(1) BIG item.
  3. Equipped items, items in slots, items in bags and some exclusions (bullets, cigarettes) are not counted.

Other mechanics
  • Weight rebalance (based on 41.21). I use autotest which makes the mod compatible with new build every time. 100% no typos. Now this feature has endless compatibility.
  • You may craft Flask which is actually a bottle but isn't counted as an item (because it's on your neck).
  • Smart decisions about what to drop if you carry too much. Don't ask how it works. Just read simple rules above. I need a thick notebook to write about how it works.
  • Optimized algorithm which can count up to 2000 items at a time without a lag (tested on 3.3GHz).
  • There is a hint about what exact type of items you are carrying.
  • There is a hint about what exact number of pockets each clothing provide.
  • If you wear one clothes on top of another, then the number of pockets in it is halved (like there is no access to all pockets).
  • Remember that a Wallet is an extra free pocket.

Misc

TODO: +1 big item in inventory for each free hand (i changed my mind)
TODO: +1 slot for one full bottle under some condition (still thinking) +Flask
TODO: More custom logic and exclusions (like a pistol is a MEDIUM item, not a BIG one) - done
Last edited by star; Oct 29, 2020 @ 8:12pm