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 add custom weapons to the mystery box?

broken avatar :(
Created 9 years ago
by Promnigy
0 Members and 1 Guest are viewing this topic.
3,057 views
broken avatar :(
×
broken avatar :(
Location: usYour Closet
Date Registered: 3 December 2015
Last active: 7 years ago
Posts
19
Respect
Forum Rank
Legless Crawler
Primary Group
Member
Personal Quote
[Insert Personal Text]
Signature
Don't look in your Closet because ... I might be in there ...
×
Promnigy's Groups
Promnigy's Contact & Social Links
I already have my custom weapons and their files, it just comes down to adding them to the box, which I don't know how to do.  :-\  Anyone know how? Help would be nice...
Marked as best answer by Promnigy 9 years ago
broken avatar :(
×
broken avatar :(
Location: kp
Date Registered: 29 July 2015
Last active: 6 years ago
Posts
435
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
children should not be playing call of duty
Signature
⠀⠀⠀⣴⣴⡤
⠀⣠⠀⢿⠇⡇⠀⠀⠀⠀⠀⠀⠀⢰⢷⡗
⠀⢶⢽⠿⣗⠀⠀⠀⠀⠀⠀⠀⠀⣼⡧⠂⠀⠀⣼⣷⡆
⠀⠀⣾⢶⠐⣱⠀⠀⠀⠀⠀⣤⣜⣻⣧⣲⣦⠤⣧⣿⠶
⠀⢀⣿⣿⣇⠀⠀⠀⠀⠀⠀⠛⠿⣿⣿⣷⣤⣄⡹⣿⣷
⠀⢸⣿⢸⣿⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⢿⣿⣿⣿⣿⣿
⠀⠿⠃⠈⠿⠆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⠿⠿⠿

⠀⢀⢀⡀⠀⢀⣤⠀⠀⠀⠀⠀⠀⠀⡀⡀
⠀⣿⡟⡇⠀⠭⡋⠅⠀⠀⠀⠀⠀⢰⣟⢿
⠀⣹⡌⠀⠀⣨⣾⣷⣄⠀⠀⠀⠀⢈⠔⠌
⠰⣷⣿⡀⢐⢿⣿⣿⢻⠀⠀⠀⢠⣿⡿⡤⣴⠄⢀⣀⡀
⠘⣿⣿⠂⠈⢸⣿⣿⣸⠀⠀⠀⢘⣿⣿⣀⡠⣠⣺⣿⣷
⠀⣿⣿⡆⠀⢸⣿⣿⣾⡇⠀⣿⣿⣿⣿⣿⣗⣻⡻⠿⠁
⠀⣿⣿⡇⠀⢸⣿⣿⡇⠀⠀⠉⠉⠉⠉⠉⠉⠁
×
Koan's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Oil Rig Beta Access
Oil Rig Beta Access
Koan's Contact & Social Links_Koan_h-rmy website
In dlc3_code.gsc, the function include_weapons() is where you include them.

Code Snippet
Plaintext
include_weapons()
{
    ...

    include_weapon( "zombie_sw_357" );
    include_weapon( "zombie_sw_357_upgraded", false );

    ...
}

The weapons with "false" appended to them will NOT appear in the mystery box. The others will appear.

Spoiler: click to open...
Extra info:

The parameters for the function in _zombiemode_utility.gsc are:
Code Snippet
Plaintext
include_weapon( weapon_name, in_box, weighting_func )
Only the first parameter is required. The other two are set to default if they're not defined, so leaving the second parameter out will set it to true. If you want a weighted weapon (like the ray gun, wunderwaffe, etc) then take a look at functions such as factory_ray_gun_weighting_func() in dlc3_code.gsc for guidance.

If you want them as wall weapons you'll need to edit init_weapons() in _zombiemode_weapons.gsc
Last Edit: June 27, 2016, 01:09:12 am by Koan
broken avatar :(
×
broken avatar :(
Location: it
Date Registered: 5 September 2014
Last active: 4 years ago
Posts
282
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I belive purple is getting me...
×
IperBreach86's Groups
IperBreach86's Contact & Social LinksIperBreach86
In dlc3_code.gsc, the function include_weapons() is where you include them.

Code Snippet
Plaintext
include_weapons()
{
    ...

    include_weapon( "zombie_sw_357" );
    include_weapon( "zombie_sw_357_upgraded", false );

    ...
}

The weapons with "false" appended to them will NOT appear in the mystery box. The others will appear.

Spoiler: click to open...
Extra info:

The parameters for the function in _zombiemode_utility.gsc are:
Code Snippet
Plaintext
include_weapon( weapon_name, in_box, weighting_func )
Only the first parameter is required. The other two are set to default if they're not defined, so leaving the second parameter out will set it to true. If you want a weighted weapon (like the ray gun, wunderwaffe, etc) then take a look at functions such as factory_ray_gun_weighting_func() in dlc3_code.gsc for guidance.

If you want them as wall weapons you'll need to edit init_weapons() in _zombiemode_weapons.gsc
Woah, this not only helped him, but you helped me too :/ i cant belive ive been doing this wrong since the first time.
Last Edit: June 27, 2016, 05:25:08 am by IperBreach86

 
Loading ...