Skip to content

Caball009/Call-of-Duty-4-X-Demo-Rewinding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

Call of Duty 4 (X) Demo Rewinding

This is a proof-of-concept to show how one can rewind Call of Duty (X) 4 demos. Unlike some later Call of Duty's, CoD4 does not have 'native' support for demo rewinding.

How to use

Import the two .cpp files and the header file in a new dll project, compile as x86, and inject the compiled dll into Call of Duty 4 (X) before playing back a demo. The default buttons for interaction are as follows:

  • Right control button for rewinding one time (1000 ms by default). To rewind more you can simply keep right ctrl pressed down;
  • Right alt button to rewind all the way back to the beginning;
  • Right shift button to eject the dll. It's not recommended to use this while the demo is playing.

Tested on

This was tested on Call of Duty 4 v1.7, Call of Duty 4 X v19 - v21.

Bugs

There's a myriad of glitches/bugs that occur infrequently; this seems to exacerbate when you keep rewinding. For the majority of the time it works as intended, though.

Miscellaneous

Commercial use and any (implicit) financial gain is prohibited. Credits would be appreciated if you use this code, or parts of it.

Releases

No releases published

Packages

No packages published

Languages