Project Zomboid

Project Zomboid

[B42] Bodily Functions [EA v0.12.3]
Showing 11-20 of 39 entries
< 1  2  3  4 >
Update: 6 Jun @ 11:43am

==============
[VERSION 0.11.0]
==============

- Moved wipeable items to BF_WipingConfig
- Added partial wiping if you don't have enough of a certain item.
- Added the need to use multiple of each item type for wiping. For example, to fully wipe with paper, you need 4 of them.

- Fixed clothing with "Pants_Skinny" body location not being taken off when defecating (for example, Jeans)

- Changed tooltip for soiled clothing from percentage number to progress bar
- Changed "Soiled (Pee):" to "Urinated:", and "Soiled (Poop):" to "Defecated:".

Update: 4 Jun @ 11:15pm

- Made peed / pooped overlay items invisible again
- Fixed bug where peeing / pooping underwear would cause errors

Update: 4 Jun @ 4:51pm

==============
[VERSION 0.10.0]
==============

- Changed "Bathroom" to "BF" prefix for item scripts
- Added all pill boxes to distributions:
- BathroomCabinet
- BathroomCounter
- MedicalClinicDrugs
- MedicalStorageDrugs
- SafehouseMedical
- Added crafting recipes for opening pill boxes.
- Medicine's tooltips are more accurate, showing that it just adds / removes from the value.

- Created "BF_ClothingConfig.lua" for new mapping of overlays to clothing items
- Renamed "BF_ClothingStains" to "BF_ClothingOverlays" and merged most of the functionality for simplicity (and better organization)
- Ensured no dirt on the body when player pees or poops themselves

- Changed "SuitTrousersMesh_Peed.png" to feature urine on the inner legs, as well as the back.
- Improved "Kate_SuitTrousers_Peed.fbx" to be significantly closer to the vanilla model. Less visible on the outside
- This also fixes the issue of poop overlays not being visible

- Made male and female pooped overlay textures translucent

- Added support for LongShorts_Peed and LongShorts_Pooped models
- Added support for ShortShorts_Peed and ShortShorts_Pooped models
- Added support for BoxingShorts_Peed and BoxingShorts_Pooped models
- Added support for Trousers_Peed and Trousers_Pooped models

- Deleted "Bathroom_PeedPants", previously used for testing the overlay system at the beginning.

- Converted all script files from CRLF to LF to try to fix a potential Linux OS issue.

Update: 2 Jun @ 2:44pm

==============
[VERSION 0.9]
==============

- Made urine puddle object not appear when peeing in bed
- Created Pills and Pill Boxes for
- Anti-Diarrheal Pills
- Laxative Pills
- Diuretic Pills
- Anticholinergic Pills
- Created BathroomFunctions.GetMaxBowelValue() and BathroomFunctions.GetMaxBladderValue() in BF_Utils.lua
- Added Russian language support (from M1ST0R)
- Added Espanol (ES) support (from AI, may be wrong, feel free to give suggestions on how to improve it)

Update: 25 May @ 7:06am

==============
[VERSION 0.81]
==============

Changed moodle icons for Urination and Defecation. Bowels went from a pile of poop to the bowels. Aimed for a more official B42 style.

Update: 24 May @ 8:58pm

==============
[VERSION 0.8]
==============

- Lots of script reorganization
- Fixed wiping items not being created
- Added mechanic where soiling yourself will first go through underwear, then pants. For example, peeing 5% in underwear will only add 5% severity in underwear, until you're at 100%, then it does 5% for pants.

- Organized BF_Urination and BF_Defecation more
- Changed "PeedOverlay" and "PeedOverlay2" to "PeedOverlay_Underwear" and "PeedOverlay_Pants"
- Changed "PoopedOverlay" and "PoopedOverlay2" to "PoopedOverlay_Underwear" and "PoopedOverlay_Pants"
- Fixed tags in pooped clothing overlays (PoopedOverlay)
- Fixed BF_ClothingStains to allow having two overlays at once for each function. So underwear and pants both get overlays at once.

- Added "Pants_Skinny" body location to BF_Lists. Allows them to be useable for urination / defecation.
- Added support for more clothing types

Update: 24 May @ 12:03pm

==============
[VERSION 0.7]
==============

- Added "RippedSheetsPooped" and "NewspaperPooped" items to Bathroom_SoiledWipes.txt
- Added support for all newspapers + Ripped Sheets in BathroomUtils.lua (for wiping)

- Added "MagazinePooped", "HottieZPooped", and "HunkZPooped" items to Bathroom_SoiledWipes.txt
- Added support for all magazines + all HottieZ mags in BathroomUtils.lua (for wiping)

- Fixed error where right clicking a toilet or outhouse toilet causes an error when you don't need to pee / poop

- Improved visuals of the BathroomCharacterInfo_GUIHandler tab ("Excretion" tab), includes gradient progress bars now.

Update: 24 May @ 8:53am

