How to install cod2 on linux

Step 7 (Optional): Starting CoD2 with libcod

If you want to use libcod, make the following changes to your startup script:

#!/bin/bash

sv_maxclients=“32″
fs_game=“your_mod_folder_here“
fs_homepath=“/home/USER_HERE/YOUR_COD_DIR“
cod=“/full/path/to/cod2_1_3_lnxded“
com_hunkMegs=“256″
config=“configfile.cfg“
cracked=“1″
net_port=“28960″

args=\
„+set fs_homepath \“$fs_homepath\“ „\
„+set sv_cracked $cracked „\
„+set fs_game $fs_game „\
„+set net_port $net_port „\
„+set com_hunkMegs $com_hunkMegs „\
„+set sv_maxclients $sv_maxclients „\
„+set fs_basepath \“$fs_homepath\“ „\
„+exec $config“

LD_PRELOAD=“relative/path/to/libcod2_1_3.so“ $cod $args +set g_gametype tdm +map mp_toujane

The only significant difference is that libcod is loaded before the dedicated server by using the LD_PRELOAD environment variable.