Originally Posted by
Moolster
I had no maps folder so i created the folders required in main and made a _callbacksetup.gsc in there with the command disableGlobalPlayerCollision();. But its not working im afraid.
First off, stop using the main folder to put your mods.
Go to the CoD2 directory, create a new folder (Name it mymod for now).
Go inside the newly created mymod folder, create another 3-4 folders (mymod/maps/mp/gametypes).
Go to your main folder, find and open iw_07.iwd with winrar.
Go to maps/mp/gametypes and look for _callbacksetup.gsc.
Copy that file into the gametypes folder you created in the mymod folder.
Then open your freshly copied _callbacksetup.gsc, find
Code:
[[level.callbackStartGameType]]();
and place
Code:
disableGlobalPlayerCollision();
just before it such as;
Code:
CodeCallback_StartGameType()
{
// If the gametype has not beed started, run the startup
if(!isDefined(level.gametypestarted) || !level.gametypestarted)
{
disableGlobalPlayerCollision();
[[level.callbackStartGameType]]();
level.gametypestarted = true; // so we know that the gametype has been started up
}
}
Now all you need to do it edit your old launch configuration and set fs_game to mymod
Code:
LD_LIBRARY_PATH=. LD_PRELOAD=libcod2_1_3_nomysql.so ./cod2_lnxded +set fs_game mymod +set net_ip .....