Coder Social home page Coder Social logo

call-of-duty-4-x-demo-rewinding's Introduction

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.

call-of-duty-4-x-demo-rewinding's People

Contributors

caball009 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.