Call of Duty, wildly recognized as one of the greatest World War 2 games, gets a face lift with this sequel. The sequel to Call of Duty, the 2003 Game of the Year and winner of more than 80 awards, Call of Duty 2 offers more immense, more intense, more realistic battles than ever before, thanks to the stunning visuals of the new Call of Duty 2 engine.

Report article RSS Feed Weapons scripting for CoD2

This is a tutorial for beginners who want to know how to mod weapons for CoD2. In this tutorial, we will conver singleplayer weapons.

Posted by Snafu7 on Nov 23rd, 2005
Basic Client Side Coding.

[page=Introduction]
This is a tutorial for beginners who want to know how to mod weapons for CoD2. In this tutorial, we will conver singleplayer weapons. Firstly, I reccomend you have the program winRAR, because that's what I'm goingti be using in the tutorial, but you can also use pakscape, and probably winzip.

[page=How to script Weapons for CoD2]
Ok, first, go into your Call of Duty 2 main folder, and open up your iw_13 .iwd file.

After you have that open, highlight the weapons folder.

Once you have it highlighted, click on the extract to button at the top of the page, and extract the folder to your desktop.

Now open up the folder, and you will see two more, mp and sp. For this tutorial we'll modify the single player game, so double click on sp.

Now you'll see a bunch of different files with the names of weapons in the game, for now, just open up the file called "thompson."

Right now, you'll have to open up the file with notepad, or some similar word program.

Many of these options are self explainitory, here's a brief explination of what some of them do.

maxAmmo-The maximum amount of ammo you can carry in the gun.
startAmmo-The amount of ammo you will start with when you spawn with this gun.
clipSize-The amount each clip can hold.
fireTime-How fast the gun fires, the lower the number, the faster the gun will fire.

Now lets just change the clip size of the thompson from 20 to 30. Then save the file, and go back to the sp screen. Once you are there, delete everything besides the file you edited, in this case the "thompson" file. You should also delete the mp folder.

Ok, now we have the weapons folder sitting in your desktop, and we still have to turn it into a .IWD file. So, since there is no way to create .IWDs(as far as I know anyways) just copy and paste one from your main folder(in this case copy iw_13 and paste it to your desktop).

Now, go into the copied IWD file, and delete everything except for thw weapons folder. Open that up and delete the mp file. Now go back once more so you can only see the folder "weapons."

Now drag your weapons folder that is on your desktop into this screen, and allow it to overwrite all the files it needs to. Then close the .IWD file, and right click, and rename it. Lets call it zzz_mymod.

Now open up your main folder again, and place the zzz_mymod .IWD file in there. Now that the files is in your main folder, close it and start up your Call of Duty 2 Single Player game.

And there we go! The thompson now had 30 rounds in it's clip! Congratulations on completing your first Mod!

If you have and comments or suggestions, or if you are having problems with your mod, feel free to send an email to me at snafu7.matt@gmail.com

Good Luck, and happy modding!

Post comment Comments
meowmix4jo
meowmix4jo Dec 20 2005, 12:55pm says:

actually you cna make iwd files and it is very easy,if you do it right,you need winrar and all you do is selet the files you want it to have in it,and right click on them,add to archive,name the archive whatever.iwd(no spaces or game will crash) and(very important) MAKE SURE YOU SELECT STORE AND NOT COMPRESS IF YOU COMPRESS THE FILES THE GAME CAN NOT READ THEM...otherwise thats it just move the iwd file into your main folder...

im working on my own COD2 mod right now for multiplayer...there will be several new guns and guns that only come out in single player now available in multi...however for new guns theree wil be no new models...i cant figure out what program yhou use to open them...so if nyone knows email me :)

meowmix4jo@sbcglobal.net

+1 vote     reply to comment
meowmix4jo
meowmix4jo Apr 22 2006, 1:19pm says:

well ive gotten several IWD files from pple askin for help so heres a little update...i found out that you can only use ZIP, so make sure you dont use RAR, the just change the extension, and also you can compress, but the game wasn reading mine before because of another problem, but i didnt know at the time so thought it was that, but yeah email me with any questions, you can donwload the latest public release of ym mod here

Files.filefront.com

im gettting ready for my final release of that one wich is almost done and has tons of new features :D

+1 vote     reply to comment
kmg0
kmg0 Jun 29 2006, 3:23pm says:

The game won't read zzz_mymod.iwd even though it was "stored". Would you know why?

+1 vote     reply to comment
yeskay
yeskay May 28 2008, 5:54am says:

thats nice man :)

+1 vote     reply to comment
Un_dead
Un_dead Jun 1 2008, 4:41am says:

what do i open it with

Dead

Jellybrain@gmail.com

+2 votes     reply to comment
Un_dead
Un_dead Jun 11 2008, 10:16am says:

dude r u sure that its number 3 and not another one

+1 vote     reply to comment
dvd604
dvd604 May 29 2009, 4:46pm says:

what do i open iw_13 with :( note pad or what like

+1 vote     reply to comment
explo32
explo32 Feb 22 2011, 6:13am replied:

To opem IWD's you need Pakscape or winrar (or similar program).

+1 vote     reply to comment
jnoonfelt
jnoonfelt Apr 13 2012, 11:02pm replied:

It can be opened with programs like winrar, pakscape, and winzip. I use 7zip.

+1 vote     reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Icon
Call of Duty 2
Platform
Windows
Developer
Infinity Ward
Publisher
Activision
Engine
IW Engine
Contact
Send Message
Official Page
Infinityward.com
Release Date
Released Oct 22, 2005
Game Watch
Track this game
Tutorial
Browse
Tutorials
Report Abuse
Report article
Related Games
Call of Duty 2
Call of Duty 2 Single & Multiplayer First Person Shooter