Project Zomboid

Project Zomboid

42 ratings
[B42] Smoker Stress Fixes
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
44.219 KB
30 Dec, 2024 @ 2:29pm
1 Change Note ( view )

Subscribe to download
[B42] Smoker Stress Fixes

Description
An attempt at fixing build 42 smoker trait bugs
(someone should probably report these bugs).

Characters have a 'basic stress' which can go from 0 to 100%, and then additional "stress from cigarettes" that can go from 0 to 51%.

  • Whenever an item was looted from a zombie, it would add the stress from cigarettes along with the action stress on every gametick
    • Now it should only add the appropriate stress to non-smoker stress.
  • Cigarettes and other tobacco products "when eaten" would reduce stress (for smokers only) by values more than 1, and stress only has a max of 1. All tobacco products still entirely remove cigarette-related stress
    • Chewing Tobacco now reduces basic stress by 20%
    • Cigarettes now reduce basic stress by 25%
    • Cigarillos/Cheroots and smoking pipes now reduce basic stress by 40%
    • Cigars now reduce basic stress by 100%

As of 42.3: They fixed the stress of being hemophobic and a smoker, but still have the stress added from looting in general commented out. They also introduced a bug that's not fixable outside of overwriting class files manually.
Workshop ID: 3396428390
Mod ID: SmokerStressFix
35 Comments
RudyTheNinja 22 Jul @ 2:45am 
More than half a year actually
https://steamhost.cn/steamcommunity_com/app/108600/discussions/6/3803904556905694957/
They've literally said it's an error in stress code but ig couldn't do a temp fix of just snipping it so there's only 1 stress counter till they get it to stop multiplying
Sovereign 26 Jun @ 10:07am 
I started B42, was super annoyed trying to figure out what was wrong with stress, got gaslit on the subreddit, so I just didn't play it. Coming back, holy shit it's still not even fixed? Wow. Dude. Wow. Thanks for this mod. Much appreciated.
Kisheen  [author] 23 Jun @ 7:43am 
I'm baffled at how this is still a problem. They made a new function to get smoker vs basic stress and then still aren't using it... for over half a year? This mod only changes the Lua of looting and tobacco items. Drinks and other 'entertainment' call Java code that I don't want to be asking people to overwrite.
Loccatpowersdog 21 Jun @ 9:22pm 
Stress bug still in full effect, other mods are also affected if they try to reduce stress while Player Character has smoker trait such as 'Reefer Madness'. Any radio/tv that gives a 'down' chevron will actually skyrocket it to max stress levels very quickly. I don't know how it actually works but whatever has been done in-game to separate smoker stress from other forms has caused most anything that reduces stress to seemingly (integer?) overflow in the opposite direction.
Λnonim 20 Jun @ 4:27am 
still not fixed even with the mod. unlucky
Givi 18 Apr @ 3:55am 
cool!!!!also checks mine cigarette mod guys
Loccatpowersdog 14 Mar @ 9:55am 
I've had it off trying to track the new coughing 'mechanic' and haven't noticed any insane 150% spikes but I've also all but avoided anything but Life & Living TV, no other radio/TV really.
Kisheen  [author] 14 Mar @ 7:34am 
I've not played or followed b42 in a while since my last comment. Are they still messing up stress? The problem on b42 launch was that everything was doing math wrong so all stress, boredom, unhappiness reducers were maximally efficient.
Kenterbee 14 Mar @ 6:29am 
I use more cigarettes with this mod than without. Less quality of life and more of a challenge run mod.
Loccatpowersdog 23 Feb @ 4:01pm 
Yeah something still skyrocketing my stress to like nearly 150% when I watch TV sometimes or seemingly randomly. Had this turned off after the patch notes but don't believe it either.