DayZ
ZenSleep
Showing 11-20 of 22 entries
< 1  2  3 >
Update: Jun 25, 2022 @ 1:57am

- Fixed NullPointer exception when drinking from wells
- Fixed Defines not working

(Thanks to @The Crimson Zamboni for these bug fixes!)

Update: Jun 15, 2022 @ 10:15pm

- Adjusted yawn code to *hopefully* stop some players from getting a permanent blurry screen after yawning due to what I believe is some sort of desync with post-processing effects.

Update: Jun 14, 2022 @ 11:47pm

- Changed fireplace detection from temperature-based to object-based (should now work on all maps regardless of ambient temperature)
- Changed "energy drink" consumption so that it affects energy level based on gradual consumption (allows you to share drinks with other players)
- Fixed some "energy drink" items not applying their added energy/penalty to energy correctly
- Fixed hotkeys in the DayZ settings UI for 1.18 update and removed default "P" key (players might want to use the new inbuilt emote hotkeys instead)
- Made JSON config file more organized into sections
- Slightly adjusted some default settings

To apply this update you'll need to backup your JSON config and then delete the JSON file. The mod will automatically regenerate a new config when you run your server.

The config file can be found in your server profile folder /Zenarchist/ZenSleepConfig.json

Update: May 22, 2022 @ 3:35am

- Stopped the "P" key (or any custom input key) triggering the sleep emote while a menu is open (like admin tools/chat window/etc)

Update: May 2, 2022 @ 7:57pm

- Hotfix for Namalsk servers. The mod will now automatically detect Namalsk and generate the default JSON config values accordingly so that fire detection works properly.
- For other winter maps - turn DebugOn=1 and sleep by a fire to see what temperature the fire is giving the player, and adjust OutsideFireTemp and InsideFireTemp accordingly.

Update: May 2, 2022 @ 1:16am

- Forgot to update the readme.txt & ZenSleepConfig.json files in the mod folder - fixed :)

Update: May 2, 2022 @ 1:07am

IMPORTANT PLAYER CHANGES:
- You can now use the lie-down emote ingame with a hotkey (keybind - P by default)
- Having wet clothes can now affect how well you rest and whether or not you get infected with influenza while sleeping

IMPORTANT SERVER CHANGES:
- Changed how the mod sends server-side config data to the client to be more efficient + allow reloading config without restart
- You can now update your server-side config and reload the settings from the client (keybind - Numpad 3 by default)
- To authorize your player to send reload commands, make sure to put your Steam 64 ID in the json config (AdminSteamID)
- Changed SleepBlackScreen to have two options. 0 = off, 1 = Black screen when sleeping, 2 = Blurry screen when sleeping
- Added NightTimeStartHour, NightTimeStartMin, NightTimeEndHour & NightTimeEndMin config settings - if value is above 0, this overrides night time detection (use 24 hour time)
- Added TirednessHudX and Y config settings - this can be used to move the tiredness meter to wherever you need it if the default settings conflict with other HUD elements.
- Eg. If the default tiredness meter overlays an existing HUD element from another mod, try setting TirednessHudX=0 to move the meter to directly below the stamina bar.

MINOR SERVER CHANGES:
- Added DebugOn verbosity option (set DebugOn=1 to receive ALL messages, set it to 2 for less detailed messages to prevent cluttering the on-screen text)
- Added InfluenzaMultiplierNightNoFire config setting (this multiplies InfluenzaInjectNoFire value if sleeping with no fire at night time - set to 1.0 to disable)
- Added InfluenzaMultiplierWetNoFire config setting (this multiplies InfluenzaInjectNoFire value if sleeping with wet clothes and no fire at night time - set to 1.0 to disable)
- Added MaxRestWhenWetDay config setting (this sets the max rest % override for sleeping with wet clothes during the day - set to 100 to disable)
- Added MaxRestWhenWetNight config setting (this sets the max rest % override for sleeping with wet clothes during the night - set to 100 to disable)
- Added WetnessCancelsFireAccelerator config setting (if player is sleeping with wet clothes, they do not sleep any faster even if a fire is nearby - set to 0 to disable)
- Added BaseSleepAccelerator config setting (this is how fast the player sleeps if no fire or rest object is nearby - 1.0x by default)
- Added some new language strings for the new wetness sleeping features (Str_RestUpdate5 & Str_CantSleep5)
- Added "#define ZenSleep" so that other modders can interact with this mod in their code more easily

To implement all of these changes into your server config, update the mod and then you will need to carefully copy your existing settings into the new JSON file. The new JSON file is included in the mod folder and will also be created automatically if you run your server without an existing one (so if you haven't changed any settings, just delete your existing ZenSleepConfig.json file to apply the new changes).

Update: Apr 27, 2022 @ 1:15am

- Removed some redundant testing code.

Update: Apr 27, 2022 @ 1:13am

- Improved tiredness modifier code to improve server-side efficiency
- Made it so the same yawn and sleep sound can't play in a row
- Improved text notifications for how warm the player is
- Accidentally uploaded first version with 2/3 same male yawn sounds (fixed)

Update: Apr 25, 2022 @ 5:03am

- Fixed a minor message inconsistency with sleeping by a fire and having the heat buff.