Clothing and temperature¶
Clothes stop bites and scratches and keep the survivor warm and dry. An attack can tear a hole in them, and a hole lets the next bite through and the cold in. You rip old clothes into rags, patch and pad what you wear, and carry more in a backpack and a shoulder bag.
In the game¶
Wearing¶
A survivor has seventeen slots and wears one piece per slot. Left-click a piece in the bag to wear it (2 s), or a worn piece, listed under the bag, to take it off (1.5 s). A step or a hit cancels both.
The piece that was in the slot goes back to the bag, even past the weight ceiling. An item that is not clothing is refused with "You can't wear this.".
A few pieces slow you down. The leather jacket costs 2 % of sprint and swing speed, and the insulated parka 4 % of sprint speed and 5 % of swing speed. The steel-toe boots slow sprinting to x0.97 and the hiking backpack to x0.98. The holster covers and protects nothing. It opens the Holster weapon position.
Protection¶
When a zombie bites or scratches, or another player hits, every layer that covers the zone struck and has no hole there rolls its own chance to stop the attack: its bite defence against a bite, its scratch defence against a scratch or a player's melee blow, its bullet defence against a gun. Each is 0 to 100, padding included, and one success is enough.
A stopped attack leaves no wound and no infection, and deals a quarter of its damage. One that gets through deals its full damage and leaves its wound. The Tough Hide trait spares the survivor that wound with a chance of 0.2. There is no armour beyond clothing: each layer stops an attack or lets it through.
The Protection tab of the character window (P) draws the 17 body zones: grey with no defence, bluer as the scratch defence nears 100 %, orange as soon as a layer has a hole there. Hover a zone for its defences and the pieces that cover it.
Holes¶
Stopped or not, an attack may tear one hole, in the outermost layer that covers the zone and has none there yet. Each piece has its own chance of a hole, listed in the table of pieces, and some never tear. Holes need the Clothing holes game option, which is on in all three presets.
A holed zone gives neither defence nor warmth on that layer, no longer counts as covered for blood and dirt, and shows the skin. A piece of clothing never stacks with another, and keeps its holes, patches and stains in the bag, on the floor, in a container and in every save.
Sewing¶
Right-click a piece you wear or keep in the main bag, not in a worn bag. Four entries of its menu use the Tailoring skill, and the last three name the zone they act on.
- Rip (3 s, in the main bag only) gives pieces of the fabric, as many as the table of pieces says, and one more every four Tailoring levels. A cotton piece with blood or dirt on it gives dirty rags. Denim and leather give the same strip either way.
- Patch: … (4 s) closes a hole with a piece of fabric, a needle, which you keep, and one thread, which is used up. The zone gets its defence and warmth back.
- Pad: … (4 s) sews a piece onto an intact zone, one per zone, and adds the fabric's padding to that layer's defence: half of it at Tailoring 0, all of it at level 10.
- Remove patch: … (2 s) gives the piece back 10 % of the time at Tailoring 0, and 60 % of the time at level 10. A patch over a hole reopens the hole.
The exact formulas
A pad adds the fabric's padding x (0.5 + level / 20). A removed patch gives its piece back with a chance of 0.1 + 0.05 x level.
| Fabric | Ripped with | Gives | Padding (bite / scratch) |
|---|---|---|---|
Cotton (DA_Fabric_Cotton) |
bare hands | Rag, or Dirty Rag | 5 / 15 |
Denim (DA_Fabric_Denim) |
Scissors, Kitchen Knife or Taped Knife | Denim Strip | 10 / 25 |
Leather (DA_Fabric_Leather) |
Scissors, Kitchen Knife or Taped Knife | Leather Strip | 20 / 35 |
The scissors or the blade must be in the bag, and a piece with no fabric cannot be ripped. The game picks what it sews with: a clean piece of the garment's own fabric, then any clean piece, then a dirty one. The refusals are "You need scissors or a blade.", "You need a needle and thread.", "You need a rag or a strip of fabric." and "Nothing to sew there.".
Ripping earns 1 Tailoring point and patching or padding 3, with a guard of 5 s per gesture.
Blood and dirt¶
Blood and dirt are counted per zone, from 0 to 255, on each worn piece and on the skin. From outside they land on the outermost layer that covers the zone, or on bare skin. From the body they land on the skin and the innermost layer.
- A melee blow you land splashes 5 on your head, upper torso, forearms and hands. A gunshot does not.
- Work dirties the forearms and hands, at a rate per second set on each action.
- Rain dirties the shins and feet of a survivor outdoors, faster as it gets heavier, from an intensity of 0.1.
- A wound adds 20 to its zone, and each bleeding wound 0.5 a second.
Stains only matter to wounds. The more blood and dirt on the innermost layer over a wound, or on the skin, the faster its infection grows: a jeans leg soaked in blood doubles it. A tooltip says "Bloody" or "Dirty" once a zone reaches 25, and the mesh of a piece shows the average of the zones it covers.
The exact formulas
A wound's infection grows x (1 + (blood + dirt) / 255 x DirtyInfectionFactor), counted on the
innermost layer over its zone, or on the skin.
A blow you land splashes BloodPerHit x HitBloodFactor. Work adds its action's
DirtPerSecond, and rain DirtPerRainSecond x its intensity per second.
Wash yourself, at a pond or at a kitchen sink while the water runs, cleans the skin and the clothes you wear, not those in the bag. A save keeps the stains of a piece, not those of the skin.
Bags¶
The Hiking Backpack and the Daypack go in the Backpack slot and the Shoulder Bag in the Satchel slot, so a survivor can wear a backpack and a shoulder bag at once. Each worn bag has a tile at the right edge of the inventory window. Click it and the list shows that bag alone, under its name, load and capacity ("Daypack 0.8 / 10.0 kg").
- Put in Daypack, or a drag onto the bag's tile, moves a row into the bag. Take out, a left click or a drag onto the first tile moves it back.
- A bag never holds more than its capacity, and what it holds weighs 30 to 60 % less on your load, depending on the bag.
- A bag you take off falls at your feet with its contents. An empty one goes into your bag.
- A full bag on the floor cannot be picked up ("Wear it to carry what is inside"). Right-click it in the loot window and choose Wear (2 s).
- What a worn bag holds reaches its owner only. A bag on the floor shows its contents to everyone.
Body temperature¶
The body has a core temperature, 37 °C at rest, and a wetness from 0 to 100. The further the air you feel is from the comfort temperature, 22 °C, and the less you wear, the further the body drifts from 37 °C, a little every game minute. Wind makes the air feel colder unless your clothes stop it, wet clothes insulate less, and effort and sickness warm the body by up to 1 °C and 3 °C. The Weathered trait scales the drift by x0.6.
Outdoors at 2 °C, in the wind and the rain, a survivor in a T-shirt heads for 33.8 °C and reaches 36 °C in 19 game minutes, about 24 real seconds at the default day length.
The exact formula
Each game minute the temperature closes ResponseRate (0.02) of the gap to a target:
- target = 37 + (felt air -
ComfortAir) x (1 - insulation) xExposureFactor, plus up toExertionHeatfor the endurance spent and up toFeverMaxfor sickness; - felt air = the air temperature of the clock, minus the wind (0 to 1) x
WindSpeedScalex (1 - wind resistance) xWindChillFactor, plus the warmth of heat sources; - insulation = for each of the 17 zones, the sum of the
Insulationof its layers without a hole, times (1 - wetness / 100 x 0.5), averaged over the body.
Wind and water resistance combine like the defences, layer over layer.
Stat.Temperature.Exposure scales how far the target strays from 37.
Under a roof there is neither rain nor wind, and the air is pulled 60 % of the way toward 18 °C. A roof is anything within 800 uu straight above the head. The houses of the map and what you build count. Trees do not.
Outdoors, rain at full intensity wets a body with no water resistance by 2 a game minute. Lighter rain and water-resistant clothes cut that in proportion, and snow wets a third as much. The body dries by 0.5 a minute under a roof, half as fast outdoors without rain, and three times as fast near a heat source. A lit torch gives 3 °C of felt air at the body, fading to nothing at 300 uu, in your hand or in a companion's. The campfire is a heat source too.
Four statuses follow. The first tier of each only warns.
| Status | Tiers from | Tier names | Effects of tiers 2, 3 and 4 |
|---|---|---|---|
| Wet | 15, 40, 70, 90 | Clothes moist, Clothes wet, Clothes soaked, Wet to the skin | none of its own: wetness lowers insulation |
| Hypothermia | below 36.0, 35.0, 30.0, 25.0 °C | Cooling down, Shivering, Numb with cold, Frozen to the bone | walking and swings x0.9; x0.8; x0.7 and 0.1 health per game minute |
| Hyperthermia | above 37.5, 38.5, 39.0, 40.0 °C | Warming up, Sweating, Burning up, Heat exhaustion | thirst x1.5 and endurance cost x1.2; x2 and x1.5; x3, x2 and 0.1 health per game minute |
| Wind chill | 10, 30, 60, 85 | Cool breeze, Cutting wind, Biting wind, Bitter gale | none of its own: the wind already cools the body |
Wind chill is four times the degrees the wind takes off the felt air, and only counts below the
comfort temperature. The two coldest tiers of hypothermia are out of reach in the shipped
climate: with ExposureFactor at 0.12, Numb with cold and Frozen to the bone need a felt air
near -50 °C.
The Temperature tab of the character window shows the 17 zones from blue (bare) to orange (insulation 1), the body temperature and the wetness with their tiers, "Sheltered" or "Outdoors", and the outfit's wind and water resistance. Hover a zone for its dry insulation.
With the Body temperature game option off, the body stays at 37 °C. It still gets wet and dries, and Wet still shows.
Death, saves and co-op¶
At death every worn piece comes off with its holes, patches and stains. A bag that holds something falls in front of the body with its contents, and the rest joins the ring of items around it.
A save keeps what you wear, what your worn bags hold, your statuses, body temperature and wetness, and the bags on the floor with their contents.
In co-op every player sees what the others wear, with its holes and stains, and the blood and dirt on their skin, even after joining a game in progress. Statuses, body temperature, wetness and shelter reach their owner only.
The assets¶
A piece is an ordinary item of the category Clothing whose ClothingDef points at a
PDA_ClothingDef in Content/ZombieSurvival/DataAssets/Clothing/Childs/. Thirty-three ship:
twenty-nine garments, three bags and the holster.
Defences are in percent, and so are insulation, wind and water resistance, which the Data Asset holds from 0 to 1. The fabric column gives the pieces ripped at Tailoring 0, and the holes column the chance of a hole per attack. A bag shows its weight, then its capacity and how much lighter its contents count.
| Piece | Slot | Covers | Bite / scratch | Insulation, wind, water | Fabric (rip) | Holes | Weight (bag / worn) |
|---|---|---|---|---|---|---|---|
| Underwear | Underwear | groin, lower torso | 0 / 1 | 2, 0, 0 | Cotton (1) | 50 % | 0.05 / 0.025 kg |
| Socks | Socks | feet | 1 / 2 | 5, 0, 0 | Cotton (1) | 50 % | 0.05 / 0.025 kg |
| T-Shirt | TShirt | torso | 3 / 8 | 10, 5, 0 | Cotton (2) | 45 % | 0.2 / 0.1 kg |
| Long-Sleeve Tee | TShirt | torso, arms | 3 / 8 | 15, 5, 0 | Cotton (2) | 45 % | 0.25 / 0.125 kg |
| Button-Up Shirt | Shirt | torso, arms | 4 / 10 | 15, 10, 0 | Cotton (3) | 40 % | 0.3 / 0.15 kg |
| Flannel Shirt | Shirt | torso, arms | 6 / 14 | 25, 15, 0 | Cotton (3) | 35 % | 0.45 / 0.225 kg |
| Knit Sweater | Sweater | torso, arms | 5 / 12 | 40, 20, 0 | Cotton (3) | 40 % | 0.6 / 0.3 kg |
| Hooded Sweatshirt | Sweater | head, torso, arms | 5 / 12 | 35, 25, 0 | Cotton (3) | 40 % | 0.6 / 0.3 kg |
| Denim Jacket | Jacket | torso, arms | 15 / 30 | 25, 35, 10 | Denim (3) | 25 % | 1.0 / 0.6 kg |
| Canvas Work Jacket | Jacket | torso, arms | 20 / 40 | 35, 45, 20 | Denim (3) | 20 % | 1.2 / 0.7 kg |
| Leather Jacket | Jacket | torso, arms | 30 / 50 | 30, 65, 40 | Leather (2) | 15 % | 1.8 / 1.1 kg |
| Insulated Parka | Coat | head, torso, arms, groin, thighs | 15 / 30 | 75, 80, 50 | Cotton (4) | 30 % | 2.0 / 1.2 kg |
| Rain Jacket | Coat | head, torso, arms | 4 / 10 | 10, 60, 95 | none | 50 % | 0.5 / 0.3 kg |
| Jeans | Pants | groin, thighs, shins | 10 / 25 | 20, 30, 0 | Denim (3) | 30 % | 0.8 / 0.5 kg |
| Work Trousers | Pants | groin, thighs, shins | 12 / 28 | 25, 30, 0 | Denim (3) | 25 % | 0.9 / 0.55 kg |
| Track Pants | Pants | groin, thighs, shins | 4 / 10 | 25, 10, 0 | Cotton (3) | 45 % | 0.5 / 0.25 kg |
| Shorts | Pants | groin, thighs | 3 / 8 | 5, 0, 0 | Cotton (2) | 45 % | 0.25 / 0.125 kg |
| Running Shoes | Shoes | feet | 5 / 15 | 10, 0, 0 | none | 35 % | 0.7 / 0.4 kg |
| Steel-Toe Boots | Shoes | feet, shins | 25 / 45 | 25, 0, 60 | Leather (1) | 10 % | 1.6 / 1.0 kg |
| Work Gloves | Gloves | hands | 10 / 25 | 10, 0, 0 | Denim (1) | 30 % | 0.15 / 0.075 kg |
| Leather Gloves | Gloves | hands | 20 / 35 | 15, 20, 0 | Leather (1) | 20 % | 0.2 / 0.1 kg |
| Wool Scarf | Neck | neck | 8 / 15 | 15, 20, 0 | Cotton (2) | 35 % | 0.15 / 0.075 kg |
| Knit Cap | Hat | head | 2 / 5 | 15, 20, 0 | Cotton (1) | 45 % | 0.1 / 0.05 kg |
| Baseball Cap | Hat | head | 1 / 3 | 3, 0, 0 | Cotton (1) | 45 % | 0.1 / 0.05 kg |
| Hard Hat | Hat | head | 20 / 40 (bullet 5) | 5, 0, 0 | none | never | 0.4 / 0.3 kg |
| Bandana | Mask | head | 1 / 3 | 2, 0, 0 | Cotton (1) | 50 % | 0.05 / 0.025 kg |
| Dust Mask | Mask | head | 0 / 2 | 0, 0, 0 | none | never | 0.02 / 0.02 kg |
| Glasses | Eyes | head | 0 / 2 | 0, 0, 0 | none | never | 0.05 / 0.05 kg |
| Safety Goggles | Eyes | head | 2 / 5 | 0, 0, 0 | none | never | 0.1 / 0.05 kg |
| Hiking Backpack | Backpack | none | never | 1.5 kg; 18 kg, contents 60 % lighter | |||
| Daypack | Backpack | none | never | 0.6 kg; 10 kg, contents 40 % lighter | |||
| Shoulder Bag | Satchel | none | never | 0.5 kg; 8 kg, contents 30 % lighter | |||
| Holster | Holster | none | never | 0.3 / 0.3 kg |
"Torso" is the upper and the lower torso, and "arms" the upper arms and forearms. The hoods of the sweatshirt, the parka and the rain jacket count as covering the head.
Starting outfits¶
A new survivor starts in the outfit picked on the OUTFIT row of character creation. Its
default, Occupation outfit, is underwear and socks, then the StartingOutfit of the occupation,
or DefaultOutfit when the occupation has none. On Pine Hollow the other clothes come from the
loot tables: bedrooms, wardrobes and dressers hold them.
| Occupation | Outfit, on top of underwear and socks |
|---|---|
| Drifter | Long-Sleeve Tee, Hooded Sweatshirt, Jeans, Running Shoes, Knit Cap |
| Handyman | T-Shirt, Canvas Work Jacket, Work Trousers, Steel-Toe Boots, Work Gloves |
| Paramedic | Button-Up Shirt, Work Trousers, Running Shoes |
| Courier | T-Shirt, Track Pants, Running Shoes, Baseball Cap, Shoulder Bag |
| Bouncer | T-Shirt, Leather Jacket, Jeans, Steel-Toe Boots |
| Gunsmith | Flannel Shirt, Jeans, Steel-Toe Boots, Safety Goggles, Holster |
| Butcher | Button-Up Shirt, Jeans, Steel-Toe Boots |
| Mover | T-Shirt, Work Trousers, Running Shoes, Work Gloves |
| Librarian | Button-Up Shirt, Knit Sweater, Jeans, Running Shoes, Glasses |
| Lineworker | T-Shirt, Work Trousers, Steel-Toe Boots, Hard Hat, Work Gloves |
| Auto Shop Hand | T-Shirt, Work Trousers, Steel-Toe Boots, Work Gloves, Baseball Cap |
| Hunting Guide | Long-Sleeve Tee, Canvas Work Jacket, Work Trousers, Steel-Toe Boots, Knit Cap, Holster |
Settings¶
| Asset | Property | Default | What it does |
|---|---|---|---|
DataAssets/Clothing/Childs/DA_Clothing_* |
slot, CoveredZones, BiteDefense, ScratchDefense, BulletDefense, Insulation, wind, water, SprintSpeedFactor, AttackSpeedFactor, WornWeight, Fabric, RipYield, bCanHole, HoleChance, bHidesBody, HideZones, HideSubZones, Meshes, BagCapacity, BagWeightReduction, ExcludedSlots |
see the table of pieces | One piece each. A piece worn sends to the bag what is in the slots its ExcludedSlots names, which no shipped piece uses. |
DataAssets/Clothing/Childs/DA_ClothingSettings_Default |
LayerOrder |
underwear, T-shirt, socks, shirt, pants, holster, sweater, shoes, gloves, jacket, coat, neck, mask, eyes, hat, satchel, backpack | The slots from the skin outwards: which layer is hit, stained and holed first. |
DA_ClothingSettings_Default |
DefaultOutfit |
T-Shirt, Jeans, Running Shoes | Outfit of an occupation with none. |
DA_ClothingSettings_Default |
BlockedDamageFactor |
0.25 | Damage a stopped attack still deals. |
DA_ClothingSettings_Default |
BloodPerHit, HitBloodFactor |
20, 0.25 | Blood of a wound; share splashed by a blow you land. |
DA_ClothingSettings_Default |
BloodPerBleedSecond, DirtPerRainSecond |
0.5, 0.2 | Blood per second of bleeding; dirt per second of rain. |
DA_ClothingSettings_Default |
WriteInterval |
2 s | How often the host writes stains. |
DA_ClothingSettings_Default |
DirtyInfectionFactor |
1.0 | How much stains speed up wound infection. |
DA_ClothingSettings_Default |
SoilWordThreshold |
25 | Stain level at which a tooltip says "Bloody" or "Dirty". |
DA_Fabric_Cotton, _Denim, _Leather |
PadBite, PadScratch |
5 / 15, 10 / 25, 20 / 35 | Padding a sewn piece adds. |
DataAssets/Status/Childs/DA_BodyTemperature_Default |
ComfortAir |
22 °C | Felt air at which the body holds 37 °C. |
DA_BodyTemperature_Default |
ExposureFactor |
0.12 | How far the felt air moves the target. |
DA_BodyTemperature_Default |
ResponseRate |
0.02 | Share of the gap closed per game minute. |
DA_BodyTemperature_Default |
ExertionHeat, FeverMax |
1 °C, 3 °C | Heat from effort and from sickness. |
DA_BodyTemperature_Default |
WindSpeedScale, WindChillFactor, WindChillScale |
30, 0.6, 4 | How the wind cools, and the Wind chill value. |
DA_BodyTemperature_Default |
IndoorAir, IndoorBlend |
18 °C, 0.6 | The air under a roof. |
DA_BodyTemperature_Default |
RoofTraceLength |
800 uu | Length of the trace that finds a roof, straight up from the head on the Visibility channel. |
DA_BodyTemperature_Default |
WetRate, DryRate |
2, 0.5 | Wetting and drying per game minute. |
DA_Status_Wet, _Hypothermia, _Hyperthermia, _WindChill |
Tiers |
see the table of statuses | The four temperature statuses. |
DataAssets/Items/Childs/DA_LightSource_Torch |
Warmth, WarmthRadius |
3 °C, 300 uu | The torch's warmth. |
Materials/Clothing/M_Garment |
HoleScale, HoleCut |
0.12, 0.62 | Size and cut of the drawn holes. |
DataAssets/Actions/Childs/DA_Action_Clothing_*, DA_Action_Bag_WearFromGround |
time, Sound |
wear 2 s, take off 1.5 s, rip 3 s, patch and pad 4 s, remove patch 2 s | The clothing gestures. |
DataAssets/Actions/Childs/DA_Action_* |
DirtPerSecond |
building, upgrading and dismantling 1.5; demolishing 2; barricading, removing a barricade, repairing, welding and carpentry 1; crafting and lifting furniture 0.5 | Dirt a second of work adds. |
DA_ClothingSettings_Default also holds the blood and dirt zones, HitBloodZones among them, the
slot and zone labels (SlotLabels), the three fabrics, the needle and the thread. A worn bag's
inventory uses the settings DA_Inventory_Bag. The gestures play SW_Cloth_Wear, SW_Cloth_Rip
and SW_Cloth_Sew through their action's Sound.
The colour of a garment lives in its material instance, MI_Garment_<Fabric>, so every cotton
piece has the same tint, and the parka and the rain jacket the same nylon. Each worn piece is a
skeletal mesh of its own, up to seventeen per survivor. The body is hidden under the clothes, from
the Zone vertex colour of the body meshes: under a
jacket, looking into the sleeve while aiming can show an empty forearm.
Change it¶
- To change a piece, edit its
DA_Clothing_*. Armour of your own is a piece with high defences. - To add a piece, with its meshes, its materials and the zones it hides, follow Add clothing.
- To change what an occupation starts in, set
StartingOutfiton itsPDA_OccupationDef. To offer another outfit at character creation, follow Add an outfit. - To make the cold harsher, raise
ExposureFactor. - To make a trait of yours spare wounds or ease heat and cold, give it the
Stat.Wound.ThroughChancemodifier (0 by default) orStat.Temperature.Exposure, as Tough Hide and Weathered do. - To turn holes or temperature off in one world, use the Clothing holes and Body temperature game options.
- To make a carried light warm, give its
PDA_LightSourceDefaWarmthand aWarmthRadius. Any other heat source has to implementBPI_HeatSource.GetWarmth(Location), which is graph work.
A new slot is not data alone. It needs a value in E_ClothingSlot, its place in LayerOrder and
in SlotLabels, and SlotCount on AC_Clothing (17).