Skip to content

Zombies

Zombies see and hear the survivors, chase them, and break the doors and windows in their way. Eight archetypes ship, each a Data Asset, and each zombie rolls its own senses around the values of its archetype.

A zombie lunges at the survivor (left), then lands its blow (right). The attack clip plays on every machine.

In the game

Senses

A zombie sees within a distance and a cone, and only along a clear line of sight. A crouched survivor is seen from 0.6 of that distance. Hearing is scaled by how loud the noise was, and an alerted zombie drags along those within 800 uu.

At spawn, each zombie rolls its sight range and its hearing range, independently, around the archetype's value, within 30 % on the shipped archetypes. The next zombie may pick you up from further than the last. Sight and hearing do not depend on the light or the weather.

A zombie with a target chases it, then attacks. Otherwise it investigates the noise, and otherwise it wanders.

Speed

Each archetype names a speed class: slow (60 uu/s), brisk (210), runner (380) or crawler (40). An archetype with none draws one by weight for each zombie. The Speed option scales them all.

A zombie that loses sight of its target keeps after it for 18 s, then searches for 8 s within 300 uu of the last place it saw it, and goes back to wandering. Between two survivors it takes the nearest, and switches only when the other is clearly nearer (a margin of 30 %).

What stands in the way

A zombie on its way to a target or a noise hits the door, the window, the barricade or the built piece that stops it. A door takes 60 hits and a window 35, and a hit counts for more from a stronger archetype or with a higher Strength option. Each hit makes a noise that pulls others in. A zombie with nowhere to go leaves doors alone. With the bOpenDoors option, it opens an unlocked door instead.

The exact formula

A zombie hits an obstacle for ObstacleDamage times the Strength option per hit. A door takes 60 hits and a window 35 (OpenableMaxHits).

Zombies cross windows and low fences through the navigation links. They break a closed window first, climb through and fall on the other side, and they climb a low fence. With the bFencesCollapse option, five zombies pushing on one low fence for three seconds lay it flat, and it is walked over after that. A high fence never gives.

Zombies never strike furniture, and a parked car does not block them. Doors, windows, barricades, built pieces and fences keep their state in the save.

The attack

Each archetype sets how hard a zombie hits and how long it waits between two attacks. The hit is a claw swipe or a bite.

  • A hit may grab, by a chance set per archetype. Each zombie holding a survivor slows them by 40 %, up to 70 %, for two seconds.
  • With the bBackBites option, an attack from behind is a bite one and a half times as often.
  • With the bGroupTakedown option, three zombies landing hits within 1.5 seconds drag the survivor down, who dies on the spot. The death screen says "Dragged down by the dead.".

A bitten player's camera shakes.

Hit zones

Hits on a zombie land on a zone. The head takes double damage, the legs 0.7, and a hit on the legs has a 25 % chance to knock the zombie over. Each melee weapon weights the zones its own way. A hit sprays a little blood on the side it came from, only when you can see that zombie.

Crawlers

10 % of the zombies spawn crawling, a share set by the CrawlerShare option, and a zombie knocked over by a hit on the legs gets up crawling one time in five. A crawler moves at 40 uu/s, bites low, never climbs, can be stomped where it lies, and batters a low fence down in twenty hits.

Loot, keys and bodies

An archetype can carry a few items, rolled for the zombies a spawn plan places. They are not rolled for the zombies sown by the districts of Pine Hollow, which carry nothing. The key of a parked car may be on a zombie nearby.

A dead zombie lies on the ground for 180 s, then becomes a corpse in the same place, that you search like a container. The corpse stays for 30 min, and past 60 corpses the oldest goes. Bodies and what zombies carry are saved with the world.

Voices

A zombie moans every 6 to 15 seconds, cries out when it starts a chase, and has a death, a bite and an obstacle-hit sound. Nothing is played for a zombie farther than 25 m from your survivor, and a sleeping one is silent.

Far from the players

A zombie more than 60 m from every player, with nothing to chase, falls asleep: no thinking, no animation, no network traffic. It wakes at 45 m, on a noise or on a neighbour's alert. This is what lets the host hold many zombies.

On a partitioned map such as Pine Hollow, the zombies far from every player are kept as data in hordes that drift and walk towards loud noises. They turn back into full zombies when a player comes near.

The assets

