GithubHelp home page GithubHelp logo

radziejewicz / libcod Goto Github PK

View Code? Open in Web Editor NEW

This project forked from m-itch/libcod

0.0 0.0 0.0 1.76 MB

Server extension for CoD2 1.0, 1.2 and 1.3

Home Page: https://killtube.org

C++ 97.94% Shell 2.06%

libcod's Introduction

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 developer for many function/typedef references, thanks!

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

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

libcod's People

Contributors

voron00 avatar m-itch avatar kungfooman avatar iznogod avatar damage99 avatar lonsofore avatar riicchhaarrd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.