Project Zomboid

Project Zomboid

283 ratings
Meditation
3
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
10.880 MB
21 Nov, 2022 @ 11:29am
24 May, 2024 @ 9:05am
35 Change Notes ( view )

Subscribe to download
Meditation

Description
I am on an indefinite hiatus from Project Zomboid. Feel free to use my code for future mods, and feel free to update my mods for B42. Please do not reuse their exact names or mod id's to avoid confusion and bugs for B41 players. I can only guarantee my mods worked when used alone before B42 dropped. I will no longer be retesting them when people have conflicts. Thanks for the support over the years.

This mod brings meditation to Project Zomboid!

Meditation comes with a trait called "Yogi" that gives a +1 bonus to Lightfoot (making yogis move a bit quieter). All of the other effects of this mod are locked to players with this trait by default; however, in sandbox options, you may allow everyone to meditate exactly as yogis do!

By default, the option to Meditate will appear as an extra choice in the world context menu (the right-click menu); again, this will only appear for yogis unless the aforementioned sandbox setting is selected. For those who would prefer to always sit this way, there is an option in Mod Options that allows players to override the behavior of the vanilla "Sit on ground" option.

Meditation also includes a unique animation! This animation can be disabled using Mod Options after joining a server. This animation will override the vanilla sitting animation by default for anyone who can meditate; if you prefer requiring players to activate this animation via Mod Options, there is a sandbox option for turning the animation off by default.

Details

The act of meditating offers a range of possible benefits that can be toggled or adjusted in sandbox options:

1. Become invisible to zombies (SEE WARNINGS BELOW).
2. Recover endurance as though you have activated the vanilla resting mechanic.
3. Recover physical health (in terms of hunger, thirst, and fatigue) and ignore pain.
4. Recover emotional health (in terms of fear, panic, stress, anger, boredom, and happiness).
5. Enable dedication effects in sandbox options to base restoration rates on player habits!

All of these features will be OFF BY DEFAULT. Please check sandbox options carefully to adjust this mod to fit your preferences. Please note that even if you enable Meditative Recovery, the act of meditation will not reduce hunger or thirst until you change their recovery values in sandbox options. Meditative Recovery does not reduce hunger or thirst by default because I expect people to have mixed feelings about whether meditation should be allowed to affect hunger and thirst. I respect both sides: on the one hand, meditation wouldn't do much for a truly hungry person, because it's not magic or a sandwich; on the other hand, we're all playing a game, and multiplayer pausing is a lot better if you know you won't starve to death. Have fun your way, as far as I'm concerned.

Halo Notes

By default, a brief green message will appear above your player's head indicating certain state changes. These messages are intended to help new players track this mod's events. Halo notes may be off by default for you if you installed Meditation before the update that turned them on by default; they can be disabled using Mod Options.

Warnings

WARNING: One with the Force works by calling player:setInvisible(true), which can be flagged as cheating when called by someone who isn't an admin. You therefore MUST disable Anti-Cheat Type 12 in your server's ServerName.ini file in order to allow clients to make their own players invisible! For me, that file is in the following location:

%userprofile%\Zomboid\Server

ANOTHER WARNING: Your invisibility will be canceled if you press any buttons while your character is meditating. This is so that you cannot simply sit there and do things to draw zombie attention while you are invisible (thus exploiting the mod in an effort to gather zombies for a friend to kill them). If you would like to leave Project Zomboid running while you meditate for safety, you must Alt+Tab out of Project Zomboid immediately after you sit down to meditate, before your invisibility has become active. You have several seconds after activating "Sit on ground" to switch out of the application before input will cancel meditation. Pressing buttons while Zomboid is not in focus does not interrupt meditation on my PC, so, as far as I know, that should be safe.

Optional Features

As I mentioned above, meditation comes with several sandbox options. These options are described below.

Train for the Trait

Admins can enable the ability to gain the yogi trait (and thus access to its supernatural abilities) by simply meditating for a minimum number of in-game minutes. When this is enabled, meditation will be available to all players, but it will not grant any special abilities until players acquire the "Yogi" trait via practice or book-reading.

Must Read Before Training

Enabling this will require you to read a book from Mastering Yoga (below) before you can meditate and begin to train for the trait (and its special abilities).

Meditative Recovery

When players are allowed to use meditation for resting or recovering emotional health, server hosts may also decide whether players must refrain from pressing buttons in-game to receive these benefits. Remember, this feature is OFF by default. You must enable it in your sandbox options AFTER enabling this mod in your Main Menu!

Dedication Effects

