Banner
Black Ops Cold War XM4
Thumbnail
Downloads6,848
Views20,985
Publish Date4 years ago
Last Updated2 years ago by
Version1.12
Members
Avatar

I have no experience with this kind of stuff, so how do i change the stats of the guns in the files myself?

Avatar

Check the main.xml of the weapon, which you can open with any softward that opens .txt files.
The default Microsoft Notepad application will do, though it is easier to read the code through using programs such as Visual Studio Code or Notepad++.

If you're looking to change the stats of attachments, there will be a "<stats />" xml marking under every attachment that has stats.
If you're stuck on the internal/code name of the attachment, you can use the loc file to help you translate the ingame name to the. For example, "wpn_fps_ass_xm4_stock_mix_02" is the Raider Pad.
If you're looking to change the weapon's general stats , you'll check the xml until you'll see <weapon /> tag such as "<weapon id="xm4" based_on="olympic" ... />". The primary version is the one with the "xm4_prim" weapon ID, the secondary just uses "xm4" for its weapon ID.

As for the stats themselves, most of the stats are self explanatory , such as damage="3" would make an attachment add 3 damage, the <override_weapon CLIP_AMMO_MAX="x"/> function is a Weaponlib function that changes the magazine size of an attachment, or changing the NR_CLIPS_MAX in the weapon tag would make the weapon have more or less magazines in reserve.

Do note that some of the values make 0 sense or don't translate directly to how they appear ingame.
For example, Accuracy ("spread" in the code ) and Stability (recoil) are multiplied by 4, so inputting a spread="1" would be the same as adding 4 Accuracy ingame.
If you want to change fire rate, fire rate is calculated as "60/(Value you input into fire mode data) = (Fire Rate You Want)".
If you're looking to change pickup, check for a section in the weapon's data that states <AMMO_PICKUP>. In there, the top value will be the minimum amount of bullets picked up, the bottom value the maximum bulelts picked up.

If you need further reference on how stats work in custom weapons, Mira covers it in her custom weapon guide.
https://steamcommunity.com/sharedfiles/filedetails/?id=2388120701

34 736