Command and Conquer 3 Tiberium Wars
C&C 3 AutoReplay Source Code
Open source approved! You will also need to download Visual Studio 2005 (C# IDE) to work with the source code. You can get this free download from Microsoft here.
C&C 3 AutoReplay, a utility that automatically saves replays to your replays folder while you're playing the game, is now open-source. This means that you can download the source code of the program and modify it as you see fit.