Skip to content

Sleep

Sleep gives a tired survivor their fatigue back. You lie down in a bed, on a sofa or on the floor, the screen darkens and the night passes. A good bed shortens the night, and the floor gives back only about 70 % of the fatigue spent.

In the game

Lying down

Right-click a bed or a sofa and choose Sleep, or choose Sleep on the floor in the radial menu. The driver's radial in a vehicle (V) has a sleep entry too.

The quality of the spot changes the length of the night:

Spot Quality
Double bed Good
Single bed Average
Sofa Poor
Plank bed you build Poor
The floor Floor

The host can refuse. It checks in this order, and greys the entry with the reason in its tooltip:

  1. "You are already asleep."
  2. "You can't sleep with zombies around." when a zombie is in sight, by the same sight test as panic.
  3. "Too much pain to sleep." when pain is at its second tier or worse.
  4. "Too scared to sleep." when panic is at its first tier or worse. Sleeping pills lift this refusal and no other.
  5. "You are not tired." when fatigue is above 70.
  6. "Someone is already there." when the spot is taken.

The night

The more fatigue you have spent, the longer the night, give or take some chance. A good bed takes an hour off and a poor one adds one, and the floor cuts the night to 70 %. The Short Sleeper trait scales it by x0.8 and Long Sleeper by x1.2. A night lasts between 3 and 16 hours.

The exact formula

Hours = a random value between t x 10 and t x 13, divided by 100, plus 1, where t is the fatigue spent (100 minus fatigue). The quality of the spot, the floor, Stat.Sleep.Duration and the bounds then apply, in that order.

Fatigue climbs back to 100 over the length the night would have in a bed, so on the floor you get up having recovered about 70 % of the fatigue spent. Meanwhile hunger and thirst run at half speed and wounds heal twice as fast.

For a host playing alone, time runs at x60: a ten-hour night takes about 12 real seconds at the default day length, and the speed picked before comes back at the end. A player who arrives meanwhile brings it back to x1, and the sleeper sleeps on. In co-op the world keeps its speed, even when every player is asleep.

Waking up

The sleeper wakes:

  • at the end of the night;
  • on a hit or a step;
  • on a loud noise, from further away the louder it is;
  • when hypothermia climbs a tier above the one they fell asleep in;
  • with the Wake up button.

A pistol shot within 1,500 uu, a shotgun blast within 4,500 uu or demolition close by wakes the sleeper. Footsteps and a hammer do not, and thunder never does.

The exact formula

A noise of the noise table wakes the sleeper when its loudness is at least WakeLoudness (1.5) and it is made within HearingRange (1,000 uu) x WakeHearing (0.5) x its loudness.

What players see

Every player sees the sleeper lying on their back, and a player who joins a game in progress sees it too. On a bed or a sofa the sleeper lies on it, along its length, and is back where they stood when they wake.

The sleeper's own screen darkens to 85 % in a second and shows the hour and Wake up.

The assets

The settings are in Content/ZombieSurvival/DataAssets/Status/Childs/DA_Sleep_Default. Sleeping itself is an endless timed action, DataAssets/Actions/Childs/DA_Action_Sleep.

Asset Property Default What it does
DA_Sleep_Default MinFatigueToSleep 30 spent Fatigue that must be spent before the host lets a survivor sleep.
DA_Sleep_Default QualityHours floor 0, poor +1, average 0, good -1 Hours added to the night by the spot's quality.
DA_Sleep_Default FloorFactor 0.7 Share of the night the floor gives.
DA_Sleep_Default MinHours, MaxHours 3, 16 Bounds of the night.
DA_Sleep_Default RandomMin, RandomMax 10, 13 Random range of the night's length.
DA_Sleep_Default HealFactor 2 Wound healing while asleep.
DA_Sleep_Default NeedsFactor 0.5 Hunger and thirst while asleep.
DA_Sleep_Default WakeLoudness 1.5 Quietest noise that can wake the sleeper.
DA_Sleep_Default HearingRange, WakeHearing 1,000 uu, 0.5 Range at which a noise wakes, before its loudness.
DA_Sleep_Default IgnoredNoises thunder Noises that never wake.
DA_Sleep_Default SleepTimeSpeed x60 Time speed for a host asleep alone.
Blueprints/ActorComponents/AC_Sleep BedYawOffset 180 Yaw added to the sleeper on a bed or a sofa. It is one value for every piece: change it if the head of your beds is at the other end.
DataAssets/Furniture/Childs/DA_Furniture_* SleepQuality see the table of spots Whether a piece is a sleeping spot, and how good.
DataAssets/Items/Childs/DA_Medicine_SleepingPills Effects Medicine.Sleep.Aid Lifts the fear refusal.

Change it

  • To make a bed, give a piece of furniture a SleepQuality other than Floor.
  • To change which noises wake the sleeper, set WakeLoudness and IgnoredNoises, or the loudness of a noise in the noise table.
  • To give a survivor shorter or longer nights, use the Stat.Sleep.Duration modifier, as the Short Sleeper and Long Sleeper traits do.