Skip to content

Add build mouse fix to DOSC of Duke Nukem 3D, Shadow Warrior and Blood - #830

Open
PureDOS wants to merge 1 commit into
mainfrom
buildgamemousefix
Open

PureDOS wants to merge 1 commit into
mainfrom
buildgamemousefix

Conversation

@PureDOS

@PureDOS PureDOS commented Nov 16, 2026

Copy link
Copy Markdown
Owner

This PR adds a QOL mouse movement improvement to the 3 build games verified so far:

  • Duke Nukem 3D (1996) (3D Realms)
  • Duke Nukem 3D (1996) (3D Realms) (Shareware)
  • Duke Nukem 3D - Atomic Edition (1996) (3D Realms)
  • Shadow Warrior (1997) (3D Realms)
  • Shadow Warrior (1997) (3D Realms) (GOG, Steam)
  • Blood (1997) (Monolith Productions)

The patches then also apply to the entries that using one of them as a parent-DOSZ:

  • Shadow Warrior - Twin Dragon (1998) (Level Infinity)
  • Shadow Warrior - Wanton Destruction (2005) (Sunstorm Interactive)
  • Blood - Cryptic Passage (1997) (Sunstorm Interactive)

The used patch "BUILDMFX" is mentioned here: https://www.pcgamingwiki.com/wiki/Blood#Buildmfx

Though the patch was only applied verbatim to Duke Nukem 3D. For Shadow Warrior and Blood the Y axis multiplier was halved to make it feel as good as in Duke Nukem 3D. I tested this by launching the games, pressing U (to enable mouse looking) and I (to enable the crosshair) and then doing circular mouse movements. With the patch my circular movements are reflected nicely in the games. For games that don't have a "Invert Mouse Aim" option in the game, the Y axis can be flipped by changing the factor from 1.0 to -1.0 in the advanced input settings of the Setup Program.

This is the original patched code bytes from the BUILDMFX.EXE tool:

0xEB, 0x4C, 0x8B, 0x16, 0x0F, 0xAF, 0xD0, 0xC1, 0xE2, 0x05, 0xC1, 0xFA, 0x0F, 0x89,
0x16, 0x0F, 0xAF, 0x03, 0x6B, 0xC0, 0x60, 0xC1, 0xF8, 0x0F, 0x89, 0x03, 0xEB, 0x41

for Shadow Warrior and Blood I modified it to

0xEB, 0x4C, 0x8B, 0x16, 0x0F, 0xAF, 0xD0, 0xC1, 0xE2, 0x05, 0xC1, 0xFA, 0x0F, 0x89,
0x16, 0x0F, 0xAF, 0x03, 0x6B, 0xC0, 0x30, 0xC1, 0xF8, 0x0F, 0x89, 0x03, 0xEB, 0x41

The 0x60 was halved to 0x30 because otherwise vertical mouse movement would be twice as strong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant