Garry's Mod
702 valoraciones
Food and Household items [REWORKED]
3
   
Premio
Favoritos
Favorito
Quitar
Content Type: Addon
Addon Type: Entity
Addon Tags: Roleplay, Realism
Tamaño
Publicado el
Actualizado el
63.729 MB
29 MAY 2020 a las 7:06 p. m.
30 MAR 2022 a las 10:17 a. m.
3 notas sobre cambios ( ver )

Suscríbete para descargar
Food and Household items [REWORKED]

Descripción
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

62 comentarios
Endangered Luke-Crab 9 DIC 2024 a las 1:19 p. m. 
grab a soda! it will help you see faster!
cheese hell diver 21 JUL 2024 a las 6:20 p. m. 
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 a las 7:47 a. m. 
This mod causes micro freezes
MERCY_ALL 14 JUN 2024 a las 2:27 p. m. 
Thanks for changing overcharging health glitch the other mod had, this is what I'v been looking for for months.
Hikan-Teki  [autor] 17 FEB 2024 a las 11:38 p. m. 
@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 17 FEB 2024 a las 11:40 a. m. 
Wasn't there some way this would replenish or overcharge your health?
peng 18 JUN 2023 a las 6:39 a. m. 
oooooooooooh so this was the food mod spy was using
carbonx7346 9 FEB 2023 a las 6:51 p. m. 
hehhhheeeehehhehehh
Fatal Liar 29 DIC 2022 a las 7:23 a. m. 
or comment the link to one please :missing:
Fatal Liar 29 DIC 2022 a las 7:23 a. m. 
can someone please make a taco prop ii beg