Garry's Mod

Garry's Mod

788 个评价
Food and Household items [REWORKED]
3
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 实体
插件标签: 角色扮演, 写实
文件大小
发表于
更新日期
63.729 MB
2020 年 5 月 29 日 下午 7:06
2022 年 3 月 30 日 上午 10:17
3 项改动说明 ( 查看 )

订阅以下载
Food and Household items [REWORKED]

描述
Originally made for my own server but hey, why not share?
i have gone ahead and reworked the mod adding the following things;

-Added a config file at lua/config.lua where you can change the hunger-thirst-health values of each individual food
-Added support for Advanced Cooking Mod on GmodStore
-Fixed the VGUI icons
-No longer needs 2 seperate workshop mods for both models and the lua fix, standalone.

The default config for Advanced Cooking Mod is FALSE if you'd like to turn it ON unpack the .gma file and change it to TRUE

For developers > if you'd like to change a single foods value but the config has the item in a list of other entities (such as canned sodas etc.) you can simply add on to the value with simple maths.
like this.

!IMPORTANT!
You dont have to decompile the entire addon and have it on the server (unnecessary and will cause longer load times due to downloading the lua files etc. etc. etc.), you can simply copy the config.lua of the item you'd like to edit and have that on the /addons folder ie. addons/foodmod/apple/config.lua (no other file needed)
gmod will prioritize the local file first and apply that ignoring the workshop version.

activator:setDarkRPVar("Thirst",math.Clamp(thirst+appleJuicethirst3 + 5,0,100))
(thirst+appleJuicethirst3 + 5,0,100))
the +5 = add 5 more to the current value, the 0 and the 100 are for fixing the overheal etc.
PS: If you have characters with more than 100 hp on your server change to 100 accordingly (it'll effect everyone keep that in mind)

S/O
Paul For kindly allowing me to use his base code.
CHILI For the original mod back in 2012

64 条留言
cedricdblox 3 月 11 日 下午 10:11 
is it normal that the pizza part have texture problems
Roxanne Wolf 2 月 6 日 下午 4:08 
M i l k s h a k e s
Endangered Luke-Crab 2024 年 12 月 9 日 下午 1:19 
grab a soda! it will help you see faster!
ari da birb 2024 年 7 月 21 日 下午 6:20 
this mod gives me memories when i saw frisky the frog playing garrys mod and that grinder video had this mod! thanks sir for bringing old memories
2024 年 6 月 28 日 上午 7:47 
This mod causes micro freezes
MERCY_ALL 2024 年 6 月 14 日 下午 2:27 
Thanks for changing overcharging health glitch the other mod had, this is what I'v been looking for for months.
Hikan-Teki  [作者] 2024 年 2 月 17 日 下午 11:38 
@Shadowmus it already does replenish your health and you can tweak each value for each food to set how much they replenish health, i've decided not to overcharge health due to this mod mainly being used in roleplay scenarios which it would easily be abused by players to have infinite health in a darkrp server etc.
Shadowmus 2024 年 2 月 17 日 上午 11:40 
Wasn't there some way this would replenish or overcharge your health?
agedcoffee 2023 年 6 月 18 日 上午 6:39 
oooooooooooh so this was the food mod spy was using
carbonx7346 2023 年 2 月 9 日 下午 6:51 
hehhhheeeehehhehehh