Garry's Mod

Garry's Mod

840 rating
Food and Household items [REWORKED]
3
   
Penghargaan
Favorit
Difavoritkan
Batalkan favorit
Content Type: Addon
Addon Type: Entity
Addon Tags: Roleplay, Realism
Ukuran File
Diposting
Diperbarui
63.729 MB
29 Mei 2020 @ 7:06pm
30 Mar 2022 @ 10:17am
3 Catatan Perubahan ( lihat )

Berlangganan untuk mengunduh
Food and Household items [REWORKED]

Deskripsi
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 Komentar
cedricdblox 11 Mar @ 10:11pm 
is it normal that the pizza part have texture problems
Roxanne Wolf 6 Feb @ 4:08pm 
M i l k s h a k e s
Endangered Luke-Crab 9 Des 2024 @ 1:19pm 
grab a soda! it will help you see faster!
ari da birb 21 Jul 2024 @ 6:20pm 
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
28 Jun 2024 @ 7:47am 
This mod causes micro freezes
MERCY_ALL 14 Jun 2024 @ 2:27pm 
Thanks for changing overcharging health glitch the other mod had, this is what I'v been looking for for months.
Hikan-Teki  [pembuat] 17 Feb 2024 @ 11:38pm 
@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.
Jimbo 17 Feb 2024 @ 11:40am 
Wasn't there some way this would replenish or overcharge your health?
agedcoffee 18 Jun 2023 @ 6:39am 
oooooooooooh so this was the food mod spy was using
carbonx7346 9 Feb 2023 @ 6:51pm 
hehhhheeeehehhehehh