Project Zomboid

Project Zomboid

412 ratings
Smokers Delight 1.1 [Update 41]
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
7.468 MB
29 Sep, 2022 @ 2:42pm
11 Dec, 2022 @ 7:39am
3 Change Notes ( view )

Subscribe to download
Smokers Delight 1.1 [Update 41]

Description
Update 42
Since new update 42 have cigars and cigar boxes this mode becomes kinda obsolete.
It depends if cigars are a craftable item now.
Maybe mod will be updated and with proper code when stable version of 42 is released.

Description
Mod adds cigars devided by 3 most common colours (From Claro the lightest and the weakest to Maduro the darkest and the strongest and Colorado in between) boxes with 10 cigars in each box included.

Stats
Maduro cigar -15 stress, +15 happines
Colorado cigar -15 stress, +10 happines
Claro cigar -10 stress, +10 happines

Updates:
Version 1.1
-Changed colorado and claro stats
-Fixed conflicts with other mods with SuburbanDestribution (probably)

Compability:
It's relatively compatable with any mod.
But badly works with mods that change spawn rates, so the amount of cigars\cigar boxes would stick to vanilla settings (rare/common/abundant/etc.)
Smoker mod doesn't add any new functionality to cigars nor crafting recipies.

Mod Pack integration:
if you're making a mod pack for single player or multplayer server you're free to add and tweak the original mod to your liking.

How to manually change spawn rates
In order to change spawn chances you need to do the following
1. Go to mod folder Steam/steamapps\workshop\content\108600\2869248721\mods\Smokers Delight
(If Project Zomboid installed on another HDD/SSD search for "steamapps" folder and start from there)
2. Open this file "Smokers Delight\media\lua\server\items\SDelight-Distributions.lua" (Make a copy as a backup file)
(You can open it with Notepad or Notepad++)
3. After you opened SDelight-Distributions.lua, you have to manually set the spawn chances (I'll show you how, there are not much to change).

Here's the example, let's say we have a hiking bag spawn chance

Bag_BigHikingBag = {
rolls = 5,
items = {
"SDelight.MaduroCigarSingle", 2,
},
},

The only number you need to change is that after item name "SDelight.MaduroCigarSingle" in this case
Here we have 2% spawn chance, you can change it to any number from 0 to 100 including 0.1, 0.2 and etc.
Not necessary to change but you can also change rolls number
("rolls = 5" means how much times spawn chance is checked)
So if we have 5 rolls with 100% spawn chance

Bag_BigHikingBag = {
rolls = 5,
items = {
"SDelight.MaduroCigarSingle", 100,
},
},

We will have 5 Maduro Cigars in a bag. Basicly the number of rolls difines the maximum amount of one item (but you probably never find the maximum amount since the percentage I'v set is 10% at most)
There is also these lines of code

table.insert(ProceduralDistributions["list"]["BarCounterGlasses"].items, "SDelight.MaduroCigarBox");
table.insert(ProceduralDistributions["list"]["BarCounterGlasses"].items, 5);

But here it's even simplier you have the only number and thats the percentage
After finishing edits just save the file. It's safe to continue play in your world\server from now on any NEW found container should have a new spawn chances you've set
Hope that was clear enough. (Don't delete any commas, dots, brackets)


Workshop ID: 2869248721
Mod ID: SDelight
96 Comments
FecesDementia 15 Mar @ 7:59pm 
u should add weed
Jurld 10 Mar @ 11:50am 
Are you sure your instructions re: spawn rates are correct? In my experience, the number is a weighted value, not a percentage chance. The way your first example declaration for Big Hiking Bag is shown, the found bags will always spawn 5 cigars, just like the second example.

I'm not a lua expert but why declare it this way at all, and not use the table.insert method to add it to the existing definitions created by IS? My idea is that with this example, the big hiking bags that spawn will only ever contain 5 cigars?
Luck 16 Jan @ 10:54pm 
I think these 30 minutes should speed up time!! just like in metal gear! 5
Moth Detective 8 Jan @ 8:34am 
I love this mod, is there anyway you could update it to work in build 42?
Kazoo Commander 3 Dec, 2024 @ 7:32pm 
hell yeah
|_| Clyax 27 Oct, 2024 @ 11:33am 
@tilarium My point is that you could use this mod to smoke while doing other things.
tilarium 27 Oct, 2024 @ 8:30am 
Never used that mod, so no idea. Sorry
|_| Clyax 27 Oct, 2024 @ 3:57am 
tilarium 13 Mar, 2024 @ 1:14am 
Follow-up: I just checked https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3154853514&searchtext=smoke+length and it does list this mod as compatible.
tilarium 13 Mar, 2024 @ 1:12am 
The only problem with things like that is the game is limited to one action at a time. So while you're smoking for those 30 in game minutes, you literally can not do anything else. Not sure if the mods that effect smoking time length work with these or not but I imagine they would. Worth a shot at least.