Project Zomboid

Project Zomboid

388 vurderinger
True Smoking [B42]
12
2
4
2
2
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Filstørrelse:
Offentliggjort:
Opdateret:
891.957 KB
9. feb. kl. 0:18
18. juli kl. 19:41
79 ændringsbemærkninger ( vis )

Abonner for at downloade
True Smoking [B42]

Beskrivelse
True Smoking [B42]
This mod provides a more realistic and immersive smoking experience. Smoking is no longer a short action but now a tracked and passively handled mechanic where the stats and effects are distributed over time while smoking. There is also a optional Nicotine System that implements Addiction and Withdrawal

Smoking
Light a smoke as normal, any restrictive headgear will be taken off. After lighting, a moodle will appear tracking the progress of your smoke. You can take puffs manually or enable passive smoking and your character will take puffs when idle or when the smoke is about to go out!

Dynamic Burn Rate
The smoke will burn faster as you puff or move around, when idle it will slowly go out. If it goes out you can relight it to keep smoking. Smokes can be put out and saved for later, the amount left will be visible on the item tooltip. Cigars, pipes, and cigarillos are more effective than a single cigarette so you don't need to smoke the whole thing to get the same effects as a single cigarette!

Freedom
Lighting, puffing, and putting out the smoke are timed actions that your character performs, after a smoke has been lit you can now do whatever you like while smoking. Take puffs whenever you want but make sure your smoke doesn't go out or you will need to relight it or save it for later!

Nicotine System
The Nicotine system adds Nicotine, Addiction, and Withdrawal. This system allows the Smoker trait to be dynamically lost and gained based on Addiction levels. Nicotine is accumulated while smoking and leads to Addiction over time. Nicotine provides small amounts of fatigue and hunger reduction. Withdrawal causes small amounts of boredom and unhappyness gain. There are various traits that effect the metabolism rate of Nicotine on the player and your tolerance level varies based on Addiction. The more addicted you are the less effective smokes become at completely removing your stress. This system is completely optional and can be turned off in the Sandbox Options if desired.

Features
  • Save Game Compatible!
  • Controller support
  • Split-screen support
  • Compatible with Smoker Trait and most mods
  • Options and Settings configurable via Sandbox Options and Mod Options
  • All vanilla smokes compatible with visual item displayed on face!

Controls
Default Keyboard
K - Tap to take a short puff, hold to keep puffing. Will light a cigarette or unpack one. Relights the smoke when if it goes out. ; (semi colon) - Puts the smoke out. Re-equips headgear that was taken off.
Controller
Button prompts will appear when the corresponding action can be done. LB is a modifier key that when held changes the B action as follows below: LB + B = Get/Light Cigarette LB + B = Put Out Smoke / Re-equip headgear B = (Hold) Take Puff / Relight

Configurable
I have made most of the mod configurable through Sandbox Options and in-game Mod Options. Most features can be toggled, or tuned to your liking. All vanilla smoke items can have their properties changed to have different smoking times, burn characteristics and effectiveness. The Nicotine system which adds more depth to the Smoker trait can be tweaked or turned off completely if desired, this system also allows the Smoker Trait to be gained or lost over time. Moodles can be toggled off or on if desired. I review comments almost daily and add options and fix bugs as quickly as I can so feel free to leave feedback or requests. I would highly recommend checking the in-game Mod Options to help configure the behaviour of the mod to your liking as there are many options to help automate smoking or you can disable them to make it completely manual.

Mod Support

Most mods should be compatible, if not let me know and I'll look at making a patch. I've also added a config system for modders to directly integrate into the True Smoking system, some mods may require their authors to add a config to fully support their OnEat methods

Future Updates
  • Custom Animations
  • Mod support as requested and needed
  • Further tweaks, options, etc



[ko-fi.com]

Do not modify or redistribute my mod/code without consent, ask for permission. Treat this mod as on 'lockdown'

Credits
Credits to BongoRaccoon32 and CenturyOldRat for the wearable smokable assets
Thanks to everyone in the discord for their contributions in sharing modding knowledge

Translations
RU - M1ST0R
PTBR - Simba
KR, JP, TR, CN - Claude 3.7

Workshop ID: 3423984426
Mod ID: TrueSmoking
Populære diskussioner Vis alle (3)
118
12. juli kl. 19:33
FASTGJORT: Errors / Bugs / Issues
Ratamus
11
3. apr. kl. 8:36
FASTGJORT: Translations
Ratamus
4
4. juni kl. 21:43
FASTGJORT: Feedback
Ratamus
155 kommentarer
Ratamus  [ophavsmand] 22. aug. kl. 17:39 
Alcohol mod is something I want to do and would be fairly easy with this mod providing most of the framework already, THC I've thought about but it might be challenging to make it work with other mods providing their own effects, since there is so many weed mods im hoping someone will want to fully integrate and take it on themselves
chut527 22. aug. kl. 11:20 
Agree with n0ahrk. A version of the nicotine system for both alcohol and THC would be great.
Ratamus  [ophavsmand] 20. aug. kl. 22:04 
@Sur.Vival thanks for the update, ill try to reach out to them when I have some time so we can get it working sooner than later, im always up for making things compatible. Cheers! :praisesun:
Sur.Vival 20. aug. kl. 20:03 
Hi @Ratamus - just a quick update — the Green Fire author literally just posted a few minutes ago that they are actively working on native True Smoking compatibility.

I’ve also reported the conflict on their mod page, so both sides are now aware. Maybe this is a good moment to reach out to them again — since they already have permissions and code, some coordination between you two could really help bring proper integration sooner and avoid temporary half-fixes.
Ratamus  [ophavsmand] 20. aug. kl. 19:23 
@Sur.Vival I've looked into this issue before with Jiggas, it would be possible for a quick fix to avoid function conflict but the support would be half baked as Jiggas has a lot of spaghetti code and redundancy for how certain features are coded (smoke half for example). I might look into adding some support again in the future, I had reached out to the team working on the b42 version long ago to see if they would be open try and make things more compatible but I never received a response
Sur.Vival 20. aug. kl. 17:58 
There seems to be a conflict between [42] Jiggas Green Fire and True Smoking.

Conflict functions:

OnEat_Tobacco(food, character) (Green Fire)

Smokable:update() → self.callback(self) (True Smoking)

Root cause:
Green Fire’s OnEat_Tobacco expects (food, player) and uses character:HasTrait().
True Smoking assigns OnEat_Tobacco as a per-tick callback, but only passes self (a Smokable object). This makes character = nil and causes the error attempted index: HasTrait of non-table: null.

Would it be possible to make these two mods compatible (e.g. align callback parameters or isolate the functions)?
n0ahrk 19. aug. kl. 15:21 
dude you should recreate this entire mod for cannabis, and have a THC system with different levels of high, I think it's realistic to smoke as much as you want to get to a specific level of high that can be positive and or negative, I see so much potential in this mod thank you for making it- this is one of these things that should just be in the base game
Ratamus  [ophavsmand] 16. aug. kl. 22:52 
@Garrozh B42 only

@GzDaGhost Restart your game, check load order

@Vakho brooblyn Default keybind is 'K' to relight when the smoke goes out and the moodle is wiggling
vakho brooblyn 16. aug. kl. 7:41 
how do i relight the cigarette?
GzDaGhost 15. aug. kl. 23:28 
doesn't let me enable even tho i have all the required mods