So pistol-whipping did less than M1 Garand-whipping. 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'.
Here are example codes for weapon damage: 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. Optionally, you can adjust the other ammo stats, such as maxAmmo, dropAmmoMin, dropAmmoMax to fit. If you're having trouble finding certain lines, use the search function (cntrl+f) then put in 'fireType'. Let's changed it to: fireType2-Round Burst Everything is fairly self-explanatory once you figure out the pattern.įire type can be 'Single Shot', 'Full Auto', '2-Round Burst', '3-Round Burst', or '4-Round Burst'. Look at the strange complicated mess of code.
Now, to actually mod the weapon you want.
This tutorial will show you how to create a weapon mod.