Project Zomboid

Project Zomboid

Realistic Inventory
star  [开发者] 2023 年 3 月 12 日 上午 8:20
[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.
最后由 star 编辑于; 2023 年 3 月 12 日 上午 9:46
< >
正在显示第 1 - 1 条,共 1 条留言
star  [开发者] 2023 年 3 月 12 日 下午 12:00 
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
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50