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

Unlock extra perk slots?

broken avatar :(
Created 10 years ago
by NaviLlicious
0 Members and 1 Guest are viewing this topic.
2,743 views
broken avatar :(
×
broken avatar :(
Location: usconverse tx
Date Registered: 20 June 2013
Last active: 1 year ago
Posts
85
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
×
NaviLlicious's Groups
NaviLlicious's Contact & Social LinksNaviLliciousNaviLlusShore
Alright so you know how on Origins If you get the golden shovel you can get the perk bottles from dig sites and they allow the player to hold one more perk? I'm assuming those perk bottles qualify as power-up drops so I was wondering how to replicate that In world at war excluding the dig mechanic, what I am asking for Is does anyone know of a way to allow a player to unlock more than 4 perk slots If they pick up a power-up?
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
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
By default there is no limit on how many perks a player can obtain

You infact actually have to define a limit, should the need arise

So what im saying is, If you added a fifth perk, you would, by default, be able to obtain it
broken avatar :(
×
broken avatar :(
Location: usconverse tx
Date Registered: 20 June 2013
Last active: 1 year ago
Posts
85
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
×
NaviLlicious's Groups
NaviLlicious's Contact & Social LinksNaviLliciousNaviLlusShore
By default there is no limit on how many perks a player can obtain

You infact actually have to define a limit, should the need arise

So what im saying is, If you added a fifth perk, you would, by default, be able to obtain it
I have defined a 4 perk limit but I want to make It so when a certain power-up Is grabbed It allows a limit of 5 perks for the player who grabbed It and continues to rise If they keep grabbing that power-up
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 6 months ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
Signature
Do not take life too seriously. You will never get out of it alive.
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Look into _zombiemode_perks in BO1. They have a check for amount of perks i.e.
Code Snippet
Plaintext
		if ( player.num_perks >= 4 )
{
//player iprintln( "Too many perks already to buy Perk: " + perk );
self playsound("evt_perk_deny");
// COLLIN: do we have a VO that would work for this? if not we'll leave it at just the deny sound
player maps\_zombiemode_audio::create_and_play_dialog( "general", "sigh" );
continue;
}
All you have to do is replicate to something like instead of >= 4, >= player.max_perks. So you can easily modified player.max_perks from anywhere in script. (So wherever you put the code for powerup pickup, increment the value by one by doing player.max_perks++; you can also limit it.)
Last Edit: September 16, 2014, 02:53:08 am by DidUknowiPwn
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
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
yeah, so you need to define to each player how many they can hold, and have your power up adjust the value for the specific player that obtains it (assuming thats what you meant?)
Marked as best answer by NaviLlicious 10 years ago
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 6 months ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
yeah, so you need to define to each player how many they can hold, and have your power up adjust the value for the specific player that obtains it (assuming thats what you meant?)
Yeah on some onPlayerConnect function (primarily _zombiemode) add the vars self.num_perks = 0 and self.max_perks = 4; then you increment max_perks per player.
You could also should reset num_perks and max_perks when player goes down/dies.
Last Edit: September 16, 2014, 04:38:21 am by DidUknowiPwn
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
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
Yeah on some onPlayerSpawned function (primarily _zombiemode) add the vars self.num_perks = 0 and self.max_perks = 4; then you increment max_perks per player.
Exactly, and the rest is fairly self explanitory, mark him as best answer ;)
broken avatar :(
×
broken avatar :(
Location: usconverse tx
Date Registered: 20 June 2013
Last active: 1 year ago
Posts
85
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
×
NaviLlicious's Groups
NaviLlicious's Contact & Social LinksNaviLliciousNaviLlusShore
Thanks for the replies guys lol
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
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
Thanks for the replies guys lol
Any time ;)

 
Loading ...