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.
- Place a
Content/ZombieSurvival/Blueprints/World/BP_PopulationVolumeat ground height and stretch it by its scale. The box is 1 m times the scale. - Keep it out of the World Partition cells: leave Is Spatially Loaded off, which is the class default.
- Set
DensityPerHectare,DefaultDefandArchetypes, the weights of the zombie definitions it draws. - Fill
ExcludeCentersandExcludeExtentswith the boxes of the houses it covers, taken from theBP_HouseControllerboxes, 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¶
- Start a new world on the map: open
Maps/L_Boot, press Play and choose NEW GAME. - Open the console and type
ke * ShowHordeDebug. It draws the leaders, yellow in data and red rendered, with their goals and counts. - Type
ke * DebugHordeNoiseto 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.