Project Zomboid

Project Zomboid

32 ratings
Tobacco+ Hotkey
4
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.725 MB
28 Jan @ 2:27pm
19 Jun @ 2:17pm
25 Change Notes ( view )

Subscribe to download
Tobacco+ Hotkey

Description
Tobacco+ Hotkey

With this mod you can assign hotkey to SMOKING and CHEWING tobacco (and other smokeable or other tobacco products) - moreover you get to choose which of the product to use (i.e. a cigarette or a cigar) by conveniently showing you a dialog menu (now there's only one hotkey that shows radial menu where you choose the kind of item to use, followed by modal for selecting desired specific item).

If there's only one item of that type in your inventory, the mod automatically uses it — with appropriate visual feedback (text or icon, or both - your call, set it in mod options tab).

The mod now should handle every smokable item - vanilla or added by mods! If you however spot an item that is smokable and it's not supported, please let me know!

This mod is ONLY compatible with build 42!
It is - in theory - completely safe to add or remove from an existing save.

Setup

Go to: Options -> Mods -> (scroll down to) Tobacco Hotkey+
From there, you can:
- assign the hotkey
- customize in-game dialogues
and more...

and then simply enjoy!

Don't forget to leave your feedback in the comments!




Usage Instructions

Assing a hotkey to smoke:
- rolled cigarette
- cigarette
- cigar
- cheroot
- tobacco filled pipe
- tobacco filled can pipe

etc., essentially everything you can smoke in game and in the following supported mods (not required but recommended):
- Hemp & Tobacco
- N&C's Narcotics
- Cluvius brand crack cigarettes
- Clove cigarettes
- SKAL smokeless tobacco (the American equivalent of European snus I believe)
- ReeferMadness
- SupportCorps
- HGO

If you cannot find smokes anywhere, then mods worth mentioning for you are:
Where Are My Zang Cigs?!
Smoke Like It's '93

You must have a lighter in your inventory or backpack to smoke, obviously. Disposable lighter, BBQ lighter, matches, or a lit candle will do the job aswell. Now the lighter and cans of smokeless tobacco will be put back to the container they were pulled from! The character lets you know if he/she does not have a specific item that much needed to finally release the stress levels. All these dialogues are personalizable (is that a word?) in mod options tab.




Current Mod Conflicts:

There should be no mod conflicts since I got rid of any vanilla-editing scripts!

Future Plans:
None, wish to get going with my new project already.




Feedback and Support

This is my first mod, so your feedback is highly appreciated!
If you encounter any issues, please report them in the discussion thread.




Language & Translations

The mod comes out of the box with English and Polish localization.
Currently there's also Russian localization.
Feel free to provide translations in your language, and I'll gladly add them!




ver. 2.1.0

Forged in suffocating passion, where the axe hangs heavy
— by pimatstudio

[ko-fi.com]

Every tip means the world to me, it really does!



Be sure to check out my other mods from the QoL factory!








Workshop ID: 3416588496
Mod ID: myTobaccoHotkeyMod
Popular Discussions View All (3)
3
12 Feb @ 6:26pm
Bug reports
pimatstudio
1
16 May @ 4:29pm
Translations
pimatstudio
0
6 Feb @ 4:29am
Adding smokeable/chewable items from your mod
pimatstudio
54 Comments
pimatstudio  [author] 29 Jun @ 9:11am 
We're just 10 subscriptions short of reaching 1000 users, YOWZA!

I promise to (attempt to) port the mod to B41 once we reach that threshold :)
pimatstudio  [author] 16 Jun @ 2:25am 
OK, the easiest way out of the problem would be for me to make a custom version of the mod. All it takes is replacing player:Say() into return statements. I can send it to you and give you instructions how to run the mod from your PC but you'll have no updates coming your way if you decide to use it, it's fixed on your PC then.

I sent you an invitation to friends, hit me up once you accept it and I'll send you the custom version.
OxTailSafu 15 Jun @ 5:23pm 
I may have to do that, although putting a single space in the text box didn't work. It still states nil despite that.
pimatstudio  [author] 15 Jun @ 4:55pm 
Oh, in this case this can be done, sure, but sadly when you put such option in mod options it would reset itself with all the other options when that purge occurs. I've no idea where else to put such option, technically it could be done but that's using sledgehammer to crack a nut, you'd have to have an ini fiile that holds your strings that you'd want to use, but then you'd have to have some sort of a system to read from it aswell...

Frankly I'd consider reducing the number of your mods, if you've a few, cause lemme tell you, once I got rid of a lot of mods I didn't really need, my game loads way faster, and I didn't tell you but I also had that problem with mod options resetting, this way I know that you can recover them from the ini backup. And the problem stopped once I reduced the number of my mods

So lemme know how the option with the space goes, I think it might work.
OxTailSafu 15 Jun @ 3:43pm 
Oh I don't think it needs to be blank by default, cause I do agree with that. I was moreso just thinking of a toggle that you can click that would turn them off that you can then save. I'll definitely try the space option however.

Thank you also for the guidance regarding saving mod options! I'm not really sure why it happens on my end, but I'm hoping it'll save me a bunch of headaches in the future! :)
pimatstudio  [author] 15 Jun @ 2:17pm 
If I understand correctly, you're asking if it's possible to make it blank by default, but then the new users would have no way of knowing that this option is configurable, and hence it could cause them to think the mod's not working at all, since there's no visual feedback.

You can set the text to be blank I believe by entering a space in the textbox :) but if you're struggling with the mod options retracing to defaults, then this should not happen normally at all. My advice is to copy the modOptions.ini file which you can find is C:\<username>\Zomboid\lua folder, but first enable ALL the mods that you set settings for and set them according to your will so that they get recorded in the file, and then when the settings get reset (for some reason which should not be the case as I said), just replace the file with the backup.

Hope that helps!
OxTailSafu 15 Jun @ 12:36pm 
Do you think there's a way to completely disable the text that appears when you're out of smokes/lighters? I understand you can just delete all the text in the box, but that simply causes the text nil to appear. I mainly ask since there are times my settings end up resetting (such as when entering a new save to test mods and I don't end up enabling this mod in that save).
pimatstudio  [author] 6 Jun @ 5:55am 
Thanks for your report. I'll keep that in mind though big thanks to anyone who can double down on this since it's odd but thanks for reporting anyways :)
Im BioShocked 5 Jun @ 2:25pm 
If you change the text for smoking (those 9 lines you customize) you get a LUA error and the game wont load the main menu... im unsure if its a conflict with another mod or not but it work without changes but crashes once you do.
gamberomadness 25 May @ 10:40am 
Thanks pal!
Sure, I'll keep on using 42.6 for a while and report if something breaks, but its working like a charm for now :)