Skip to content

Latest commit

 

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COD QoL for Linux

Quality-of-life tweaks for Call of Duty on Linux: FOV, FPS, a console for a few games and a few visual overrides.
It uses pika to patch the running game.

Supported games

Game Executables Status
Call of Duty 4 iw3sp.exe, iw3mp.exe Experimental
World at War CoDWaW.exe, CoDWaWmp.exe Verified
Modern Warfare 2 (2009) iw4sp.exe, iw4mp.exe Verified
Black Ops BlackOps.exe, BlackOpsMP.exe Verified
Modern Warfare 3 (2011) iw5sp.exe, iw5mp.exe Verified
Black Ops II t6sp.exe, t6mp.exe, t6zm.exe Experimental
Ghosts iw6sp64_ship.exe, iw6mp64_ship.exe Verified
Advanced Warfare s1_sp64_ship.exe, s1_mp64_ship.exe Verified**
Black Ops III BlackOps3.exe Verified*

*Black Ops III is verified only in Zombies.

**Advanced Warfare is verified only in Campaign and Multiplayer.

Requirements

  • A supported game running under Wine or Proton
  • pika or this fork on PATH (see Black Ops III)
  • jq and bash
  • flock, for the per-game instance lock
  • GNU binutils and gawk, for Black Ops III FOV scaling

Usage

Standalone

/path/to/script/cod-qol.sh --fov 90 --fov-scale 1.2 --fps 125

Wrapper

/path/to/script/cod-qol.sh --fov 80 --fov-auto 120 --fps 250 -- %command%

Keep debug.sh (for --debug) and bo3-fov.s (for Black Ops III FOV scaling) next to the script.

Flags

Flag Values Controls
--fov decimal, 1 to 180 Base cg_fov (hip-fire FOV)
--fov-auto decimal, 60 to 120 Target horizontal FOV at 16:9
--fov-scale decimal, 0.2 to 2 cg_fovScale
--fps integer, 0 to 1000 com_maxfps
--lodbias decimal, -1000 to 0 r_lodBiasRigid and r_lodBiasSkinned
--lodbias-model decimal, 0 to 10 r_modelLodBias
--dof 0 or 1 r_dof_enable
--fog 0 or 1 r_fog
--console none Stock console (see Console)
--trust-addresses none Use the saved addresses without checking them
--address-file path Address cache location (default ~/.cache/cod-qol/addresses.conf)
--debug none Verbose log in $XDG_RUNTIME_DIR, followed in a terminal in wrapper mode

An unknown flag or an invalid value prints an error and is skipped, and the other flags still apply.
Black Ops III differs on several flags (see Black Ops III).

Settings file

~/.config/cod-qol/settings.conf, with one section per game executable.
Keys are the flag names without --.
Command-line flags override the file.

[BlackOps3.exe]
fov-auto = 105
console = 1

[iw5mp.exe]
fov = 100
fps = 300

The flags --trust-addresses, --address-file and --debug can't be set in the file.
An invalid entry is skipped the same way as a flag, and a section that sets both fov-auto and fov-scale uses fov-scale.

Console

The console patches change game code at fixed addresses, so after a game update they stop with an error and change nothing.

Console is added to:

  • World at War (Multiplayer)
  • Black Ops (Campaign, Zombies)
  • Modern Warfare 3 (Multiplayer)
  • Black Ops III

Modern Warfare 2, Modern Warfare 3 (Campaign), Black Ops II, Ghosts and Advanced Warfare are not supported.
Slashless console input is patched automatically without --console.

FOV scaling

--fov-auto approximates the Affected ADS setting of newer titles by setting cg_fovScale from the base cg_fov
and a target horizontal FOV at 16:9. It follows cg_fov as you change it in game, unless --fov locks the base.

Black Ops III

Supported build: 24784313.

  • --fov takes 60 to 120 and sets the in-game slider.
  • --lodbias sets the rigid dvar only, and --lodbias-model exists only here.
  • --fps and --trust-addresses are ignored.

The console, ADS depth of field and FOV scaling patch game code, so the script disables Arxan's integrity checks first.
This is skipped if T7 Patch is used.

Disabling the checks without T7 Patch needs pika with patch-batch and restore-batch with --suspend,
which this fork provides. Everything else works with upstream pika.

License

MIT. See LICENSE.

Releases

Packages

Contributors

Languages