Fixed fallback version not showing

Update: 24 May @ 7:05am

Fixed mod to use "Bathroom Functions" instead of "Bathroom Functions DEV"

Update: 23 May @ 5:58pm

==============
[VERSION 0.6]
==============

- Renamed "changelog.txt" to "CHANGES.md"
- Updated fileGuidTable.xml to include pooped clothing
- Added RunSpeedModifier and DiscomfortModifier to peed / pooped overlay items.
- Added "Kate_Shorts_Peed.fbx"

============================
[ BathroomClothOverlays.lua ]
============================

- Now stores overlay types for both peed and pooped items using:
- wornItem:getModData().peeOverlayItemType
- wornItem:getModData().pooOverlayItemType

- Default overlay changed from "BathroomFunctions.SuitTrousersMesh_Peed" to "BathroomFunctions.BoxingShorts_Peed" (slightly safer, looks less weird for unadded clothing support)
- Added matching pooped overlay visuals for each peed overlay type
- Overlay only applies if peedSeverity or poopedSeverity is ≥ 25
- After equipping/unequipping, overlays are re-applied after a short delay to avoid conflicts

============================
[ BathroomFunctions.lua ]
============================

- Added new function: BathroomFunctions.OverrideSandboxMax()
- Adjusts BladderMaxValue and BowelsMaxValue based on player traits:
- SmallBladder, BigBladder, SmallBowels, BigBowels
- Automatically runs when the game starts via Events.OnGameStart.Add()

- Rewrote BathroomFunctions.UpdateBathroomValues()
- Now calculates urination and defecation rates with more realism.

- New factors affecting urgency:
- Thirst level (affects bladder urgency)
- Hunger level (affects bowel urgency)
- Stress level (increases both bladder and bowel urgency)
- Endurance level (nutrient need affects urgency)
- Random variation added

- Enhanced BathroomFunctions.HandleInstantAccidents()
- Added leak chance system that increases under: [ Drunkenness, Panic moodle level ]
- Players with UrinaryIncontinence or FecalIncontinence can leak at lower thresholds
- Leak chance can trigger self-urinate/defecate actions silently

- Modified BathroomFunctions.UrinateBottoms(leakTriggered) and DefecateBottoms(leakTriggered)
- Both now accept an optional leakTriggered flag
- Apply only 5% of full accident severity for leaks
- Pee/poop overlays only applied if severity ≥ 25
- Pee/poop objects only created if threshold met (not for small leaks)

- Improved BathroomFunctions.TriggerSelfUrinate(isLeak) and BathroomFunctions.TriggerSelfDefecate(isLeak)
- Both now accept isLeak parameter to differentiate between small leaks and full accidents
- Applies appropriate severity and messaging based on leak status

- Enhanced right-click context menu logic
- Added trait-based restrictions:
- ShyBladder, ShyBowels: Prevent peeing/defecating in public
- Paruresis, Parcopresis: Prevent peeing/defecating when watched
- Added helper function: BathroomFunctions.IsBeingWatched(player) to check nearby zombies or players

- Enhanced hygiene integration in BathroomFunctions.WashingRightClick(...)
- Tracks original name of soiled clothing using originalName
- Improved washing logic for soiled items

- Body overlay rendering improved:
- PeedOverlay, PoopedOverlay rendered above pants
- Additional layers for undies and pants-specific stains
- Ensures proper visual layering of pee/poop overlays

============================
[ SelfDefecate.lua ]
============================

- Added support for leak behavior with new constructor parameter: isLeak
- When true, only 5% of bowel content is released gradually during defecation (This allows small leaks without full accidents)
- Updated start() and update() to track initial defecate value and simulate gradual release
- Added new method: finishDefecation()
- Centralized logic to reset defecate value:
- Full reset (= 0.0) for normal defecation
- Partial reset (= 95% of original) for leak events
- Overridden stop() and cancel() methods to ensure finishDefecation() runs once
- Refactored perform() to call finishDefecation() before completing the action

============================
[ SelfUrinate.lua ]
============================

- Added support for leak behavior with a new constructor parameter: isLeak
- When true, only 5% of bladder content is released gradually during urination (this allows small leaks without full accidents)
- Updated start() and update() to track initial urinate value and simulate gradual release
- Added new method: finishUrination()
- Centralized logic to reset urinate value:
- Full reset (= 0.0) for normal urination
- Partial reset (= 95% of original) for leak events
- Overridden stop() and cancel() methods to ensure finishUrination() runs once
- Refactored perform() to call finishUrination() before completing the action

============================
[ WashSoiled.lua ]
============================

- Now properly restores the original name of a soiled item after washing:
- Retrieves originalName from the item's modData
- Sets the item's name back to its original value
- Clears the originalName flag after use
- Resets visual and physical state:
- Sets wetness = 100 (to simulate fresh washing)
- Sets dirtyness = 0 (removes all dirtiness)