Controls¶
Input is Enhanced Input. Content/ZombieSurvival/Inputs/Player/ holds IMC_Player for the game,
IMC_UI for the menus, and twenty-one IA_* actions. The driving context is in Inputs/Vehicle/,
and three keys, T, O and M, are read
outside any mapping context. Players
rebind their keys in OPTIONS, CONTROLS. To change a default,
edit a mapping context. The name and category an action shows on the CONTROLS page are in its
PlayerMappableKeySettings.
You can switch between keyboard and mouse and a gamepad at any moment, and the glyphs on screen follow the device you last touched. The gamepad buttons are named by position, the way the shipped glyphs draw them: the four face buttons are bottom, right, left and top, the shoulders LB and RB, the triggers LT and RT, then the View and Menu buttons and the two stick clicks.
On foot¶
| Key | Gamepad | Action | What it does |
|---|---|---|---|
| W A S D / Z Q S D | left stick | IA_Move |
Moves the survivor, relative to the camera. |
| Mouse wheel | D-pad up / down | IA_Zoom |
Zooms the camera in and out. A game starts fully zoomed out. |
| Left Shift (hold) | LB (hold) | IA_Sprint |
Runs. Running is louder than walking. |
| Left Ctrl | left stick click | IA_Crouch |
Crouches, and stands up on the next press: slower, quieter, and seen from less far by the zombies. Running stands you up. |
| Right mouse (hold) | LT (hold) | IA_Aim |
Aims: the facing and the vision cone follow the cursor, through the reticule laid on the ground. |
| mouse | right stick | IA_AimDirection |
Where you aim. |
| Right mouse (tap) | IA_Aim |
Opens the context menu of what is under the cursor. The cursor has to be on the object: a click on the bare floor opens nothing. | |
| Left mouse | RT | IA_Attack |
Sets a piece down, fires, stomps or swings, in that order. |
| R | top face button | IA_Reload |
A short press reloads. Holding it opens the reload ring. |
| Space | bottom face button | IA_Shove |
While aiming only: shoves the zombies in front of you. |
| E | left face button | IA_Interact |
A short press acts on the nearest interactable. Holding it climbs. |
| Tab | View | IA_Inventory |
Opens and closes the pair of loot windows: what you carry on one side, what is within reach on the other. Both start open. On a gamepad it also puts the focus on the window bar. |
| T | ChatKey (read by AC_Chat) |
Opens the chat line. | |
| O (hold) | ListKey (read by AC_Chat) |
Lists the players and their ping while held. | |
| M | MapKey (in DA_MapSettings_Default) |
Opens and closes the world map, on a map that has one. | |
| P | IA_Character |
Opens and closes the character window: skills with their experience bar, occupation and traits, what protects each zone of the body, and the body temperature. On a gamepad, reach it from the radial menu or the window bar. | |
| F (hold) | RB (hold) | IA_QuickMenu |
Opens the radial menu of quick actions. |
| C | right face button | IA_Crafting |
Opens and closes the crafting window: categories, the recipes you know, and the detail of the one you pick, with its Make button. While you are placing a piece, it leaves placement instead. |
| H | right stick click | IA_Health |
Opens and closes the health window: a 17-zone body silhouette coloured by state. |
| B | RB (hold), Build | IA_Build |
Opens and closes the build window: pick a category, a piece, then Place. While you are placing a piece, it leaves placement. On a gamepad it is the Build entry of the quick ring. |
| X | RB (tap) | IA_BuildCycle |
Turns the piece you are placing a quarter. |
| 1 to 4 (also & é " ', and NumPad 1 to 4) | D-pad left / right | IA_WeaponSlot |
Draws the weapon worn at that position, or stows it. |
| Esc | Menu | IA_Pause |
Opens and closes the pause menu. In Play In Editor, Esc stops the session instead. |
| Enter / Esc | bottom / right face button | IA_UIConfirm / IA_UIBack |
In menus only (IMC_UI): confirm the focused button, go back one screen. |
Moving¶
Forward always walks up the screen, whichever way the survivor is turned. Unless you are aiming, he turns to face the way he walks. QWERTY and AZERTY are both bound at once.
Walking away from where you look costs speed: StrafeSpeedMultiplier (0.75) sideways and
BackpedalSpeedMultiplier (0.5) backwards, blended in between. Both are Settings on BP_Survivor.
In practice you only pay it while aiming.
Aiming¶
While you hold Right mouse, the survivor keeps facing the cursor as you move or attack. The
reticule on the ground is the actor Blueprints/World/BP_AimMarker. Recolour or resize it on
MI_AimMarker (Tint, Brightness, Opacity, Glyph).
On a gamepad, the right stick pushed past GamepadAimDeadzone (0.3) turns the gaze that way and
lays the reticule GamepadAimDistance (400 uu) out in that direction. Both are Settings on
BP_Survivor.
The context menu¶
The right button, released in under ContextTapSeconds (0.25 s), opens a menu on what is under the
cursor.
| Under the cursor | Entries |
|---|---|
| A door or a window | Open or Close, Climb through when it is open and climbable, Lock or Unlock on a door whose key is in your bag, Force on a locked door or on a window, Barricade (Planks), (Metal sheet) or (Metal bars), Remove barricade, Demolish |
| A piece you built | Upgrade to …, Dismantle, Demolish |
| A piece of furniture | Pick up, Dismantle, and Sleep on a bed or a sofa |
| A container | Open |
An entry that cannot run now is greyed, with the reason in its tooltip. Pick an entry and the
survivor walks to the object if he is not close enough, then acts. Your movement keys cancel the
order, and so does a ten-second timeout (ApproachTimeout). The tap delay, the timeout, the reach
(ApproachMaxDistance, 2000) and the distance at which the order fires (ApproachArriveDistance,
260) are Settings on BP_Survivor.
While you are placing a piece, the same click leaves placement instead.
Attack¶
The button does the first of these that applies:
- while you are placing a piece or a piece of furniture, it sets it down;
- with a firearm equipped, it fires;
- if a zombie you have knocked down is within
StompRange(170 uu), it stomps it forStompDamage(50); - otherwise it swings the equipped melee weapon, or bare fists.
Reload¶
With a firearm in hand, a short press of R reloads it by itself: eject the magazine, fill the
fullest one that has room, insert it and rack, or load rounds one by one for a revolver, a shotgun
or a rifle. Each step is a timed action that a hit or a move interrupts, keeping what was done.
Holding R for ReloadHoldSeconds (0.5 s) opens the reload ring
instead.
Shove¶
The shove pushes the zombies away along your gaze, with a chance to knock them down. A downed zombie
cannot move or bite until it gets up. Range, force, knockdown chance, downed time and cooldown are
Settings on BP_Survivor.
Interact¶
E picks up an item, searches a container, opens or closes a door or a window, reinforces a barricade or gets into an unlocked vehicle, whichever is nearest in reach. It never dismantles, which is an entry of the context menu.
Searching a container unfolds the two loot windows on it. Nothing is taken until you drag a row across or press Take all in the title bar.
Holding E climbs over or through anything whose CanVault is ticked: windows, barricades and
fences by default.
The game can name what E would act on, at its target and next to the glyph of the key: Open
Door, Search Fridge, Pick up Canned Beans x2, Climb over Fence, Get in Coupe. This prompt
is off by default. Tick bShowTargetPrompt on WBP_InteractPrompt to show it. The hints of a piece
being placed always show.
Chat, player list and world map¶
These three keys are not in a mapping context.
T opens the chat line, Enter sends and Esc closes it. O, held,
lists the players and their ping at the top of the screen. The two keys are ChatKey and ListKey
in DA_SocialSettings_Default.
M opens the world map on a map that has one (Pine Hollow). A left
click places a mark, the wheel changes its kind and a right click removes the nearest one. The key
is MapKey in DA_MapSettings_Default.
Weapon slots¶
1 to 4 draw the weapon worn at that position: 1 belt left, 2 belt right, 3 holster, 4 back. The same key pressed again stows it. The D-pad steps to the previous or the next position. Drawing and stowing take time, and drawing one weapon always stows the other, so you never hold two.
One action carries every position. The value of the mapping says which one: 1 to 4, and 5 and 6 for the two D-pad steps.
An AZERTY number row sends &, é, " and ', not Unreal's One to Four keys. Both are
mapped, along with the numeric keypad.
The apostrophe, which is 4 on an AZERTY keyboard, is also the key of the engine's Gameplay
Debugger in the editor and in Development builds. The template unbinds it (ActivationKey=None
under [/Script/GameplayDebugger.GameplayDebuggerConfig] in Config/DefaultEngine.ini). The
debugger stays reachable from the console with EnableGDT.
Pause¶
Esc opens and closes the pause menu. While you are placing a piece, it leaves placement first and the pause menu stays closed. With a context menu open, it closes that menu first and does not pause. A left click in the world closes a context menu too, and is then not an attack. To reach the pause menu from the editor, play a Standalone Game.
For the host, MAIN MENU and EXIT GAME save the world before leaving. When a client leaves, its character sheet stays with the host. The world stops only while the host plays alone.
At the wheel¶
Getting in swaps IMC_Player for IMC_Vehicle (in Inputs/Vehicle/), and getting out swaps it
back. The driving keys are rebound in OPTIONS, CONTROLS, under Vehicle, and a key may do
one thing on foot and another at the wheel. The driver keeps Esc, Tab, C, H and
P.
| Key | Gamepad | What it does |
|---|---|---|
| W / Z | RT | Throttle, in D and R. |
| S | LT | Brake. In N and R it holds the handbrake. |
| A D / Q D | left stick | Steer. |
| Space | bottom face button | Handbrake. |
| I | Ignition: starts the engine with the key in the ignition, otherwise asks to hotwire it (No key, and you don't know how to hotwire a car below Electrical 1 and Mechanics 2). | |
| R / F | D-pad up / down | Gear lever up and down (D, N, R). |
| K | D-pad right | Cruise control: holds the current speed while the throttle is released. Braking cancels it. |
| L | D-pad left | Headlights. |
| G (hold) | left stick click | Horn. |
| V (hold) | RB (hold) | The driver's vehicle radial: seats, engine, lights, horn, heater, window, locks, key, sleep. |
| E | left face button | Get out. |
On foot next to a vehicle, F (or RB) opens its outside radial
instead of the quick actions: get in, mechanics, trunk, locks, break a window, refuel, siphon. E
gets in directly when the vehicle is unlocked. With the target prompt on (bShowTargetPrompt), the
prompt reads Get in Coupe, or Coupe: It's locked.
The Controls window¶
The HUD shows the keys of the moment in its Controls window, bottom left, with the glyphs of the device you are using: the keys on foot when you walk (W A S D Move), the keys of the car at the wheel (A D Steer, E Get out). It starts unfolded in a player's first game. Fold it with the chevron of its title bar and it stays folded in the next games. It is the one window without a close button, because nothing would open it again.
Each line is an entry of WBP_ControlsWindow.ControlRows: an action, a label, bAtWheel and
KeyOrder, which says which keys of the action to show and in which order. Keep an action of the
vehicle context alone as the first line of the wheel: the window reads from it whether the player
drives. To have the window folded at the first game, untick StartExpanded and StartPinned on its
frame in WBP_HUD.
The radial menu¶
Hold F (or RB) for a quarter of a second and a ring of quick actions opens in the middle of the screen. It has eleven entries:
- Inventory
- Nearby
- Crafting
- Health
- Character
- Reload, only with a firearm in hand
- Belt (left)
- Belt (right)
- Build
- Time speed, only for a host playing alone: it steps x1, x2, x4 and back
- Sleep on the floor
Point at a sector with the mouse (its angle from the centre picks it) or with the right stick, and let go: that action runs. Let go in the centre, or with the mouse outside the ring, and nothing happens. While the ring is open, the survivor stands still and the prompt of what E would act on is hidden.
An entry whose condition is not met is not shown at all. The middle of the ring names the entry under the pointer. The reload ring and the vehicle radials keep an entry that cannot run, greyed, and write its reason under the ring while you point at it.
Change the radial menu¶
The entries are in DataAssets/UI/Childs/DA_RadialMenu_QuickActions (class PDA_RadialMenuDef),
one row per entry with a command tag, a label, an icon and an optional condition tag. An icon is a
white glyph on a transparent ground, 128 px, tinted by the widget. Give it mip maps, as the shipped
Textures/UI/T_UI_Icon* have, so that it stays smooth at 46 and 52 px. The colours of the ring are
parameters of MI_UI_RadialSectors, opaque by default so that the text of a window under the ring
does not show through. The dead zone is a Setting on WBP_RadialMenu, and the mouse reach is on
BP_ZSPlayerController.
The ring lays itself out from what each entry measures (WBP_RadialMenu.LayoutRing), within these
values:
| Property | Default | What it does |
|---|---|---|
RingSize |
512 | Width of the ring, up to RingGrowFrom entries. |
RingGrowFrom |
8 | Number of entries beyond which the ring grows. |
RingGrowPerEntry |
40 | What the ring gains for each entry beyond. |
RingMaxSize |
640 | Where the ring stops growing. |
LabelMaxWidth |
100 | Width at which the label of an entry wraps, under its icon. |
LabelRadius |
180 | Radius on which the entries stand, scaled with the ring, or farther out when an entry needs it. |
LabelDividerMargin |
6 | Clearance between an entry and the separators of its sector. |
RingEdgeMargin |
Clearance between an entry and the rim. | |
DenseFrom |
9 | Number of entries from which they take their smaller size: the font RadialLabelSmall of DA_UIStyle and a 46 px icon. |
MinEntryScale |
0.7 | If an entry still does not fit, the whole ring is drawn smaller by one factor, never under this one. |
CenterTextShare |
Share of the ring within which the text in the middle wraps. | |
UnavailableOpacity, UnavailableSelectedOpacity |
Opacity of an entry kept although it cannot run (bShowUnavailable), and of the same entry under the pointer. |
A new command takes a small graph change: a Command.* tag, one branch in
BP_ZSPlayerController.ExecuteQuickCommand (and in IsQuickCommandAvailable if it has a
condition), and a row in the Data Asset.
The window bar, and looting with the mouse¶
Down the left edge of the screen sits a column of five buttons, one per window.
| Button | Opens | Key |
|---|---|---|
| the crate | the loot pair | Tab |
| the magnifier | the loot window on its own | |
| the hammer | crafting | C |
| the heart | health | H |
| the figure | the character window | P |
A glyph lights up in the accent colour while its window is open. The close button of a title bar closes that window alone.
In the loot window, a column of icons pinned to the right edge picks what you loot from: one tile
per container in reach, with a picture of that piece of furniture, and the ground as the last tile.
The list shows one source at a time. Hovering a tile gives its name, and the window title names the
source you picked: a crate holding six stacks reads Crate 6. Walk out of reach of a piece of
furniture, or close the window, and the choice falls back to the ground.
Each title bar carries the button that empties its window into the other, Take all on the loot side and Put all on the bag side. With the ground selected, Take all picks up every item lying within reach, stack by stack, and a stack that does not fit stays on the floor. Put all drops the bag at your feet: each stack lands on the floor, shows up under the ground tile and can be picked up again. Dragging a single bag row onto the loot window does the same for that one stack.
Every row carries a 30 px icon, then the name, the category in the accent colour and the weight. The
icon is PDA_ItemDef.Icon, one texture per item.
Mouse actions outside the mapping context¶
The widgets handle these, and they do not appear in IMC_Player.
| Mouse action | What it does |
|---|---|
| Left-click an inventory row | Consumes an item. On a weapon it only selects the row, and a double click (or Equip in its menu) puts the weapon in hand. On a carried piece of furniture, starts placing it. On a piece of clothing in the bag, wears it. On a worn piece, takes it off. On a row of a worn bag, moves it back into the main bag. |
| Drag a row from one panel to the other | Moves the item between your bag and what is within reach: the ground, or the container picked in the source column. |
| Drag a row of what you carry out of every window | Drops the item at your feet. |
| Drag a row onto a tile of the inventory's strip (what you carry, then one tile per worn bag) | Moves it into that bag, or back out of it. Click a tile to see what that bag holds. |
| Right-click a row of the bag, of a worn bag or of the worn pieces | Opens the item menu at the mouse with the entries that apply. For a weapon it offers Equip and Stow on…, then the weapon slots that take it (Belt (left), Belt (right), Back…): the weapon leaves your bag and takes its place in the slot. |
| Right-click a slot in the weapon bar | Takes that weapon back into your bag. |
| Left-click a slot in the weapon bar | Draws it, or stows it if it is already in hand, as the number keys do. |
| Right-click a wounded zone in the health window | Opens the treatments that the current state of the zone allows. Entries whose item you do not carry are greyed out. |
| Health key over another survivor | Opens their health window so you can treat them. The same key again, or away from them, closes it. |
| Window title bars | Fold, pin, close and drag every panel. Each window comes back where you left it, folded or pinned as you left it, in your next game, on your own machine. A window is never left off screen, even after a change of resolution. |
Gamepad¶
Most of a game can be played on a controller. An action without a button of its own, such as the character window, is reached through the radial menu or the window bar.
A few things still need the keyboard and mouse. The context menu of the world is built for the mouse, and dismantling, upgrading, demolishing, picking up furniture and choosing a barricade kind all go through it. The chat, player list and world map keys have no gamepad button. A gamepad does not drag a stack between windows either: the item menu moves it instead. In the first person view, the gamepad has no look.
Menus¶
The interface runs on CommonUI, which is what makes the menus work with a gamepad. Each screen opens with a button focused: CONTINUE, or NEW GAME without a world, on the main menu, RESUME on the pause menu, CREATE CHARACTER on the death screen. The D-pad or the left stick moves the focus, the bottom face button confirms and the right one goes back. On a row of choices (an option, a body, an outfit), left and right change the value. The CONTROLS page is walked cell by cell: in the gamepad column, press the button to bind.
While the pause menu is open, the D-pad navigates the menu instead of switching weapons or zooming. The Menu button closes it again.
Windows and items¶
Opening the inventory from the gamepad (View, or the radial menu) gives the focus to the window bar. The D-pad walks up and down it, the bottom face button opens or closes that window and the right one returns to the game.
From the window bar, right enters the rows of the inventory or of the Nearby window, and a folded
window unfolds. Up and down go from row to row, left and right from one window to the other. The
bottom face button uses or takes the stack, the left one (E on a keyboard) opens its item menu
next to the row, the top one (Delete on a keyboard) drops it, and the right one steps back. The
keys the rows read are ItemMenuKeys and ItemDropKeys in DA_OptionsSettings_Default.
Glyphs¶
Blueprints/UI/BP_InputGlyphs_KBM and BP_InputGlyphs_Gamepad hold the pictures: the template's
own neutral key caps, and button diamonds that show the position of a button, with no brand colour
or letter.