Project Zomboid

Project Zomboid

Realistic Inventory
star  [developer] Mar 12, 2023 @ 8:20am
[DEV] API
Real example (from Excrementum mod):
local RI = STAR_MODS and STAR_MODS.RealisticInventory if RI and RI.AddSounds then local effect = RI.AddSoundEffect { name = 'Exc_DropFeces', -- sound/Exc_DropFeces.ogg radius = 12, } RI.AddSounds { HumanFeces1 = effect, -- custom sound HumanFeces2 = effect, HumanFeces3 = effect, BathTowelDirty = 1, -- default sound DishClothDirty = 1, PaintTinDefecate = 12, -- 12 = bucket sound BucketDefecatedFull = 12, BucketDefecatedDirty = 12, PaintTinDefecatedDirty = 12, PaintTinDefecate = 12, BucketFullDefecate = 12, BucketDefecatedDirty = 12, PaintTinDefecatedDirty = 12, } end

Also you have access to local tables using STAR_MODS.RealisticInventory table. See the code for details.
Last edited by star; Mar 12, 2023 @ 9:46am
< >
Showing 1-1 of 1 comments
star  [developer] Mar 12, 2023 @ 12:00pm 
Pockets for Custom Clothes
local RI = STAR_MODS and STAR_MODS.RealisticInventory if RI and RI.AddSounds then RI.AddPockets(RI.IS_SHIRT, { Shirt_Test1 = 300, Shirt_Test2 = 400, }); end
< >
Showing 1-1 of 1 comments
Per page: 1530 50