UGX-Mods 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 Facebook
Sign In with Twitch

Adding custom weapons to the mystery box

broken avatar :(
Created 8 years ago
by reckfullies
0 Members and 1 Guest are viewing this topic.
4,599 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2016
Last active: 3 years ago
Posts
306
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
reckfullies's Groups
reckfullies's Contact & Social LinksReckfulliesReckfullies
I noticed that people were wondering how to add their custom/ported weapons to the box so I was trying to figure out how Treyarch added their weapons.

While I was looking I saw the _zm_weapons.gsc and I noticed they added their weapons via a table that has its base values stored in  the _zm_weapons.gsc file.

I don't have really any experience with tables in C based languages so i was wondering if anyone figured this out yet.

If you are interested in checking this out its on line 3314 in root/share/raw/scripts/zm/_zm_weapons.gsc
Marked as best answer by treminaor 8 years ago
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
I noticed that people were wondering how to add their custom/ported weapons to the box so I was trying to figure out how Treyarch added their weapons.

While I was looking I saw the _zm_weapons.gsc and I noticed they added their weapons via a table that has its base values stored in  the _zm_weapons.gsc file.

I don't have really any experience with tables in C based languages so i was wondering if anyone figured this out yet.

If you are interested in checking this out its on line 3314 in root/share/raw/scripts/zm/_zm_weapons.gsc

We've yet been able to make this work. I tried today, cause I thought they fixed this in the beta release. It did not work. I either didn't do it right still, or it still doesn't work. I have released a temp fix, but it is only temp. Controls the box via gsc and csc instead of the table.
https://www.youtube.com/watch?v=qQmcPAwShGQ

dl in the description
broken avatar :(
×
broken avatar :(
Location: au
Date Registered: 10 August 2013
Last active: 8 years ago
Posts
2
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
gauty40's Groups
gauty40's Contact & Social Links
We've yet been able to make this work. I tried today, cause I thought they fixed this in the beta release. It did not work. I either didn't do it right still, or it still doesn't work. I have released a temp fix, but it is only temp. Controls the box via gsc and csc instead of the table.
https://www.youtube.com/watch?v=qQmcPAwShGQ

dl in the description
where exactly do i put the GSC & CSC file supplied? anything else i need to know about how to use it?
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2016
Last active: 3 years ago
Posts
306
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
reckfullies's Groups
reckfullies's Contact & Social LinksReckfulliesReckfullies
where exactly do i put the GSC & CSC file supplied? anything else i need to know about how to use it?

Put them in scripts/zm then follow these instructions(They were included in the rar):
Spoiler: click to open...
gsc:
/*
#####################
by: M.A.K.E C E N T S
#####################
Script:
top of zm_mapname
#using scripts\zm\zm_temp_box_fix;

called from init or main of zm_mapname.gsc
   tempboxfix::init(  );

added to zone file
scriptparsetree,scripts/zm/zm_temp_box_fix.gsc


add the upgraded custom weapons like this:
    add_upgrade(weaopn string);
comment out the ones you don't want and add the ones you want:
    AddToBox(weaopn string);



level.displaystats set to 1 will show you the stats of the current weapon, such as
world model, in a hud. Feel free to add more stats as you need them in the WatchGun function

###############################################################################
*/

csc:

/*
#####################
by: M.A.K.E C E N T S
#####################
Script:
top of zm_mapname
#using scripts\zm\zm_temp_box_fix;

called from init or main of zm_mapname.csc
   tempboxfix::init(  );

added to zone file
scriptparsetree,scripts/zm/zm_temp_box_fix.csc

comment out the ones you don't want and add the ones you want:
    AddZombieBoxWeapon(<weapon>,<weaponModelName>,<isDualWield>)


###############################################################################
*/

broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 17 April 2016
Last active: 5 years ago
Posts
11
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
Signature
BO3 Map(s): Die Kiste
Scripter
Mapper
×
Is the table that the weapons go in here?:
Call of Duty Black Ops III\share\raw\gamedata\weapons\zm
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2016
Last active: 3 years ago
Posts
306
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
reckfullies's Groups
reckfullies's Contact & Social LinksReckfulliesReckfullies
Is the table that the weapons go in here?:
Call of Duty Black Ops III\share\raw\gamedata\weapons\zm

Seems like it is, I haven't messed with anything in there so theres no guarantee that it will work if you modify it.

 
Loading ...