Tune the systems¶
Each system reads its numbers from one Data Asset at BeginPlay. Change a value, press Play, and the system uses it. A few settings are not in a Data Asset: some Blueprints hold theirs in Class Defaults.
Steps¶
- Find the system in the tables below.
- Open its instance, the
DA_asset. The Class column gives the folder of the class underContent/ZombieSurvival/DataAssets/. The instance is in theChilds/folder next to it. - Change the value in the Details panel and save.
Rates are given per game minute. At the default day length of 30 minutes, 48 game minutes pass in a real minute, so multiply a rate by 48 to read it in real time.
Survival and the body¶
| System | Class | Instance | What it holds |
|---|---|---|---|
| Needs | Needs/PDA_NeedsSettings |
DA_Needs_Default |
Hunger 0.125, thirst 0.167 and fatigue 0.0625 points per game minute (6, 8 and 3 per real minute). Critical threshold 25, which only drives the screen effect. Health loss and slowdown come from the statuses. |
| Infection | Infection/PDA_InfectionSettings |
DA_Infection_Default |
288 game minutes of incubation (6 real minutes), then 0.229 health per game minute, about 11 per real minute. Roughly 15 real minutes from bite to death. |
| Statuses | Status/PDA_StatusDef, PDA_StatusSet |
DA_Status_*, one per status; DA_StatusSet_Default |
Per status: tag, name, icon, direction and four tiers (threshold, label, tooltip, colour, stat modifiers, health lost per game minute). The set lists them in the order of the status column. |
| Endurance | Status/PDA_EnduranceSettings |
DA_Endurance_Default |
Sprinting costs 5 a second, a swing 2 plus 1 per kg of the weapon. Recovery is 2.5 a second, twice as fast at rest. |
| Mood | Status/PDA_MoodSettings |
DA_Mood_Default |
What raises and lowers panic, stress, boredom and sadness, and by how much. |
| Status sounds | Status/PDA_StatusVoices |
DA_StatusVoices_Default |
The breath, the cough, the sneeze, the cry of pain and the heartbeat, with their intervals. |
| Body temperature | Status/PDA_BodyTemperatureSettings |
DA_BodyTemperature_Default |
Comfort air 22 °C, exposure 0.12, wind (scale 30, chill factor 0.6, status scale 4), response 0.02 a game minute, indoor air 18 °C and blend 0.6, roof trace 800 uu every 2 s, wetting 2 and drying 0.5 a minute (outdoors x0.5, near heat x3, snow a third), sickness up to 3 °C (FeverMax), exertion 1 °C. |
| Sleep | Status/PDA_SleepSettings |
DA_Sleep_Default |
Fatigue needed (30 spent); hours by spot quality (floor 0, poor +1, average 0, good -1); floor factor 0.7; 3 to 16 hours, random range 10 to 13; healing x2, needs x0.5; waking noise (1.5, 1,000 uu, x0.5); ignored noises (thunder); time speed x60 for a host alone. |
Health¶
| System | Class | Instance | What it holds |
|---|---|---|---|
| Wounds | Wounds/PDA_WoundTypeDef, PDA_TreatmentDef |
DA_WoundType_*, one per wound type; DA_Treatment_*, ten |
Per wound type: bleeding, pain, healing time, the ceiling of its part while untreated and its effects on the part. Per treatment: its time, the kits in order of preference and the pain it causes. |
| Medicines | Items/PDA_MedicineDef |
DA_Medicine_*, six |
The effects a dose starts (Effects: a TargetTag, an Amount, DurationMinutes) and the sound of taking it (UseSound). The item names it in MedicineDef. |
Clothing¶
| System | Class | Instance | What it holds |
|---|---|---|---|
| Clothing | Clothing/PDA_ClothingSettings |
DA_ClothingSettings_Default |
The layer order; the default outfit; the damage a stopped attack keeps (BlockedDamageFactor 0.25); blood and dirt (amounts, zones, write interval 2 s, the 25 that makes a tooltip say "Bloody" or "Dirty", DirtyInfectionFactor 1.0); the slot and zone labels; the three fabrics; the needle and the thread. |
| Clothing pieces | Clothing/PDA_ClothingDef |
DA_Clothing_*, thirty-three |
Per piece: slot, zones, defences, warmth, wind and water, speed factors, worn weight, fabric, holes, hidden zones, meshes, bag capacity. |
| Fabrics | Clothing/PDA_FabricDef |
DA_Fabric_Cotton, _Denim, _Leather |
The tool that rips it (none for cotton), the clean and the dirty piece it gives, its padding against bites and scratches. |
Inventory, crafting and building¶
| System | Class | Instance | What it holds |
|---|---|---|---|
| Inventory | Inventory/PDA_InventorySettings |
DA_Inventory_Default |
No slot limit, 20 kg, ceiling x2, held item 30 %. This instance overrides nothing: change its numbers in the Class Defaults of the class. |
| Barricade | Barricade/PDA_BarricadeSettings |
DA_Barricade_Default, _MetalSheet, _MetalBars |
Planks: 1 plank and 2 nails per layer, hammer required, 4 layers, 20 hits each. Metal sheet: 1 sheet metal, 300 hits. Metal bars: 3 metal bars, 400 hits, sight and shots pass. Each kind also names its tools, skill, weld action and time, noise, experience, and the tool and yield of its removal. |
| Crafting | Recipes/PDA_CraftingSettings |
DA_CraftingSettings_Default |
The largest batch (MaxBatch 20), the margin the host adds to the reach of the sources (SourceTolerance 80 uu), the message of a result put on the floor, and the restorations the Repair category offers (Restores: duct tape, glue, propane tank). |
| Workbenches | Recipes/PDA_WorkstationDef |
DA_Workstation_Carpentry |
The station tag, its name ("Carpentry Workbench") and its reach (200 uu). |
| Repairs | Items/PDA_RestoreDef |
DA_Restore_DuctTape, _Glue, _Propane |
What is consumed, what it mends, condition or charge, the share of the maximum (0.20, 0.30, 1.0), whether Weapon Care counts, the loss per earlier repair (0.25), the action, its time (4, 6, 3 s) and the experience (3 and 4 Weapon Care points for the tape and the glue). |
| Furniture | Furniture/PDA_FurnitureDef, PDA_FurnitureRegistry |
DA_Furniture_*, one per piece; DA_FurnitureRegistry |
Per piece: name, mesh, carried item and placement piece, moving tool and skill, dismantling tool, material and yield, workbench, container kind, footprint. The registry lists them all, and which one each mesh is. |
| Prefabs | Prefabs/PDA_PrefabDef |
DA_Prefab_*, nine: _Room, _SmallHouse, _Garage, _House_Kitchen, _House_Bedroom, _House_TwoStorey, _Shop_Grocery, _Shop_Hardware, _GasStation |
The actors of a building (class, mesh, place from its corner, tags, furniture and vision settings), its storeys, its rooms and its footprint. Written by Capture Prefab and laid by Stamp Prefab, as Build a house shows. |
Weapons¶
| System | Class | Instance | What it holds |
|---|---|---|---|
| Weapon slots | Weapons/PDA_WeaponSlotsSettings, PDA_WornSlotDef |
DA_WeaponSlots_Default; DA_WornSlot_BeltLeft, _BeltRight, _Holster, _Back |
The positions in order (Slots) and those that need nothing worn (AlwaysActive, the array that makes a position always available). Per position: label, icon, accepted weapons, socket and offset, draw time (0.4, 0.4, 0.5, 1.0 s), backpack or sling required (the back). |
| Firearms | Weapons/PDA_FirearmSettings |
DA_Firearm_Default |
JamWearFactor 4, UnjamBase 0.6, UnjamPerLevel 0.04, ReloadHoldSeconds 0.5, bAutoRack, the click of an empty gun and the sound of a cleared jam, the laser dot (mesh, material, 6 uu). |
| Calibres | Weapons/PDA_CaliberDef |
DA_Caliber_Pistol, _Revolver, _Shotgun, _Rifle |
The round and the box; 50, 50, 25 and 20 rounds a box; 1.5 s to open or pack. |
| Magazines and attachments | Weapons/PDA_MagazineDef, PDA_AttachmentDef |
DA_Magazine_Pistol (12 rounds, 0.5 s a round); DA_Attachment_Scope, _Laser, _Sling |
Per magazine: capacity and compatible guns. Per attachment: slot, stat modifiers, tool, mesh and socket, time to attach (3, 2 and 1 s). |
The weapons themselves are covered in Add a melee weapon and Add a firearm.
Character progression¶
| System | Class | Instance | What it holds |
|---|---|---|---|
| Progression | Progression/PDA_ProgressionSettings |
DA_ProgressionSettings_Default |
The skills, occupations and traits a character can have; the default occupation (Drifter); the five skill families in their order (name, and the experience stat of the family); the skill effects asset; the books. BP_ZSGameInstance.ProgressionSettings points at it. |
| Skills | Progression/PDA_SkillDef |
DA_Skill_*, fifteen, fourteen of them listed (Farming waits for its system) |
The tag; the name and description shown in the character window; the family; the experience curve (XPToNextLevel, one threshold per level: its length is the top level); the learning boost by starting level (XPBoostByStartLevel); and, for a skill no system reads yet, the note its tooltip shows (PendingEffectNote). |
| Skill effects | Progression/PDA_SkillEffectSettings |
DA_SkillEffects_Default |
Effects: one row per skill and stat (add or multiply, eleven values for levels 0 to 10, and whether it counts only with a weapon of that skill in hand), the solidity, dismantling and repair rows among them (Stat.Build.Durability.*, Stat.Dismantle.FailChance.*, Stat.Dismantle.Yield.*, Stat.Repair.Gain). XPSources: one row per way of learning (the XPSource.* tag, the skill, the points, the guard per target, the interval of a continuous source). The cap of one grant (500), the heavy load (75 % of the limit), the heavy weapon (1.5 kg), the radius of quiet walking (800 uu), the training tick (1 s) and the reading light radius of a lamp post. |
| Books | Items/PDA_BookDef |
DA_Book_<Skill>_<N>, seventy-five; DA_Book_Magazine_<Name>, one per magazine |
The skill, the volume (1 to 5), the band of levels it is written for, the reading time in game minutes and the four milestones (a fraction read and the multiplier it gives). For a magazine: no skill, no milestone, and what it teaches (TeachesRecipes, TeachesPieces). The item that carries it names it in BookDef. |
| Occupations | Progression/PDA_OccupationDef |
DA_Occupation_*, twelve |
Name, description, points to spend on traits, starting skill levels, traits it grants, the recipes and pieces it teaches on arrival (GrantedRecipes, GrantedPieces), and its own stat modifiers. |
| Traits | Progression/PDA_TraitDef |
DA_Trait_*, forty-two |
Name, description, cost (negative gives points back), the traits it excludes, its stat modifiers (a stat tag, add or multiply, a value), the starting levels it gives (StartingSkills), and the recipes and pieces it teaches on arrival (GrantedRecipes, GrantedPieces). |
World, light and sound¶
| System | Class | Instance | What it holds |
|---|---|---|---|
| Calendar | Environment/PDA_SeasonSettings |
DA_SeasonSettings_Default |
Twelve months (name, days, season, sunrise and sunset, noon height of the sun, mean temperature and day-to-night spread, weather weights); the first day of the month a world starts on (1); the speeds a host alone can pick (TimeSpeeds, 1, 2 and 4); the hottest hour (15:00). BP_ZSGameInstance.SeasonSettings points at it. |
| Lighting | Environment/PDA_LightingSettings |
DA_LightingSettings_Default |
Sun intensity and colour temperature; moon (50 lux); sky light by day and by night; the exposure bias by day and by night (night 4.2) with its bounds (MinExposureBias, MaxExposureBias 6); the step the Night darkness option moves it by; fog; the dimming by clouds; the lamp posts (LampOnElevation +1°, 500 cd, radius, colour, offset). BP_ZSGameInstance.LightingSettings points at it, and a BP_WorldEnvironment can name its own in Settings. |
| Weather | Environment/PDA_WeatherSettings |
DA_WeatherSettings_Default |
The six episodes; the transition (30 game minutes); snow threshold (0.5 °C), snowfall and melt per hour and the snow of a new world; thunder intervals, noise radius, flash and sounds; the precipitation system with its rates, fall and wind speeds; the four ambience loops with their volumes. BP_ZSGameInstance.WeatherSettings points at it. |
| Carried lights | Items/PDA_LightSourceDef |
DA_LightSource_Flashlight, _Torch |
Spot or point, intensity in candelas, range, inner and outer cone, colour, offset from the survivor and pitch, and the warmth it gives the body (Warmth, WarmthRadius: the torch 3 °C, fading out at 300 uu). An item names one in LightSource (DA_Item_Flashlight, DA_Item_Torch); empty means no light. |
| World | World/PDA_WorldSettings |
DA_WorldSettings_Default |
The large map. Zones (ZoneSize 6,400, ZoneKeepRadius 11,200, ZoneRestoreRadius 10,400). Loot (LootSettings, LootPerTick 10). Houses (40 % locked, 15 % alarmed, a 180 s siren). Generators (10 l tank, 24 h idle, 8 h at full load, 20 m and one floor, Electrical 3). Fire (1.5 m cells, 200 at most, the materials that burn and their delays, burns, extinguishers, burning a corpse). Felling (6 strokes, 3 logs, the trees it knows). World events (helicopter between day 5 and 10, two distant noises a day at most, 60 to 90 m). The hordes. |
| Loot | Loot/PDA_LootSettings, PDA_LootTable |
DA_LootSettings_Default; DA_LootTable_*, nine |
The tables; the categories each loot option scales (food and drink; weapons and ammunition; the rest); the items kept out of every table. Per table: its room type, its furniture, its draws and its weighted entries. |
| Noise | Noise/PDA_NoiseSettings |
DA_NoiseSettings_Default |
One row per noise: its Noise.* tag, its loudness (a multiplier of each zombie's hearing range) and a description. BP_ZSGameMode.NoiseSettings points at it. |
| Audio | Audio/PDA_AudioSettings |
DA_AudioSettings_Default |
The shared attenuation, the volume of each bus (BusVolumes, all 1.0), the sound class behind each bus (BusClasses) and the mix that carries them (BusMix, SMX_Main); the footsteps (a sound per ground material, the strides, the running speed, the pitch variance, the range, a zombie's volume) and the three music beds with their timing. |
| Vision | Vision/PDA_VisionSettings |
DA_Vision_Default |
Cone half-angle 80°, edge softness, view distance 3000 uu, near radius 200, outside darkness and desaturation, mask size, trace count, update intervals, fade speed. |
TraceCount in the vision settings is the number of traces cast per update. Lower it first if you
target a modest machine.
Game, session and interface¶
| System | Class | Instance | What it holds |
|---|---|---|---|
| Session | Session/PDA_SessionSettings |
DA_Session_Default |
MaxPlayers 4, changed as Player count shows; whether the host checks every move (bHostAuthoritativeMovement, on); how many local games a search lists; the longest player name and the name used when the field is left empty; the text shown for each reason a player returns to the menu; the notice shown for an older save. |
| Game options | Sandbox/PDA_SandboxSettings |
DA_SandboxSettings_Default (Standard), _Easygoing, _Unforgiving |
A preset: a name, one sentence and the options of a new world. The three presets compares some of them. |
| Game options list | Sandbox/PDA_SandboxCatalog |
DA_SandboxCatalog_Default |
The presets offered, the one selected first, and one row per option: its tag, group, label, tooltip, lowest and highest value, step, and whether it is a check box. |
| Timed actions | Actions/PDA_ActionDef |
DA_Action_*, one per gesture |
Described under Timed actions. DA_ActionRegistry_Default lists the actions a host accepts. |
| Radial menu | UI/PDA_RadialMenuDef |
DA_RadialMenu_QuickActions, DA_RadialMenu_Reload among them |
The quick actions of the ring: command tag, label, icon, and the condition that hides an entry (Condition.FirearmInHand on Reload, Condition.HostAlone on Time speed). The reload ring (R) keeps entries that cannot run and greys them (bShowUnavailable). |
The three presets¶
| Option | Standard | Easygoing | Unforgiving |
|---|---|---|---|
| Zombies | x1 | half | twice |
| Start | 9:00 on June 1 | a start in October | |
| Day length | 30 minutes | ||
| Night darkness | x1 | lighter (x0.75) | darker (x1.5) |
| Bad weather | x1 | half | half again as much (x1.5) |
| Needs | normal rate | half as fast | half again as fast |
| Experience | normal rate | twice | three quarters |
| Player damage | off | ||
| Construction strength | 1.0 | 1.5 | 0.75 |
| Wound severity | 1.0 | 0.75 | 1.25 |
An empty cell is not documented: open the preset to read the value. All three presets allow Demolition and turn on Clothing holes and Body temperature. The wound, clothing and body temperature systems read Wound severity, Clothing holes and Body temperature.
The table does not list every option. Difficulty and presets lists the options by their tag, and adds a preset of your own.
Timed actions¶
There is one DA_Action_* per gesture a survivor makes, such as searching a container, reloading or
sleeping. Each holds its duration, what cancels it (moving, being hit), the clip and sound it plays,
and whether the survivor walks up to the target first. It also holds the skill that speeds it up
(Skill, SkillDurationFactors, one factor per level), the stat its modifiers act on
(DurationStat), the experience it grants (XPAmount) and the delay before the same target grants
it again (XPGuardSeconds).
| Action | Time |
|---|---|
| Reinforce | 3 s, changed by Carpentry; grants 10 points |
| Place a piece | 4 s, changed by Carpentry; the piece grants its own points |
| Dismantle | 3 s, changed by Carpentry; grants 5 points |
| Craft, weld, repair | the time of the recipe or restoration |
| Upgrade | 3 s |
| Dismantle metal | 4 s |
| Demolish | 8 s |
| Remove a barricade | 3 s |
| Pick up, set down furniture | 2 s each |
| Wear, take off | 2 s, 1.5 s |
| Rip | 3 s |
| Patch, pad | 4 s |
| Remove a patch | 2 s |
| Sleep | until the sleeper wakes |
| Vault, reload | their own durations |
An action with a BaseDuration of 0 takes effect at once. Give one a BaseDuration and it shows a progress bar and becomes
interruptible.
Add a game option¶
The options screen needs no change.
- Add the field to
S_SandboxSettings, or to one of its groups (S_SandboxPopulation,S_SandboxTime,S_SandboxCharacter,S_SandboxWeather,S_SandboxBuilding), with the standard value as its default. A world saved before keeps loading and receives that default. - Declare its tag under
Sandbox.in Edit > Project Settings > Gameplay Tags. - In
Blueprints/Core/BFL_ZSSandbox, add one branch toGetOptionValueand toSetOptionValue. An on/off option reads 1 or 0. - Add a row to
DA_SandboxCatalog_Default(label, group, tooltip, lowest and highest value, step, unit, check box or not), and give the presets their value. - In the system that uses it, read
BFL_ZSSandbox.GetActiveOption(<your tag>). That is the copy of the running game, the same for the host and every player. Do not read the preset asset.
Add a skill, a trait or an occupation¶
No graph is needed.
- Create a Data Asset of the class
PDA_SkillDef,PDA_TraitDeforPDA_OccupationDefinDataAssets/Progression/Childs/. - Give it a tag declared under
Skill.,Trait.orOccupation.in Edit > Project Settings > Gameplay Tags. - Add it to its array in
DA_ProgressionSettings_Default.
The character window then lists a new skill under its family, and the character creation screen shows a new occupation or trait. The save keeps them by tag.
A new asset does nothing until something reads it:
- A skill acts once a row of
DA_SkillEffects_Defaultgives it a stat, an action names it inSkill, or anXPSourcesrow trains it. While nothing reads it, write itsPendingEffectNoteso the tooltip says what it will do. - A weapon trains and reads the skill named in its
SkillTag. - A trait acts through its modifiers, on a stat some system reads (or one of yours read with
BFL_ZSStats.GetModifiedValue), or through itsStartingSkills.
Add a book¶
A skill book is two assets. A magazine has its own steps.
- Create the book, a
DA_Book_<Skill>_<N>of the classPDA_BookDef. - Create its item, a
DA_Item_Book_<Skill>_<N>of the classPDA_ItemDef, with the category Literature, a uniqueItemSaveIdand aBookDefthat points at the book. - Add the item to
DA_ItemRegistry_Default, and the book toBooksinDA_ProgressionSettings_Default. - Give the item a way to be found. On Pine Hollow, add it to a
loot table. On a small map of your own, put it in a container's
Contentsin the spawn plan.
Add a noise¶
- Declare a
Noise.*tag. - Add a row to
DA_NoiseSettings_Defaultwith its loudness. - Call
BP_Survivor.EmitNoisewith that tag where the gesture happens, on the host. For a noise nobody makes, as the thunder does, callBP_ZSGameMode.EmitWorldNoisewith a location.
Test it¶
- Change one value in a
DA_instance and save. - Open
Content/ZombieSurvival/Maps/L_Worldand press Play. - Watch the system concerned: the hunger bar, a zombie's reaction to a noise, a reload time.
- Game options apply to a new world, and a continued world keeps its own saved options. Open
Maps/L_Boot, press Play, then NEW GAME and GAME OPTIONS.
If it does not work¶
- The value you changed shows no effect: check whether the instance overrides that field. An
instance override always wins over the class
default. Five shipped instances override fields:
DA_Vision_Default,DA_Needs_Default,DA_Infection_Default,DA_Barricade_DefaultandDA_WeaponSlots_Default.