Project Zomboid

Project Zomboid

ArsonBoy5996 Jul 17, 2022 @ 11:36pm
[Dynamic Traits Mod] Disabling Expanded Moodle Effects
Repost of a pinned discussion under the mod "Dynamic Traits" by Peppercat, which can be found here:
https://steamcommunity.com/sharedfiles/filedetails/?id=2459400130&searchtext=dynamic+traits

Someone was nice enough to create a guide for disabling the Expanded Moodle Effects Peppercat added in by default to her mod's files, which unbalanced the game a lot and added in a lot of effects that many people considered unnecessary (myself included).

I do love the mod and can't really see myself playing without it, these effects are just waaaay too much to handle and the result of a lot of cheap deaths in my games.

**NOTE: These changes need to be redone every time Peppercat updates her mod. It's definitely not perfect, but it's unfortunately all we have unless Peppercat decides to make it optional again.
=============================================================
ORIGINAL GUIDE:
This is what kills characters. The author has decided to enforce the use of the (previously) submod. If you are like me, and love the dynamic traits part, but dislike getting deathly ill from the slightest thing, like looting 50 corpses, do the following:

go to "your steam folder"\steamapps\workshop\content\108600\2459400130\mods\Dynamic Traits\media\lua\client

find DTMainFile.lua and open it with a text editor (notepad will do)

scroll down to

function DTEveryTenMinutesMain()

the following section triggers the expanded moodle effect functions, and if you add the double dash lines, it comments out the section = disables them:


-- fracturesIfHeavyLoad(player);
-- expandedWetnessMoodle(player);
-- expandedHasAColdMoodle(player);
-- expandedPanicMoodle(player);
-- expandedStressMoodle(player);
-- expandedSickMoodle(player);
-- increaseBodyWetnessByItemWetness(player);

-- DTOverdose.poisonByOverdose(player);

If you are using notepad++, the section will be in green text by default when successfully commented out.

This will disable the expanded moodle effects.



Alternatively, you could probably delete DTexpandedMoodleEffects.lua in the same folder, but that might cause errors (I haven't tested it).


Server owners will have to do this wherever server mod files are located. Unfortunately after every update of this mod as well, unless the author re-adds the option to enable expanded moodle effects in-game. You can test if you have successfully disabled this by backing up your save and downing a bottle of painkillers, vitamins or whatever else that kills you (which is handled by the DTOverdose.poisonByOverdose(player); function).
=============================================================
Again, not my original post and mainly posting it here due to Peppercat disabling comments/ discussion on the original mod's page.

Best of luck out there!
Date Posted: Jul 17, 2022 @ 11:36pm
Posts: 0