I've added experimental (optional) adjustments to meditative recovery that depend on how frequently players meditate. If this is enabled, players who fail to meditate regularly (meditating less than 1 in 10 days) will recover at 75% of the rate listed in sandbox options. However, if players meditate more than 3, 5, 7, or 9 days out of every 10 days, they will recover at 125%, 150%, 175%, or 200% of the base rate, respectively.

Painless Recovery

You may now choose to allow players who can meditate to "ignore pain" while they are meditating. Pain will return quickly once meditation has ended, as the reality of wounds is only ignored, not eliminated.

Serenity Takes Practice

I've added an optional feature that requires players to maintain the highest tier of dedication in order to become invisible to zombies when they meditate.

Mastering Yoga

This Steam Workshop Item includes an expansion to Meditation called Mastering Yoga. The second mod will add four books to the game world: Mastering Yoga, Zen and the Art of Motorcycle Maintenance, the Neiye, and the Mandukya Upanishad. If you read at least 300 pages of one of these books, your character will gain the Yogi trait. To add this mod to a server that already uses Meditation, either go to the Mods section of your server options and add "Meditation - Mastering Yoga" (which appears directly below Meditation), or remove Meditation via Workshop Items and add it again.

Like this mod? Feel free to check out my other mods on the Steam Workshop!

[ko-fi.com]

Workshop ID: 2891623922
Mod ID: Meditation
Mod ID: MasteringYoga
Popular Discussions View All (4)
11
6 Jun, 2024 @ 8:11pm
Lifestyle Compatibility Support - Removes Sound Effect
Burryaga
9
14 Jan, 2024 @ 6:18am
Adding Yogi Trait Midgame by Admin Power
{playername(-1)}
2
19 Jan @ 3:41am
Translations
Burryaga
195 Comments
Burryaga  [author] 3 Jan @ 12:20pm 
Unfortunately, this mod might end up being one of the last I update for Build 42, mainly because the animations are entirely custom, made in Blender, and I will have to learn how to either recreate the animations or modify their scripts or both in order to make this mod work in Build 42. If anyone else wants to recreate the animations and use my code as a starting point, they're welcome to try. As long as you don't reuse the mod's name and id, I will be fine with it.

I am not really playing Build 42 until it has gamepad support and multiplayer. I bought Project Zomboid after both of those things existed, so the idea of playing an unstable update that doesn't have them is not super appealing to me. The mods that take the most effort to update will likely be the last mods I update.
vsnegupal 3 Jan @ 9:26am 
In build 42 the animations are broken, everything else seems to work. Please fix and update. Really need it in singleplayer.
Loot Bukkake 20 Dec, 2024 @ 12:00pm 
I'm sorry to hear that my dude. Good wishes to you in this time of grieving. I'd be lost without my lil gato
Burryaga  [author] 20 Dec, 2024 @ 11:48am 
No problem. My cat just passed away so I'm not eager to dump time into B42 before it's even stable slash finished, but I do plan to update my most popular mods when B42 is a little further along than it currently is.
Loot Bukkake 20 Dec, 2024 @ 11:40am 
I was way overthinking things; removing the dependency was a lot easier than I thought it would be. Unfortunately, it does not seem to be a plug-and-play fix of adjusting the file structure and moving on. Well, at least now you know for whenever you may come back! Thanks for the response either way and, as mentioned, I'll keep fingers crossed that this will be seen again in the future.
Burryaga  [author] 20 Dec, 2024 @ 11:25am 
I appreciate the interest, but I haven't been actively modding Project Zomboid and I am probably not coming back for 42 until multiplayer is back in 42, since I never really bought the game to play solo in the first place... That said, you could probably play with default mod options and disable mod options as a dependency, and the mod would in theory work if it is fully compatible with the new version of the game -- which I have not even begun to test and thus cannot verify, unfortunately.
Loot Bukkake 20 Dec, 2024 @ 9:35am 
Hello again, any chance to get this updated to B42? I tried adjusting the file structure myself, but it still has a dependency for Mod Options and I am unable to actually activate it as result. There is a built-in Mod Menu for B42, but I'm truthfully at the extent of my knowledge when it comes to making this work with that instead of the original Mod Options; Dhert has a tutorial though, hopefully that helps you more than it was helping me (3386860561). Thanks again for your work; hopefully we will see this mod in B42 soon!
Burryaga  [author] 12 Dec, 2024 @ 5:11pm 
See Mod Options to disable the sound.
Burryaga  [author] 12 Dec, 2024 @ 5:11pm 
Sorry for accidentally deleting the comment about it, but the sound effect is not from my mod. Lifestyle Meditation has the sound effect. However, this mod can disable the sound effect if you use it alongside Lifestyle.
Burryaga  [author] 30 Nov, 2024 @ 1:19am 
Nothing. They're entirely to teach yoga to people when they did not select Yogi and you enable the appropriate sandbox options.