Jump to content

Some food items take an unreasonable amount of time to eat


lichterloh

Recommended Posts

No, no head wound (sandbox with no zombies). In v40 small food items like Cherry or Radish or Strawberry are basically gone within one or two "chews" of the eating sound effect, the sound effect can't even play out completely before it's interrupted by the swallow sound - it's less than a second. Whereas in v41.14 it takes roughly 10 seconds with a noticeable pause between the chews and the swallow.

Link to comment
Share on other sites

Did some experimenting. There's usually a good correlation between hunger reduction and eating time, except for food with less than 10 hunger reduction:

 

 

Food Item Hunger Time
Mint Candy 2 9s
Cherry 3 9s
Radish 3 9s
Cookie 5 9s
Pickles 5 9s
Processed Cheese 5 9s
Strawberries 5 9s
Sunflower Seeds 5 9s
Raspberry Shortbread 7 9s
Bell Pepper 8 9s
Carrot 8 9s
Peanuts 8 9s
     
Lemon 10 2s
Modjeska 10 2s
Tofu 10 2s
Yogurt 10 2s
Zucchini 10 2s
     
Candy Cane 10 3s
Leek 12 3s
Tomato 12 3s
Corn 14 3s
Lettuce 15 3s
     
Waffles 15 4s
Banana 17 4s
     
Pancakes 20 5s
     
Pineapple 25 6s
SandwichTomatoLettuceHamPickles 36 9s
Watermelon 60 15s

 

 

It's as if the low hunger items are eaten too fast for the animation system so it falls back to a default value?

   
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
Link to comment
Share on other sites

  • 2 weeks later...

From checking the LUA, it looks like smaller food items (based on "hunger" value) will always be forced to the same consumption time as cigarettes:

 

steamapps\common\ProjectZomboid\media\lua\client\TimedActions\ISEatFoodAction.lua

o.maxTime = math.abs(item:getBaseHunger() * 150 * o.percentage) * 8;

if o.maxTime > math.abs(item:getHungerChange() * 150 * 8) then
    o.maxTime = math.abs(item:getHungerChange() * 150 * 8);
end

-- Cigarettes don't reduce hunger
if o.maxTime < 100 then o.maxTime = 450 end

 

I published a small mod to fix it on the Steam workshop, if you cannot wait for an official fix: https://steamcommunity.com/sharedfiles/filedetails/?id=1902015925

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...