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

How to put custom gun in the mystery box

broken avatar :(
Created 10 years ago
by Tac
0 Members and 1 Guest are viewing this topic.
3,213 views
broken avatar :(
×
broken avatar :(
Location: usMason Ohio
Date Registered: 31 October 2015
Last active: 4 years ago
Posts
38
Respect
Forum Rank
Legless Crawler
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
Tac's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Tac's Contact & Social LinksTac_Zombiesvtactrixmichael1104bThaCampinSniperz
I have working ported guns and im not sure how to put the gun into the box. can someone please help
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 25 October 2015
Last active: 9 years ago
Posts
34
Respect
Forum Rank
Legless Crawler
Primary Group
Member
Signature
-ToxiKArmy
×
ToxiKArmy's Groups
ToxiKArmy's Contact & Social Links
I have working ported guns and im not sure how to put the gun into the box. can someone please help

In your mods/mapname/maps

you should have dlc3_code.gsc and _zombiemode_weapons.gsc if you dont go to raw/maps and copy and paste them into your mods map folder. So I don't know what your weapon files look like, but you need to find your weapons name. For example, an acr I have from mw2 is named "mw2_acr" but yours might be different. so once you find your weapons name, open of the dl3_code file and (crtl f) and search for " include_weapon( "zombie_colt" ); " once you find that line your going to want to copy that same exact line so you end up with this


include_weapons()
{
   include_weapon( "zombie_colt" );
        include_weapon( "zombie_colt" );

once it looks like that put your weapons name into the second line you just pasted so:



include_weapons()
{
   include_weapon( "zombie_colt" );
        include_weapon( "mw2_acr" );


after thats in there save and move on to the _zombiemode_weapons.gsc once your in here, (ctrl f) for


init_weapons()
{
   // Pistols


once you find that line your going to want to duplicate the first line you see just like what we did in the dl3 so :





init_weapons()
{
   // Pistols
   add_zombie_weapon( "colt",                                50,      "vox_crappy",   8 );
        add_zombie_weapon( "colt",                                50,      "vox_crappy",   8 );
   


once you have done that replace the second line with your weapon name


init_weapons()
{
   // Pistols
   add_zombie_weapon( "colt",                                50,      "vox_crappy",   8 );
        add_zombie_weapon( "mw2_acr",                            50,      "vox_crappy",   8 );

once you have done that save and build your mod and your weapons should be in the mystery box!


   



Last Edit: November 23, 2015, 01:21:15 am by ToxiKArmy
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 5 years ago
Posts
6,877
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 LinksHarryBo000[email protected]HarryBo21
to put it in the box, the dlc3_code part should actually say

Code Snippet
Plaintext
include_weapon( "mw2_acr", true );
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 25 October 2015
Last active: 9 years ago
Posts
34
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
ToxiKArmy's Groups
ToxiKArmy's Contact & Social Links
to put it in the box, the dlc3_code part should actually say

Code Snippet
Plaintext
include_weapon( "mw2_acr", true );

thats not true mine are in the box and i dont have that
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 5 years ago
Posts
6,877
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 LinksHarryBo000[email protected]HarryBo21
thats not true mine are in the box and i dont have that
it "is" true, it just "defaults" if no argument is given

false - not in box
true - in box

"his" question, was specifically about putting them in the box so its better to explain "both" of the things he will need or he will be back in no time with

"New question - how do I not put something in the box? All my guns, grenades, non primary and special grenades are in it?"
Last Edit: November 23, 2015, 01:37:07 am by Harry Bo21
broken avatar :(
×
broken avatar :(
Location: usMason Ohio
Date Registered: 31 October 2015
Last active: 4 years ago
Posts
38
Respect
Forum Rank
Legless Crawler
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
Tac's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Tac's Contact & Social LinksTac_Zombiesvtactrixmichael1104bThaCampinSniperz
hmmm I did that and its still not working :/ and also when I take the raygun from the box, it wont actually take the weapon
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 5 years ago
Posts
6,877
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 LinksHarryBo000[email protected]HarryBo21
hmmm I did that and its still not working :/ and also when I take the raygun from the box, it wont actually take the weapon
Can you give it to yourself via the console?
broken avatar :(
×
broken avatar :(
Location: usMason Ohio
Date Registered: 31 October 2015
Last active: 4 years ago
Posts
38
Respect
Forum Rank
Legless Crawler
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
Tac's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Tac's Contact & Social LinksTac_Zombiesvtactrixmichael1104bThaCampinSniperz
yes
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 5 years ago
Posts
6,877
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 LinksHarryBo000[email protected]HarryBo21
yes
no idea then, just that gun or multiple?
Marked as best answer by Tac 10 years ago
broken avatar :(
×
broken avatar :(
Location: usMason Ohio
Date Registered: 31 October 2015
Last active: 4 years ago
Posts
38
Respect
Forum Rank
Legless Crawler
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
Tac's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Tac's Contact & Social LinksTac_Zombiesvtactrixmichael1104bThaCampinSniperz
heres a pic of my dlc3_code and my _zombiemode_weapons:
https://gyazo.com/edba2a7825fd010621b6a910c52aeedc
https://gyazo.com/d2d75f15bc9a55784791bcb91bbf151f

Double Post Merge: November 24, 2015, 01:11:12 am
i got it working finally
i didnt have an upgraded version of the gun so i deleted it from my dlc3_code and it worked
Last Edit: November 24, 2015, 01:11:12 am by Tac
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 5 years ago
Posts
6,877
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 LinksHarryBo000[email protected]HarryBo21
heres a pic of my dlc3_code and my _zombiemode_weapons:
https://gyazo.com/edba2a7825fd010621b6a910c52aeedc
https://gyazo.com/d2d75f15bc9a55784791bcb91bbf151f

Double Post Merge: November 24, 2015, 01:11:12 am
i got it working finally
i didnt have an upgraded version of the gun so i deleted it from my dlc3_code and it worked
looks set up ok to me, but you didnt answer my question

awesome
Last Edit: November 24, 2015, 01:12:38 am by Harry Bo21

 
Loading ...