The maps¶
Four maps ship in Content/ZombieSurvival/Maps/. Only Pine Hollow is played.
| Map | Role |
|---|---|
L_Boot |
The startup map (GameDefaultMap). Its BP_BootLoader actor opens the level named in LevelToOpen, the main menu. |
L_MainMenu |
The title screen. It runs BP_MenuGameMode and shows WBP_MainMenu. |
L_World |
Pine Hollow, the town you play, on World Partition. |
L_KitOverview |
Every environment mesh placed once, for the editor only. |
The first three are in MapsToCook, in Config/DefaultGame.ini. A map that is not in that list is
left out of a packaged game, which is the case of L_KitOverview.
The map flow¶
A packaged game starts on L_Boot, which opens L_MainMenu, and the main menu opens the map of the
world, L_World. In the editor, Play starts in whatever map is open.
The main menu¶
WBP_MainMenu offers CONTINUE and LOAD (greyed until a world exists), NEW GAME,
HOST, JOIN, OPTIONS and EXIT GAME.
Worlds, characters and options describes the screens they open. A line
under the buttons says why you came back to the menu: the host left, a wrong password, a different
version. The version shows bottom right, from GameVersion of BP_ZSGameInstance.
The backdrop of every menu screen is Textures/UI/T_UI_MenuBackdrop, a 3840 × 2160 painted picture
that the widget pans slowly (PanAmplitude, PanPeriod). Over it, a
gradient darkens the left side behind the buttons. The map
itself holds nothing but a PlayerStart, so a title scene of your own goes either in that picture
or in the map.
Which maps a world can use¶
Maps, in the Class Defaults of Blueprints/Core/BP_ZSGameInstance, lists one map definition per
playable map. One ships, DA_Map_World, in DataAssets/Session/Childs/. A definition names its
level and its start points. On the same Blueprint, MenuLevel is the menu, and DefaultLevel
(L_World) is the level used when a world names none. To play a map of your own,
add it to the list.
Pine Hollow (L_World)¶
A town of 512 × 512 m on World Partition, in cells of 64 m:
- an avenue, two streets, and a town centre with a grocery, a hardware store, a gas station, two car parks and a picnic corner;
- twelve houses from four house plans, each in a closed garden;
- a forest edge of 1,275 trees, and about a thousand more in groves, yards and along the streets;
- a pond at the forest edge and three forage bushes
(
PineHollow_Pond,PineHollow_Forage_1to_3); - three working stoves and three kitchen sinks in the houses;
- two start points, North quarter and South quarter;
- six cars to drive, parked along the curbs: one within sight of each start point, one more in each quarter, one by the grocery and one in front of the gas station;
- about 300 zombies, some of them gathered in hordes that walk to a gunshot;
- a world map that each player uncovers on their own.
The six cars stand at VehicleSpawn_North_A and _B, VehicleSpawn_South_A and _B,
VehicleSpawn_Centre_A and _B. The other cars of the town, about two dozen, are wrecks: decor
that answers nothing.
One BP_ZoneManager actor runs the world systems of the town, such as
the loot rolled from tables and the hordes.
Opening it in the editor¶
The first time, the editor loads only the cells around the North quarter start point. To see and edit the rest of the town, open Window > World Partition, drag a selection on the minimap and choose Load Region From Selection. The editor then remembers your choice. In play, only the cells near a survivor are loaded.
Trying a change on Pine Hollow¶
There are three ways to get a new item into a game, and none of them opens a graph.
To give it to yourself, press T in play, type /give <ItemSaveId> [count] and press Enter.
The item lands in your bag. /give is a host command, and you are the host of
a game started with Play or NEW GAME.
To start with it, open the spawn plan of the map,
DataAssets/Spawns/Childs/DA_SpawnPlan_WorldStart, and add an entry to StartItems: an item and a
count. Every new survivor then starts with it, and an entry that carries a WeaponDef is put in
hand. Remove the entry when you are done.
To find it in the town, add it to a loot table and start a NEW GAME. Each container rolls its table the first time it loads, once per world.
Pine Hollow places no zombie and fills no container by hand. Its containers are placed in the map and filled from loot tables, and its zombies are sown district by district by population volumes.
The kit overview (L_KitOverview)¶
Every static mesh of Meshes/Environments/ is placed once in this map, one band per folder:
buildings, street, terrain, props, furniture, vegetation. Pick a piece there and copy it into
your own map.
Its World Settings run the engine's GameModeBase, so Play gives a flying camera and nothing of
the game starts.
Navigation on every map¶
The navmesh of Pine Hollow covers the whole map (WorldNavBounds) and is generated dynamically in
play. It rebuilds around what the player builds, so a wall you put down during play blocks pathing,
and a zombie with no way round strikes it until it breaks.
Keep a NavMeshBoundsVolume
Whatever map you make, keep a NavMeshBoundsVolume over it, or the zombies will not move at
all.