Skip to content

damage99/libcod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

02fb667 · Jun 28, 2022

History

54 Commits
Feb 26, 2021
Oct 27, 2017
Feb 26, 2021
Oct 15, 2017
Nov 13, 2017
Feb 26, 2021
Feb 26, 2021
Feb 26, 2021
Feb 26, 2021
Feb 26, 2021
Mar 11, 2018
Nov 21, 2017
Jan 17, 2019
Jan 17, 2019
Jan 9, 2019
Nov 13, 2017
Feb 26, 2021
Feb 26, 2021
Feb 20, 2020
Feb 20, 2020
Oct 24, 2017
Nov 13, 2017
Nov 21, 2017
Nov 21, 2017
Feb 20, 2020
Feb 20, 2020
Feb 26, 2021
Jul 17, 2020
Feb 20, 2020
Feb 20, 2020
Jan 20, 2021
Jun 28, 2022

Repository files navigation

[LibcoD]

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

  • Call Of Duty 2 1.0
  • Call Of Duty 2 1.2
  • Call Of Duty 2 1.3

Requirements:

g++ (multilib for x64)
MySQL (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 ( kung foo man & IzNoGod, Voron versions )
  • 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)
  • Dynamic control of player collisions, eject (Cvars: g_PlayerCollision, g_PlayerEject)
  • native bot functions (bots can move, shoot, jump, melee, ads, set stance)
  • weapon-functions (get/set weapon damage, firetime, maxammo without editing their files)
  • Print path to script if an error occurs ("Started from:", "Called from:"; position cycle in code: "infinity loop error"; etc.) in developer mode = 0 (developer 0)

Engine fixes:

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

Community / Help: http://killtube.org/forum.php

CoD1 users: Libcod support for CoD1 was very basic and without almost all functions and it's been dropped. Use php's CoDExtended: https://github.com/riicchhaarrd/CoDExtended

CoD4 users: use CoD4x: https://github.com/callofduty4x/CoD4x_Server