The eight archetypes are PDA_ZombieDef assets in Content/ZombieSurvival/DataAssets/Zombies/Childs/: DA_Zombie_Resident, _Worker, _Guard, _Medic, _Hiker, _Slow, _Brisk and _Runner, registered in DA_ZombieRegistry_Default. _Slow, _Brisk and _Runner are residents that differ only by their speed, so their ArchetypeTag is Zombie.Archetype.Resident.

Zombies wear the survivors' two mannequin bodies with the zombie skin Materials/Characters/MI_Zombie_Skin. The host draws one body per zombie from BodyVariants of the archetype, and LocomotionSlot names the gait that ABP_Zombie plays. The corpse a body turns into is a BP_ZombieCorpse.

Perception is done in Blueprint, in AIC_Zombie, and not through the engine's AIPerception component. The controller writes blackboard keys, and the behaviour tree BT_Zombie reacts to them.

The shared values are in DataAssets/Zombies/Childs/DA_ZombieSettings_Default, and the options in the Zombies tab of the world options.

Asset Property Default What it does
DA_Zombie_* Health, Damage, AttackRange, AttackCooldown per archetype toughness and attack
DA_Zombie_* SightRange, SightHalfAngle, HearingRange, SenseVariation SenseVariation 0.30 senses, as averages; set SenseVariation to 0 for an archetype whose senses must be exact
DA_Zombie_* PackAlertRadius 800 uu how far an alerted zombie drags the others along
DA_Zombie_* ObstacleDamage, GrabChance, LootList, SpeedClass per archetype obstacles, grabs, loot, speed
Blueprints/Player/BP_Survivor CrouchSightMultiplier 0.6 share of a zombie's sight distance from which it sees a crouched survivor
Blueprints/Interactables/BP_Openable OpenableMaxHits 60, and 35 on BP_Window zombie hits a door or a window takes
DA_ZombieSettings_Default SpeedClasses Slow 60, Brisk 210, Runner 380, Crawler 40 uu/s speed of each class, Zombie.Speed.Slow, .Brisk, .Runner and .Crawler
DA_ZombieSettings_Default SearchSeconds, SearchRadius 8 s, 300 uu search after losing a target
DA_ZombieSettings_Default TargetSwitchMargin 30 % when a zombie switches survivor
DA_ZombieSettings_Default FenceCollapseCount, FenceCollapseSeconds 5, 3 s a crowd flattens a low fence
DA_ZombieSettings_Default GrabSlowPerZombie, GrabSlowMax, GrabSeconds 40 %, 70 %, 2 s grabs
DA_ZombieSettings_Default BackBiteFactor 1.5 bites from behind
DA_ZombieSettings_Default TakedownCount, TakedownWindow 3, 1.5 s group takedown
DA_ZombieSettings_Default HeadDamageFactor, LegsDamageFactor, LegFallChance 2, 0.7, 0.25 hit zones
DA_ZombieSettings_Default CrawlerAfterLegFallChance, FenceCrawlerHits one in five, 20 crawlers
DA_ZombieSettings_Default MaxCorpses 60 corpses kept at once
DA_ZombieSettings_Default BiteShakeScale 0.3 camera shake of a bite; 0 turns it off
DA_ZombieSettings_Default SleepDistance, WakeDistance 60 m, 45 m zombies far from every player sleep
Blueprints/AI/BP_Zombie CorpseSeconds 180 s time before a body becomes a corpse; it costs one actor per body, so raise it with care
BP_Zombie VoiceDistance 25 m no voice beyond this distance
options (S_SandboxZombies) MemorySeconds, CrawlerShare, CorpseMinutes 18 s, 10 %, 30 min memory, crawlers, corpse lifetime
options (S_SandboxZombies) Speed, Strength, bOpenDoors, bFencesCollapse, bBackBites, bGroupTakedown per world scales and switches of the Zombies tab

Change it

  • To tune an archetype, edit its DA_Zombie_*: health, damage, senses, speed class, grab chance, loot, body variants, gait, sounds.
  • To add an archetype, follow Add a zombie archetype or the tutorial Add a zombie.
  • To tune what all zombies share, edit DA_ZombieSettings_Default. To tune one world, use the Zombies tab of the world options.
  • To watch the zombies in a development build, type ke * ShowZombieDebug 1 in the host's console. It draws each zombie's mode, its sight and hearing ranges and the line to what it is after.
  • A behaviour of your own does need a graph: a blackboard key, a branch of BT_Zombie and a task. Add a zombie behaviour builds one.