Call of Duty 4: Weapons Modding: Difference between revisions

From COD Modding & Mapping Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 4: Line 4:
[[Category:Weapons]]
[[Category:Weapons]]
''by URBAN_LOGAN''<br><br>
''by URBAN_LOGAN''<br><br>
[[Image:Nutshell.png]] This tutorial will show you how to create a weapon mod.
[[Image:Nutshell.png]] This tutorial will show you how to create a weapon mod.
 
<br><br>
 
*Create a new folder in CoD4/Mods called whatever you want, my example will be: "UberMod"
*Create a new folder in CoD4/Mods called whatever you want, my example will be: "UberMod"
*Use WinRar to extract the "Weapons" folder from iw_11.iwd in CoD4/main into my CoD4/Mods/Ubermod folder.
*Use WinRar to extract the "Weapons" folder from iw_11.iwd in CoD4/main into my CoD4/Mods/Ubermod folder.
*Open ModBuilder.exe
*Open ModBuilder.exe
*Selected "UberMod" from the drop down list titled "Mod" in the first tab "CSV Creator"
*Selected "UberMod" from the drop down list titled "Mod" in the first tab "CSV Creator"
*Look through the list on the left (Files) and start moving the things you want to mod to the right (CSV). For example: "UberModweaponsspak47".
*Look through the list on the left (Files) and start moving the things you want to mod to the right (CSV). For example: "UberModweaponsspak47".
*Click New CSV, leave the setting at 'blank', and type in your mod name, UberMod, in this case.
*Click New CSV, leave the setting at 'blank', and type in your mod name, UberMod, in this case.
*Click the "MOD Builder" tab. Select UberMod from the drop down menu (Mod).
*Click the "MOD Builder" tab. Select UberMod from the drop down menu (Mod).
 
*In the two big boxes, you'll get two lists. The list on the left is basically a list of the resources currently in your CSV file. The list on the right is all the files in your MOD folder (CoD4/Mods/UberMod)
In the two big boxes, you'll get two lists. The list on the left is basically a list of the resources currently in your CSV file. The list on the right is all the files in your MOD folder (CoD4/Mods/UberMod)
<br><br>
 
'''Go ahead and check the things you want to mod (weaponsspak47 in this case)'''<br><br>
'''Go ahead and check the things you want to mod (weaponsspak47 in this case)'''<br>
*Make sure "Build Fast File" and "Build IWD File" are checked.
*Make sure "Build Fast File" and "Build IWD File" are checked.
*Click Build Mod. At the bottom it will say "Building Fast Files...", so give it some time.
*Click Build Mod. At the bottom it will say "Building Fast Files...", so give it some time.
*Copy your CoD4 shortcut (singleplayer or multiplayer, whichever you modded). Right click it---> Properties. Then add to the target line:[ +set fs_game "mods/UberMod"] (copying only inside the brackets). This is your new shortcut to run your mod.
*Copy your CoD4 shortcut (singleplayer or multiplayer, whichever you modded). Right click it---> Properties. Then add to the target line:[ +set fs_game "mods/UberMod"] (copying only inside the brackets). This is your new shortcut to run your mod.
<br><br>
<br><br>
Line 36: Line 25:
*Open 'ak47' with notepad.
*Open 'ak47' with notepad.
*Gaze at the strange complicated mess of code. Everything is fairly self-explanatory once you figure out the pattern.
*Gaze at the strange complicated mess of code. Everything is fairly self-explanatory once you figure out the pattern.
 
<br><br>
  For example: fireTypeFull Auto
  For example: fireTypeFull Auto


Fire type can be "Single Shot", "Full Auto", "2-Round Burst", "3-Round Burst", or "4-Round Burst". Without the quotes. Be sure to type it in exactly.
Fire type can be "Single Shot", "Full Auto", "2-Round Burst", "3-Round Burst", or "4-Round Burst". Without the quotes. Be sure to type it in exactly.
 
