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

Need help with black ops perks

broken avatar :(
Created 12 years ago
by NaviLlusShore
0 Members and 1 Guest are viewing this topic.
2,613 views
broken avatar :(
×
broken avatar :(
Location: usThe North Pole
Date Registered: 12 September 2013
Last active: 11 years ago
Posts
123
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I have come from the future
Signature
NaviLlicious
×
NaviLlusShore's Groups
NaviLlusShore's Contact & Social LinksTheHubbyNaviLlusShore
Hey I did the tutorial for bams black ops perks and the perks work everything's fine except the perk limit, I set It to 4 but I can still buy more than 4 perks
Code Snippet
Plaintext
#include maps\_utility;
#include maps\_hud_util;

init()
{
// ************MIGHTY PERK/PAP LIMIT**********
level.mighty_perks_got = 0; // DONT TOUCH THIS
level.max_pap_limit = 3; // Number of paped guns a player can have at a time
level.max_perk_limit = 4; // The max number of perks a player can have at a time
// *************MIGHTY PERK/PAP LIMIT*********
Last Edit: December 26, 2013, 06:38:00 am by NaviLlusShore
broken avatar :(
×
broken avatar :(
The Doctor
Location: gbUnited Kingdom
Date Registered: 26 March 2013
Last active: 6 months ago
Posts
1,448
Respect
Forum Rank
Zombie Colossus
Primary Group
Donator ♥
My Groups
More
×
timelordalex's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
timelordalex's Contact & Social Links
dont know why that is, why would you want to set a perk limit anyway? everyone hates perk limits
broken avatar :(
×
broken avatar :(
Former UGX Lead Asset Creator
Location: ca
Date Registered: 17 August 2012
Last active: 6 years ago
Posts
1,932
Respect
Forum Rank
Zombie Destroyer
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
Personal Quote
Eh?
Signature

(Click to enter portfolio)
×
SajeOne's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
The variable there is set to 4 so it's a script issue then. Nothing that can be told by what you posted.
broken avatar :(
×
broken avatar :(
Location: usThe North Pole
Date Registered: 12 September 2013
Last active: 11 years ago
Posts
123
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I have come from the future
×
NaviLlusShore's Groups
NaviLlusShore's Contact & Social LinksTheHubbyNaviLlusShore
Followed this tutorial exactly how It says http://www.zombiemodding.com/index.php?topic=12714.msg127562#msg127562 replaced
Code Snippet
Plaintext
		if( !IsDefined( level.zombie_include_weapons[current_weapon] ) || !IsDefined( level.zombie_include_weapons[current_weapon + "_upgraded"] ) )
{
continue;
}
with
Code Snippet
Plaintext
		if( !IsDefined( level.zombie_include_weapons[current_weapon] ) || !IsDefined( level.zombie_include_weapons[current_weapon + "_upgraded"] ) )
{
continue;
}
if( isDefined(level.max_pap_limit) )
{
primary = player GetWeaponsListPrimaries();
mighty_chk = 0;
if( primary.size < 4 && primary.size != 1 )
{
for( i = 0; i < primary.size; i++ )
{
if( !isDefined( level.zombie_include_weapons[primary[i] + "_upgraded"] ) ){ mighty_chk += 1; }
}
if( mighty_chk >= level.max_pap_limit ){ continue; }
}
}
replaced
Code Snippet
Plaintext
		if ( player HasPerk( perk ) )
{
cheat = false;

/#
if ( GetDVarInt( "zombie_cheat" ) >= 5 )
{
cheat = true;
}
#/

if ( cheat != true )
{
//player iprintln( "Already using Perk: " + perk );
self playsound("deny");
player thread play_no_money_perk_dialog();


continue;
}
}
with
Code Snippet
Plaintext
	if( !isDefined( player.mighty_perks_got ) ){ player.mighty_perks_got = 0; }	
if( player.mighty_perks_got >= level.max_perk_limit )
{
wait( 0.1 );
continue;
}

if ( player HasPerk( perk ) )
{
cheat = false;

/#
if ( GetDVarInt( "zombie_cheat" ) >= 5 )
{
cheat = true;
}
#/

if ( cheat != true )
{
//player iprintln( "Already using Perk: " + perk );
self playsound("deny");
player thread play_no_money_perk_dialog();


continue;
}
}
replaced
Code Snippet
Plaintext
player.stats["perks"]++;
with
Code Snippet
Plaintext
		player.stats["perks"]++;
player.mighty_perks_got++;
In the laststand.gsc I replaced
Code Snippet
Plaintext
self thread laststand_give_grenade();
with
Code Snippet
Plaintext
	self thread laststand_give_grenade();
self.mighty_perks_got = 0;
and the last step was to put that code at the top that you see In the original post

 
Loading ...