Skip to content

Populate a partitioned map, and tune the hordes

On a World Partition map, zombies are sown from population volumes at the density you choose, out of the houses and away from the start points. Packed zones gather them into hordes, kept as data on the host, that wander, hear noises and turn into full zombies around the players.

Steps

Hordes need the BP_ZoneManager of a large map. A map without one has neither zones nor hordes.

  1. Place a Content/ZombieSurvival/Blueprints/World/BP_PopulationVolume at ground height and stretch it by its scale. The box is 1 m times the scale.
  2. Keep it out of the World Partition cells: leave Is Spatially Loaded off, which is the class default.
  3. Set DensityPerHectare, DefaultDef and Archetypes, the weights of the zombie definitions it draws.
  4. Fill ExcludeCenters and ExcludeExtents with the boxes of the houses it covers, taken from the BP_HouseController boxes, so that nobody spawns inside a house.

A volume is read once, on the first tick of a new world, so moving it changes nothing in a world already played. A partitioned map can also take zombies from the spawn plans listed in SpawnPlans on its zone manager.

Horde settings

The Hordes group of DataAssets/World/Childs/DA_WorldSettings_Default holds them.

Setting What it does Default
HordeSizeMin, HordeSizeMax A packed zone with at least the first forms hordes of at most the second. 4, 20
HordeSpeed Walking speed of a horde in data. 60 uu/s
DriftRadius, DriftPauseMin, DriftPauseMax How far and how often a horde wanders around its home. 3200 uu, 120 to 600 s
HordeHearRange How far a horde hears a noise, times the intensity of the noise. 2000 uu
GoalSeconds How long a horde keeps walking to a noise. 300 s
HordesPerTick Hordes moved per host tick. 8
LiveCap Full zombies the hordes may turn into around the players. 120
MemberSpacing, FollowRadius, FollowSeconds How a rendered horde keeps together behind its leader. 150 uu, 600 uu, 6 s
SpawnClearance No zombie is sown this close to a start point. 8000 uu
RenderPerTick, RestorePerTick, RestoreNowRadius Spread the spawning of hordes and returning zones over several ticks. 10, 2, 3200 uu

To switch the hordes off on a map, untick bEnabled on the Hordes component of its zone manager. From a graph, AC_Hordes offers SpawnHordeAt(Location, Count, Def), SendHorde(HordeId, Location) and IndexOfHorde(HordeId).

Test it

  1. Start a new world on the map: open Maps/L_Boot, press Play and choose NEW GAME.
  2. Open the console and type ke * ShowHordeDebug. It draws the leaders, yellow in data and red rendered, with their goals and counts.
  3. Type ke * DebugHordeNoise to make a shotgun-loud noise at your survivor, and watch the hordes within hearing react.

Both commands need a development build. In a shipping build they draw nothing.