<br>
I changed it to: '''fireType2-Round Burst'''
I changed it to: '''fireType2-Round Burst'''
 
<br>
If you're having trouble finding certain lines, use the search function (cntrl+f) then put in "fireType".
If you're having trouble finding certain lines, use the search function (cntrl+f) then put in "fireType".
 
<br>
So, next we'll change the clipsize.
So, next we'll change the clipsize.



Revision as of 21:34, 5 November 2008

by URBAN_LOGAN

This tutorial will show you how to create a weapon mod.

  • Create a new folder in CoD4/Mods called whatever you want, my example will be: "UberMod"
  • Use WinRar to extract the "Weapons" folder from iw_11.iwd in CoD4/main into my CoD4/Mods/Ubermod folder.
  • Open ModBuilder.exe
  • Selected "UberMod" from the drop down list titled "Mod" in the first tab "CSV Creator"
  • Look through the list on the left (Files) and start moving the things you want to mod to the right (CSV). For example: "UberModweaponsspak47".
  • Click New CSV, leave the setting at 'blank', and type in your mod name, UberMod, in this case.
  • Click the "MOD Builder" tab. Select UberMod from the drop down menu (Mod).
  • In the two big boxes, you'll get two lists. The list on the left is basically a list of the resources currently in your CSV file. The list on the right is all the files in your MOD folder (CoD4/Mods/UberMod)



Go ahead and check the things you want to mod (weaponsspak47 in this case)

  • Make sure "Build Fast File" and "Build IWD File" are checked.
  • Click Build Mod. At the bottom it will say "Building Fast Files...", so give it some time.
  • Copy your CoD4 shortcut (singleplayer or multiplayer, whichever you modded). Right click it---> Properties. Then add to the target line:[ +set fs_game "mods/UberMod"] (copying only inside the brackets). This is your new shortcut to run your mod.



Now, to actually mod the weapon you want. In this example I'll use the AK47.

  • Go into CoD4ModsUberModweaponssp
  • Open 'ak47' with notepad.
  • Gaze at the strange complicated mess of code. Everything is fairly self-explanatory once you figure out the pattern.



For example: fireTypeFull Auto

Fire type can be "Single Shot", "Full Auto", "2-Round Burst", "3-Round Burst", or "4-Round Burst". Without the quotes. Be sure to type it in exactly.
I changed it to: fireType2-Round Burst
If you're having trouble finding certain lines, use the search function (cntrl+f) then put in "fireType".
So, next we'll change the clipsize.

Original: clipSize30
Mine: clipSize20

Optionally, you can adjust the other ammo stats, such as maxAmmo, dropAmmoMin, dropAmmoMax to fit. IE if I changed the gun instead to have a 300 round clip, but left the 'maxAmmo' attribute as the original, you would only be able to hold 1 clip at a time.

Heres the codes for weapon damage:

  • damage100

Base weapon damage, I think enemies have 200 health, since all the one-shot kill weapons are 200 damage.

  • minDamage85

I can only guess that this means the weapon ranges between 85 and 100, ie 85-100 damage.

  • meleeDamage200

This is 'knife' damage. The reason this code is in EVERY weapon, but ALL the same value, is because in the original call of duty games each weapon had a different melee damage, because the melee attack was 'rifle-bash'. So pistol-whipping did less than M1 Garand-whipping.

  • maxDamageRange1024

Not sure on these values, I think it means that at 1024 units, the weapon deals the max damage (100).

  • minDamageRange2400

And at 2400 meters, it deals the minimum damage (85)

You'll notice that shorter-ranged weapons have smaller values (shotguns, pistols, etc)

playerDamage50 How much damage the gun deals to the player from the hands of an enemy. No idea how much health the player has. I think 200, but different difficulty settings may change that (or damage modifiers).

So, I changed it to: damage200minDamage200meleeDamage200maxDamageRange 2500minDamageRange5000playerDamage150