Thanks for the reply, Where is the gametype.gsc located?
Printable View
Thanks for the reply, Where is the gametype.gsc located?
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
and placeCode:[[level.callbackStartGameType]]();
just before it such as;Code:disableGlobalPlayerCollision();
Now all you need to do it edit your old launch configuration and set fs_game to mymodCode: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
}
}
Code:LD_LIBRARY_PATH=. LD_PRELOAD=libcod2_1_3_nomysql.so ./cod2_lnxded +set fs_game mymod +set net_ip .....
Thank you all for the help now working fully and now know what im doing lol :)
Is there anyway to find these same files in Cod4? These files are not in any of the "iw_xx.iwd" files
Download cod4 mod tools and go to cod4/raw/.
http://callofduty.filefront.com/file...od_Tools;85947 (v1)
http://callofduty.filefront.com/file/;86101 (v1.1 update)
Mirror #2
http://www.gamershell.com/download_22849.shtml (v1)
http://www.gamershell.com/download_22930.shtml (v1.1 update)
Download the mod tools, look in raw folder. Look for the globallogic file (iirc), as the scripts moved from the gametype gscs into one big obfuscated-ish file.
Aah thanks! I could have known that :p