Skip to content

M-itch/libcod

This branch is 349 commits ahead of kungfooman/libcod:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e58d6a0 · Nov 18, 2022
Feb 14, 2021
Jan 31, 2021
Feb 18, 2021
Feb 18, 2021
Feb 17, 2021
Oct 22, 2017
Nov 4, 2017
Nov 9, 2022
Feb 18, 2021
Nov 9, 2022
Nov 16, 2022
Nov 9, 2022
Dec 7, 2017
Nov 17, 2017
Nov 20, 2017
Nov 20, 2017
Oct 30, 2017
Nov 4, 2017
Feb 15, 2021
Feb 15, 2021
Oct 22, 2017
Nov 4, 2017
Jan 31, 2021
Nov 4, 2017
Apr 1, 2022
Dec 29, 2021
Jan 18, 2021
Jan 14, 2019
Nov 16, 2022
Nov 16, 2022
Jan 17, 2021
Jan 13, 2019
Dec 29, 2021
Jan 31, 2021
Nov 9, 2022

Repository files navigation

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

  • Call Of Duty 2 1.0
  • Call Of Duty 2 1.2c (1.2a not supported)
  • Call Of Duty 2 1.3

Requirements:

g++ (multilib for x64)
MySQL (optional)
SQLite (optional)

Working with the source / Compiling:

./doit.sh cod2_1_0
./doit.sh cod2_1_2
./doit.sh cod2_1_3

Starting the server:

export LD_PRELOAD="$HOME/cod2_1_0/libcod2_1_0.so"
./cod2_lnxded +set fs_game ... +set dedicated 2 ...

Little overview of added functions:

  • MySQL
  • SQLite
  • Linux shell command execution (adds tons of possibilites like executing external scripts, commands and pass their output to GSC)
  • 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)
  • setAlive-function (needed for: zombots, so xmodels are damagable without damage-trigger... zombots in stockmaps)
  • disableGlobalPlayerCollision() also disableGlobalPlayerEject()
  • native bot functions (bots can move, shoot, jump, melee, ads, set stance)
  • weapon-functions (get/set weapon damage, firetime, maxammo without editing their files)

Engine fixes:

  • Faster download for CoD2 1.0
  • Directory traversal fix
  • Weapon struct segfault fix
  • Rate Limiter

Credits to CoD4x developers for many function/typedef references, thanks!

Community / Help: http://killtube.org/forum.php
Function documentation: https://github.com/M-itch/codscriptdoc

About

Server extension for CoD2 1.0, 1.2 and 1.3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 98.1%
  • Shell 1.9%