DayZ
ZenSleep
Showing 1-10 of 22 entries
< 1  2  3 >
Update: Feb 16, 2023 @ 5:49pm

Fixed black screen yawn effect not happening when player is tired unless the player slept first

Update: Feb 13, 2023 @ 9:50pm

Fixed sleep meter updating incorrectly whenever nearby player's tiredness level sync'd to clients.

Update: Feb 10, 2023 @ 5:43pm

*Actually* fixed sleep meter not updating upon login until the player slept first.

Update: Feb 6, 2023 @ 11:09pm

Fixed sleep meter not updating until player lies down

Update: Jan 27, 2023 @ 9:58pm

- Added compatibility for my Immersive Login mod (player logs in lying down with eyes closed)

Update: Jan 3, 2023 @ 11:30pm

- Added "AttenuateSound" config option (set to zero to disable sound attenuation while sleeping)
- Added 20-30 second delay before sound attenuation kicks in to simulate falling asleep
- Improved compatibility with Medical Attention mod (obviously turn MA sleep mode off as it conflicts)
- Other minor fixes I've forgotten, and began work on new and much improved version 2 of this mod :)

Update: Dec 24, 2022 @ 3:17am

- Improved compatibility for mods like Boomlay's sleeping mod which has a sleeping action attached to beds.
- Added sound attenuation to sleeping players - for now it is basically a flashbang effect, but as an audio engineering nerd I plan to significantly improve this in the future.

PS. I have become much more experienced at modding since creating this re-make while learning the ropes. The code here is "acceptable", but not optimal. By that, I mean it works, but it's like a functioning alcoholic. I plan to remake this mod from the ground-up when I have time - but for now, it is what it is, and if you're like me and love immersion - it works!

Stay tuned for "ZenSleep v2.0". I've already spent so much time on this mod my girlfriend wants to leave me, but I'm no quitter. Maybe late Q1/Q2 of 2023 I'll have a radical improvement for those who really like this mod. I may also be single by then, so if you're a hot DayZ gamer lady from Australia, hit me up

Update: Nov 8, 2022 @ 11:44pm

Fixed "OnlyShowSleepAbovePercent" setting not working properly, and this setting can now be used in conjunction with "OnlyShowSleepOnInventory"

So for example, you can set OnlyShowSleepOnInventory=1 to only display the tiredness meter when the user opens their inventory or lies down to sleep, and set OnlyShowSleepAbovePercent=60 to also show the tiredness meter when the player is 60% tired or more (ie. the sleep energy bar is in the lower 40% and the player is nearing the yawning stage).

This is just for those server owners who want to tidy up the player HUD a little bit since the player doesn't really need to know how tired they are all the time :)

For those with customized versions of this mod who may have modified my original code, the only changes I made are to a few lines of code in the file IngameHud.c

Update: Sep 18, 2022 @ 7:26pm

- Added new check for action-based sleeping in addition to gesture-based sleeping (now works with BoomLay's Things modded beds for example)
- Changed the immune system boost to only apply if the player has slept for at least 30 seconds, and is near a fire
- Changed config filename back to ZenSleep.json with a better config update mechanism for the future
- Converted all IsServer() calls to IsDedicatedServer() to optimize performance (only very slightly but hey, why not)

Update: Jul 31, 2022 @ 10:40pm

- Changed config file to "ZenSleep_v2.json" so your old config settings don't get over-written - transfer old config to the new config.
- Added option to give the player an immunity boost if they achieve a certain rest threshold (100% by default).
- Added option to recover health & blood faster when sleeping for longer than 30 seconds (set to 0 to disable).
- Changed how the player becomes tired over time based on certain physical activities they're doing:

EnableMovementPenalties=1: Set to 0 to disable movement penalties (this will make the player tired over time without being influenced by activities)
SprintUprightPenalty=1.2x: Player gets tired 20% faster when sprinting upright.
SprintCrouchedPenalty=1.15x: Player gets tired 15% faster when sprinting while crouched.
JoggingPenalty=1.10x: Player gets tired 10% faster while jogging.
ClimbSlowPenalty=1.5x: Player gets tired 50% faster while climbing ladders slowly.
ClimbFastPenalty=2x: Player gets tired 100% faster while climbing ladders quickly.
SwimSlowPenalty=1.5x: Player gets tired 50% faster while swimming slowly.
SwimFastPenalty=2x: Player gets tired 100% faster while swimming quickly.
WalkingHeavyItemPenalty=2x: Player gets tired 100% faster while carrying heavy objects (sheet metal, logs, basebuilding/storage items etc).

As always the latest source code is available on my github at www.zenarchist.io to do with as you please :) enjoy!