Skip to content
Go to file

Latest commit

Ported original code from ioquake3.

Added function for ignoring (replaced by the default weapon) weapon that are in the maps.
Usage: resetIgnoredWeapons(); // Clears the list
This should be called previous map. Because these weapons are loaded before GSC scripts are called.

Git stats


Failed to load latest commit information.
Latest commit message
Commit time

The Call of Duty extension libcod is adding new server-side functions to:

  • Call Of Duty 2 1.2
  • Call Of Duty 2 1.3
  • Call Of Duty 4 1.7


dpkg --add-architecture i386
apt-get update
apt-get install gcc-multilib
apt-get install libmysqlclient-dev:i386
apt-get install g++-multilib

Precompiled shared libraries:

Starting the server: ./cod2_lnxded +set fs_game ...

Some enviroments need LD_LIBRARY_PATH also:

LD_LIBRARY_PATH=. ./cod2_lnxded +set fs_game ...

Working with the source / Compiling:

./ tar
./ base # compiles object files needed by every .so
./ cod1_1_5 # compiles object files for CoD 1 1.5 and linking them against base to the actual bin/
./ cod2_1_2
./ cod2_1_3
./ cod4_1_7
./ wrapper

Mods depending on libcod:

Little overview of added functions:

  • MySQL
  • setVelocity, getVelocity, addVelocity (needed for the mods: portal, surf)
  • keyPressed-functions for left, right, forward, backward, leanleft, leanright, jump etc., (needed for: surf, doublejump made by IzNoGod)
  • blazing fast astar-implementation (needed for: zombots)
  • setAlive-function (needed for: zombots, so xmodels are damagable without damage-trigger... zombots in stockmaps)
  • disableGlobalPlayerCollision()

Community / Help:

Porting libcod to a new Call Of Duty: find . -name '*.c*' | xargs grep -n _VERSION

You can’t perform that action at this time.