Skip to content
prd0njaPublic

About

A source reconstruction of cod4rad.exe.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

cod4rad

A source reconstruction of cod4rad.exe, the lighting compiler from the Call of Duty 4 mod tools, recovered from the shipped 2007 binary.

Requirements

  • Visual Studio 2019 or later with the x86 (32-bit) C++ toolset installed (Desktop development with C++ → "MSVC ... C++ x64/x86 build tools")
  • CMake 3.21 or later

Build

cmake -B build -A Win32
cmake --build build --config Release

The executable is written to bin\cod4rad.exe.

Usage

cod4rad -platform pc raw\maps\mp\<mapname>

Run it from the Call of Duty 4 mod tools directory.

Notes

The build uses /arch:IA32 /fp:precise on purpose: the original is an x87 build, and SSE2 code generation changes floating-point results and therefore the output bytes.

About

A source reconstruction of cod4rad.exe.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages