Download the patch here.

The following documentation is included in the archive as "trflight-readme.html".


Tomb Raider 2/3/4 flight mode patch, version 0.1

How to use the patch

  1. Get the latest Tomb Raider update. The patch won't work with old versions.
  2. Put trflight.exe in the same directory as the Tomb Raider executable (tombX.exe, where X is 2, 3, or 4), and run it. When prompted, press a key that you haven't assigned to any other function in the game.
  3. Run tombXcheat.exe, which was created in the previous step. To enter the cheat mode, press the key you chose earlier. To return to normal, press the "walk" key (Shift by default).

How it works

This patch adds code to the Tomb Raider executable which checks for the press of a certain key, and when it's detected, modifies some internal variables. Most of these have the effect of putting the game in "swim mode." One of them causes the game not to notice that it shouldn't be in this mode. It also causes Lara to become invincible and never run out of air.

To make room for the patch, I space-optimized some inefficient code in the keyboard handler, which freed up a remarkable amount of space--much more than I needed for my patch. Right now the excess is filled with NOP instructions, but if you wanted to add a patch of your own, you could put it here.

Known bugs

TR2, TR3, and TR4

TR3 and TR4 only

TR4 only

Distribution conditions

I would prefer that you link to my page at www.math.berkeley.edu rather than duplicating this patch elsewhere, since this makes it much easier for me to provide updated versions should the need arise. If you do propagate the patch, please do not misrepresent my work. This means that if you change this file or trflight.exe or if you bundle additional files, you should make it very clear that the changes or additions are yours and not mine.