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

Shinged's custom perk tutorial problem

broken avatar :(
Created 7 years ago
by Archaicvirus
0 Members and 1 Guest are viewing this topic.
5,312 views
broken avatar :(
×
broken avatar :(
Location: usSouth Florida
Date Registered: 10 July 2016
Last active: 12 months ago
Posts
106
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
Signature
Let he who has not sinned cast the first stone.
×
Archaicvirus's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Archaicvirus's Contact & Social Links
I followed the directions precisely adding my custom perk, and the script is letting me buy the perk over and over until I max out my perk slots. I tried adding in manual checks to not let this happen for example:
Code Snippet
Plaintext
function give_custom_perk()
{
// quick revive in solo gives an extra life
// give perk here
if(isdefined(self.hasFreezePerk) && self.hasFreezePerk == true) //Here is the check I make to stop spam buying
break;
self SetPerk("specialty_freeze");
self.hasFreezePerk = true;
self.has_custom_perks++;
self thread freeze_perk_shader::add_custom_perk_shader( self, "e115_vial_empty_shader" ); // CHANGE THIS TO YOUR PERK SHADER
trigger = GetEnt("specialty_freeze", "target"); // CHANGE THIS TO YOUR PERK MACHINE NAME
trigger SetHintStringForPlayer(self, "");
trigger SetInvisibleToPlayer(self);

}

I can't seem to remedy this issue, and I noticed on the original post shinged did not reply to this issue that two other members complained about, so hopefully someone else can provide some insight on why this is happening. The perk works fine, I can buy it, drink the bottle, and the perk effect is working, only issue being the ability to spam buy it.

EDIT* - After the check I make in this function, it still lets me spam buy the perk, but it will only show 1 perk shader. So the trigger is active for me until I have max perks.
Last Edit: May 22, 2017, 07:20:09 pm by Archaicvirus
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: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents'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.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Maybe it is the specialty. Did you try another one? If it is invalid I think it will let you keep buying.

Try swapping for one of these: (I used specialty_stunprotection for my zmp perk)
Code Snippet
Plaintext
specialty_accuracyandflatspread
specialty_additionalprimaryweapon
specialty_ammodrainsfromstockfirst
specialty_anteup
specialty_armorpiercing
specialty_armorvest
specialty_bulletaccuracy
specialty_bulletdamage
specialty_bulletflinch
specialty_bulletpenetration
specialty_combat_efficiency
specialty_deadshot
specialty_decoy
specialty_delayexplosive
specialty_detectexplosive
specialty_detectnearbyenemies
specialty_directionalfire
specialty_disarmexplosive
specialty_doubletap2
specialty_earnmoremomentum
specialty_electriccherry
specialty_extraammo
specialty_fallheight
specialty_fastads
specialty_fastequipmentuse
specialty_fastladderclimb
specialty_fastmantle
specialty_fastmeleerecovery
specialty_fastreload
specialty_fasttoss
specialty_fastweaponswitch
specialty_finalstand
specialty_fireproof
specialty_flakjacket
specialty_flashprotection
specialty_gpsjammer
specialty_grenadepulldeath
specialty_healthregen
specialty_holdbreath
specialty_immunecounteruav
specialty_immuneemp
specialty_immunemms
specialty_immunenvthermal
specialty_immunerangefinder
specialty_immunesmoke
specialty_immunetriggerbetty
specialty_immunetriggerc4
specialty_immunetriggershock
specialty_jetcharger
specialty_jetnoradar
specialty_jetpack
specialty_jetquiet
specialty_killstreak
specialty_locdamagecountsasheadshot
specialty_longersprint
specialty_loudenemies
specialty_lowgravity
specialty_marksman
specialty_microwaveprotection
specialty_movefaster
specialty_nokillstreakreticle
specialty_nomotionsensor
specialty_noname
specialty_nottargetedbyairsupport
specialty_nottargetedbyaitank
specialty_nottargetedbyraps
specialty_nottargetedbyrobot
specialty_nottargetedbysentry
specialty_overcharge
specialty_phdflopper
specialty_pin_back
specialty_pistoldeath
specialty_playeriszombie
specialty_proximityprotection
specialty_quickrevive
specialty_quieter
specialty_rof
specialty_scavenger
specialty_sengrenjammer
specialty_shellshock
specialty_showenemyequipment
specialty_showenemyvehicles
specialty_showscorestreakicons
specialty_sixthsensejammer
specialty_spawnpingenemies
specialty_sprintequipment
specialty_sprintfire
specialty_sprintfirerecovery
specialty_sprintgrenadelethal
specialty_sprintgrenadetactical
specialty_sprintrecovery
specialty_stalker
specialty_staminup
specialty_stunprotection
specialty_teflon
specialty_tombstone
specialty_tracer
specialty_tracker
specialty_trackerjammer
specialty_twogrenades
specialty_twoprimaries
specialty_unlimitedsprint
specialty_vultureaid
specialty_whoswho
specialty_widowswine
Last Edit: May 22, 2017, 08:55:41 pm by MakeCents
broken avatar :(
×
broken avatar :(
Location: usSouth Florida
Date Registered: 10 July 2016
Last active: 12 months ago
Posts
106
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
×
Archaicvirus's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Archaicvirus's Contact & Social Links
Thanks for the reply. I'm not sure I follow, so are you saying that I need to use a default 'specialty_something' as a placeholder? So when I do
Code Snippet
Plaintext
self SetPerk("specialty_freeze");
that's not actually giving me any script effects, it's just my custom function that threads the damage callbacks for any player who passes
Code Snippet
Plaintext
if(isdefined(self.hasFreezePerk) && self.hasFreezePerk == true)
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents'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.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
I'm not sure which directions you followed, but if your using specialties, I don't think specialty_freeze is an official one.
broken avatar :(
×
broken avatar :(
Location: usSouth Florida
Date Registered: 10 July 2016
Last active: 12 months ago
Posts
106
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
×
Archaicvirus's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Archaicvirus's Contact & Social Links
This is the tutorial I followed: https://ugx-mods.com/forum/index.php/topic,14197.0.html

I just reviewed the tutorial again, it doesn't seem to address the 'specialties' you mentioned. Maybe I'm just missing something. I think I get what you're saying though, but can you tell me how to go about setting my perk up as a specialty_whatever, as in what function would I call to set the perk as a specialty_whatever

*EDIT Oh so you mean when I do
Code Snippet
Plaintext
player SetPerk("specialty_choose_from_your_list")
?
Last Edit: May 22, 2017, 11:11:41 pm by Archaicvirus
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents'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.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
This is the tutorial I followed: https://ugx-mods.com/forum/index.php/topic,14197.0.html

I just reviewed the tutorial again, it doesn't seem to address the 'specialties' you mentioned. Maybe I'm just missing something. I think I get what you're saying though, but can you tell me how to go about setting my perk up as a specialty_whatever, as in what function would I call to set the perk as a specialty_whatever

*EDIT Oh so you mean when I do
Code Snippet
Plaintext
player SetPerk("specialty_choose_from_your_list")
?

That was my idea, yeah, not sure if that is your issue or not. It prob should match what is on the machine too.
Last Edit: May 23, 2017, 07:37:37 pm by MakeCents
broken avatar :(
×
broken avatar :(
Location: usSouth Florida
Date Registered: 10 July 2016
Last active: 12 months ago
Posts
106
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
×
Archaicvirus's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Archaicvirus's Contact & Social Links
Alright I'll try that out and see if fixes it. Thanks for the help man.
Marked as best answer by Archaicvirus 7 years ago
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.
whenever i made a perk (and ive made around 10 in bo3 so far) i never used anything like that and they all worked. i havent made one in a little while but i found this in the scripts for them, might be the fixer
Code Snippet
Plaintext
	if(!isdefined(self.disabled_perks))
self.disabled_perks = [];
self.disabled_perks[ PERK_ANGEL ] = true;
its at the bottom of the function that gives the perk (with the setperk and stuff)
broken avatar :(
×
broken avatar :(
Location: usSouth Florida
Date Registered: 10 July 2016
Last active: 12 months ago
Posts
106
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
×
Archaicvirus's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Archaicvirus's Contact & Social Links
whenever i made a perk (and ive made around 10 in bo3 so far) i never used anything like that and they all worked. i havent made one in a little while but i found this in the scripts for them, might be the fixer
Code Snippet
Plaintext
	if(!isdefined(self.disabled_perks))
self.disabled_perks = [];
self.disabled_perks[ PERK_ANGEL ] = true;
its at the bottom of the function that gives the perk (with the setperk and stuff)

This fixed the issue. I of course changed PERK_ANGEL to what I set in the GSH. Thanks man. And MC - thank you again also for the input. I'll tell shinged about this fix, so he can update his tutorial. That way people aren't beating their head against a wall like me for hours.

 
Loading ...