[TUT] Adding custom weaponsfiles to your map.

broken avatar :(
Created 1129 days ago
by henkownd
0 Members and 1 Guest are viewing this topic.
5,915 views
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 14 September 2013
Last active: 37 days ago
Posts
49
Respect
Forum Rank
Legless Crawler
Primary Group
Donator ♥
My Groups
More
×
henkownd's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
henkownd's Contact & Social Links
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:
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:
[You are not allowed to view external links. Register or Login to see them]

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:
[You are not allowed to view external links. Register or Login to see them]

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:
share/zone_source/
In there you should see a file called zm_giant_weapons.zpkg
Copy that file over to the zone source in:
usermaps/zm_YOURMAPNAME/zone_source
Once pasted in there rename it to:
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:
stringtable,gamedata/weapons/zm/zm_giant_weapons.csv
to:
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:
weaponfull,WEAPONFILENAME
Then it should look like this:
[You are not allowed to view external links. Register or Login to see them]

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:
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


Last Edit: October 21, 2016, 11:49:21 am by henkownd
broken avatar :(
  • M0ul3_G4m3r
  • Deleted Member
×
broken avatar :(
M0ul3_G4m3r
User
Date Registered: N/A
Last active: N/A
Posts
N/A
Respect
Primary Group
Deleted Member
×
M0ul3_G4m3r's Groups
M0ul3_G4m3r's Contact & Social Links
If you want weapon name list !  ;)
[You are not allowed to view external links. Register or Login to see them]

NOTE : don't forget to add _zm at the end of the weapon name in zm_YOURMAPNAME_weapons.zpkg ;)
Last Edit: October 21, 2016, 08:00:44 am by M0ul3_G4m3r
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 68 days ago
Posts
6,879
Respect
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
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
Last Edit: October 21, 2016, 09:39:46 am by Harry Bo21
broken avatar :(
  • M0ul3_G4m3r
  • Deleted Member
×
broken avatar :(
M0ul3_G4m3r
User
Date Registered: N/A
Last active: N/A
Posts
N/A
Respect
Primary Group
Deleted Member
×
M0ul3_G4m3r's Groups
M0ul3_G4m3r's Contact & Social Links
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
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 68 days ago
Posts
6,879
Respect
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
Well worked fine for everyone else

Tut is up on modme
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 14 September 2013
Last active: 37 days ago
Posts
49
Respect
Forum Rank
Legless Crawler
Primary Group
Donator ♥
My Groups
More
×
henkownd's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
henkownd's Contact & Social Links
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
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 68 days ago
Posts
6,879
Respect
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
I didn't ask a question - just stating that 90% of this is completely unnecessary
Last Edit: October 24, 2016, 11:12:07 am by Harry Bo21
broken avatar :(
×
broken avatar :(
Location: no
Date Registered: 15 September 2016
Last active: 843 days ago
Posts
1
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
bias2000's Groups
bias2000's Contact & Social Links
Is it a way to get these weapons as wallbuy?

 

Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Twitch
Loading ...