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

raygun and mark2 box fix

broken avatar :(
Created 8 years ago
by death_reaper0
0 Members and 1 Guest are viewing this topic.
5,747 views
broken avatar :(
×
broken avatar :(
Location: aupotato
Date Registered: 27 September 2013
Last active: 3 years ago
Posts
588
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
respect the dead

donates greatly appreciated :) paypal.me/F3ARxReaper666
discord server:
https://discord.gg/tsGHW99
×
death_reaper0'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.
this is just a simple tweak to make sure that if you have the raygun you can not get the mark 2 from the box and visa versa (like in black ops 2).
this is assuming your mark 2 is named "ray_gun2" (name of harrybo21's version) if yours is named differently you will have to change it a bit to your rayguns name

this is a video of me having all guns but 2 (mark 2 being on of them) and as seen the box wont let me have it

note: this only affects the box, its still possible to get both though other ways if the mapper has something else that gives either gun

all you need to do is go into _zombiemode_weapons.gsc and find
Code Snippet
Plaintext
treasure_chest_ChooseWeightedRandomWeapon( player )

and directly under
Code Snippet
Plaintext
		if( !IsDefined( keys[i] ) )
{
continue;
}
place
Code Snippet
Plaintext
 
//filter out raygun duplicates
if (player HasWeapon( "ray_gun2" ) || player HasWeapon( "ray_gun2_upgraded" ))
{
if(keys[i] == "ray_gun")
continue;
}
if (player HasWeapon( "ray_gun" ) || player HasWeapon( "ray_gun_upgraded" ))
{
if(keys[i] == "ray_gun2")
continue;
}
and that's all you need to do (no need to credit if you don't want to, its nothing big after all)
broken avatar :(
×
broken avatar :(
Location: gbNewport
Date Registered: 2 November 2014
Last active: 2 years ago
Posts
1,265
Respect
Forum Rank
Zombie Colossus
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Embrace the Darkness
×
Tim Smith's Groups
Tim Smith's Contact & Social Linkstimsmith90THEREALBaDBoY17TimSmithMy clan Website
Great work man. Thx for sharing :). +1.
broken avatar :(
×
broken avatar :(
OnionmanVere Bo21
Location: ieu dnt wnt 2 no
Date Registered: 27 September 2013
Last active: 1 year ago
Posts
1,864
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Mapper
My Groups
More
Personal Quote
ok
Signature
Aye mate you don't know me so y don't you shut tf up ok buddy :)

×
Scobalula's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Box Mappers Elite
Box Mappers Elite
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.
Scobalula's Contact & Social Links
This awesome man! I can also adapt this to work with other guns such as if the player has Thunder Gun they can't have DG2, etc.
broken avatar :(
×
broken avatar :(
Location: aupotato
Date Registered: 27 September 2013
Last active: 3 years ago
Posts
588
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
death_reaper0'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.
This awesome man! I can also adapt this to work with other guns such as if the player has Thunder Gun they can't have DG2, etc.
modify at will, you can add any gun to disallow any gun really, it would be great for maps with lots of WWs :)
broken avatar :(
×
broken avatar :(
Location: 00
Date Registered: 13 March 2016
Last active: 5 years ago
Posts
36
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
Mr. Unp3rf3ct's Groups
Mr. Unp3rf3ct's Contact & Social Links
This awesome man! I can also adapt this to work with other guns such as if the player has Thunder Gun they can't have DG2, etc.

Thats exactly what happens in my map. Thank god he released this! Because i will add the scavanger to my map, so this will look messy in the script if I also forbid the player having that and another wonder weapon, but the only thing that counts is IT WORKS :) :) :)
broken avatar :(
×
broken avatar :(
Location: usAustria
Date Registered: 5 August 2016
Last active: 4 years ago
Posts
76
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
ColdShrimp2's Groups
ColdShrimp2's Contact & Social Links
Late to the party, but how can I make this disable wallguns too(not rayguns)? I'm trying to make it so you can't buy wallguns or box guns when the "death machine" powerup is active
Last Edit: August 08, 2017, 09:19:12 pm by cjgfrosty
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 24 May 2016
Last active: 3 years ago
Posts
32
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Strangers are just friends you haven’t met yet.
Signature
I don't post often but when I do I probably make myself seem like an idiot. Also, I don't need people to help me grow up! I drink milk.
×
Fancygamer1738's Contact & Social LinksH3X-4h3x_4H3X--4
10/10. Amazing work! :nyan:

 
Loading ...