All work

Project 03 , Security & systems

Mordhau — Runtime Memory Patching

A C++ DLL injected into Mordhau's Unreal Engine 4 client that patches memory at runtime to change field-of-view, turn-rate, movement and cooldown limits.

Year
Fall
Stack
C++ · DLL injection · Memory patching · Reverse engineering · Unreal Engine 4
The tool's in-game menu over Mordhau's loadout screen, with a Cosmetics panel of armour IDs, a Gameplay panel of checkboxes and FOV 130, TurncapX 315 and TurncapY 290 sliders, and a usage and hotkeys panel.

TL;DR

A cheat I wrote in 2021 for the sword-fighting game Mordhau, and sold access to. It adds options the game does not offer, like a wider field of view and armour that was only sold before launch. I also handled the access keys, the menu and user support.

Key points

  • Patched a live Unreal Engine 4 game's memory at runtime through an injected DLL.
  • Shipped as two packages, Cosmetic and Gameplay; the Cosmetic package was the most popular.
  • Exposed in-game controls for field of view, turn-rate caps, crouch and dodge cooldowns, warm-up movement, and idle-kick prevention.
  • Built user authorization plus access-key distribution and management around the tool.
  • Handled the tool's UX and end-user tech support, working from client feedback.

Problem

Mordhau’s stock client leaves out options players wanted — including a wider field of view, which proved very popular with users.

Approach

I reverse-engineered the running Unreal Engine 4 client, then wrote a C++ DLL that is injected into the game and patches its memory at runtime. Each change is exposed as a control in an in-game menu, so values can be adjusted while playing.

What I built

Memory patching through DLL injection. The core of the tool, running inside the live client.

Gameplay package

Ten toggles: field of view; the turn restrictions applied during combat (TurncapX and TurncapY); instant crouch and dodge; dodge for the current class; movement while emoting; movement during the match-start warm-up; faster sprint; automatic parry; and protection from being kicked for inactivity.

Figure 1: Field-of-view demo recording. Field of view was the gameplay option that proved very popular with users.

Cosmetic package

An in-game panel for setting the armour ID of each slot, which let users wear Kickstarter-only cosmetics. It was the more popular of the two.

The Cosmetics panel beside a gold-armoured knight, with ID fields for helm 43, neck 0, shoulder 6, chest 5, arm 33, glove 12, waist 0, legs 19 and foot 2.
Figure 2: Pick an armour ID per slot to wear gear that was only sold before the game launched (Kickstarter content). Full size of figure 2

Access control and support

  • Access control. User authorization, plus distribution and management of access keys.
  • Support. The tool’s UX, and tech support for its users.

Outcome & lessons

Releasing the tool to real users stretched the project well past the reverse engineering: authorization, key management, UX, tech support and client feedback all became part of the work.

Parker Jackim Columbia, MD
Write an email