UGX-Mods

Call of Duty: Black Ops 3 => Tutorial Desk => Modding => Topic started by: henkownd on October 13, 2016, 06:58:10 pm

Title: [TUT] Adding custom weaponsfiles to your map.
Post by: henkownd on October 13, 2016, 06:58:10 pm
Hello Black Ops 3 mappers and modders,

I recently discoverd a way of adding custom weapons into your custom zombies map, how to have it included into the mystery box and if you have the weaponfile for it also have a pack a punchable version for it. All that you need to have is a weaponfile for your weapon.

First of all, in your bo3 root folder go to:
Code Snippet
Plaintext
share/raw/gamedata/weapons/zm
And edit the zm_levelcommon_weapons.csv file. (It should be the only one there)

The contents of the file should look like this:
(http://i36.photobucket.com/albums/e10/henkownd/tut_pictur1_zpsmpwh6wkd.png) (http://s36.photobucket.com/user/henkownd/media/tut_pictur1_zpsmpwh6wkd.png.html)

Secondly you will have to add the name of the weaponfile for your weapon into the zm_levelcommon_weapons.csv file. Next to the weaponfilename you will have to copy over the code from one of the other weapons listed in the file that corresponts with the type of weapon that you have (e.g. if your weapon is an assault rifle you copy over that code after ar_accurate.)

In example I am using the an94 from Black Ops 2 (t6_wpn_ar_an94 is my weaponfilename)
Then it should look like this:
(http://i36.photobucket.com/albums/e10/henkownd/tut_pictur2_zpssa1cjcfz.png) (http://s36.photobucket.com/user/henkownd/media/tut_pictur2_zpssa1cjcfz.png.html)

If you have a weaponfile for the upgraded version of the weapon then add that where I put t6_wpn_ar_an94_upgraded otherwise delete the name.

Now thats done you can save that file and close it.
What we are going to do now is copy over one of the already existing files in:
Code Snippet
Plaintext
share/zone_source/
In there you should see a file called zm_giant_weapons.zpkg
Copy that file over to the zone source in:
Code Snippet
Plaintext
usermaps/zm_YOURMAPNAME/zone_source
Once pasted in there rename it to:
Code Snippet
Plaintext
zm_YOURMAPNAME_weapons.zpkg
Time to edit that file to add the weapon in there.
First of all, change at the top of the file this:
Code Snippet
Plaintext
stringtable,gamedata/weapons/zm/zm_giant_weapons.csv
to:
Code Snippet
Plaintext
stringtable,gamedata/weapons/zm/zm_levelcommon_weapons.csv
Now go down to the part that corresponts to your weapon in my case the assault rifle section.
In that section at the bottom add the following line:
Code Snippet
Plaintext
weaponfull,WEAPONFILENAME
Then it should look like this:
(http://i36.photobucket.com/albums/e10/henkownd/tut_pictur3_zpsi04qpcai.png) (http://s36.photobucket.com/user/henkownd/media/tut_pictur3_zpsi04qpcai.png.html)

Thats done, now we need to call the file from your zm_MAPNAME.zone so it works ingame.
So in the same folder you should find your zm_MAPNAME.zone file.
Once you opened it go to the bottom of the file and add the following line:
Code Snippet
Plaintext
include,zm_MAPNAME_weapons

The only thing left is that you have to link the mod, it will give you a lot of weapon errors, thats only because you dont have those weaponfiles, ignore these errors they wont affect the game in any way.
Once you are done linking your map and load it up through the modtools you can give yourself the weapon through the console or try to get it from the box. If you have a pack a punch file for it you can also pack a punch it.

Thats it fokes.
If you do use this I would appreciate some credit for this.
Have fun.
- Henkownd


Title: Re: [TUT] Adding custom weaponsfiles to your map.
Post by: M0ul3_G4m3r on October 21, 2016, 07:54:50 am
If you want weapon name list !  ;)
https://www.reddit.com/r/CODZombies/comments/54v8y1/weapon_name_list_for_command_console/ (https://www.reddit.com/r/CODZombies/comments/54v8y1/weapon_name_list_for_command_console/)

NOTE : don't forget to add _zm at the end of the weapon name in zm_YOURMAPNAME_weapons.zpkg ;)
Title: Re: [TUT] Adding custom weaponsfiles to your map.
Post by: Harry Bo21 on October 21, 2016, 09:37:29 am
Dunno why your using this giant file

All you need to do is add the gun to the levelcommon csv and add the csv and weapon to your zone - that's it
Title: Re: [TUT] Adding custom weaponsfiles to your map.
Post by: M0ul3_G4m3r on October 21, 2016, 10:24:36 am
Dunno why your using this giant file

All you need to do is add the gun to the levelcommon csv and add the csv and weapon to your zone - that's it
How ? Because the TUTO dont work for me
Title: Re: [TUT] Adding custom weaponsfiles to your map.
Post by: Harry Bo21 on October 21, 2016, 11:04:45 am
Well worked fine for everyone else

Tut is up on modme
Title: Re: [TUT] Adding custom weaponsfiles to your map.
Post by: henkownd on October 21, 2016, 11:26:42 am
It is possible to do it both ways. I prefer to have all the weaponcalling by script including the stock ones in one place, and I felt like copying the files given by Treyarch the best way possible for me. If you can do it differently and it works better for you feel free to do it. This is what I found out and I am currently experimenting with attachmentfiles and weaponcamo files. And I use this file as a baseline for how Treyarch does it.

Hope this answers your question Harry.

- Henkownd
Title: Re: [TUT] Adding custom weaponsfiles to your map.
Post by: Harry Bo21 on October 21, 2016, 12:14:50 pm
I didn't ask a question - just stating that 90% of this is completely unnecessary
Title: Re: [TUT] Adding custom weaponsfiles to your map.
Post by: bias2000 on October 21, 2016, 02:26:09 pm
Is it a way to get these weapons as wallbuy?