Project Zomboid

Project Zomboid

48 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
39 Comments
Baby P 1 Oct @ 5:44pm 
@ira demon im having the same issue
ira Demon 28 Sep @ 5:30am 
Wonder if this works for the 42.12 smoker bug. seem's to happen again and again.
Kisheen  [author] 9 Sep @ 6:22pm 
The tobacco items call a special "OnEat" function that already differentiated between the items, but were never updated to utilize the 0.0-1.0 stress scale.
Laires 7 Aug @ 4:06pm 
As of current version of 42.11 I tested without this mod in debug and I couldn't replicate any stress increase related to Smoker/Fear of Blood/Cowardly while looting. Is it related to some special kind of conditions or is it fixed?

I tested the mod and the values for rebalanced smoker items all fit as advertised. I will use this mod to balance the different smoking tools since as you said they all reduce Stress to 0 including the Tobbaco Chew which does feel very unbalanced and currently I don't see a better mod to balance it.

I would like to ask, how did you change those Stress reducing values on the individual items? I tried changing them in the Script file by adjusting values myself, but anything above value of 1 reduced stress completely and I couldn't input anything below a full number as otherwise the game wouldn't even start. I was thinking of tweaking them a bit myself if I figure out how.
RudyTheNinja 22 Jul @ 2:45am 
More than half a year actually
https://gtm.steamproxy.vip/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