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

[Tutorial] Custom Perks

HOT
broken avatar :(
Created 7 years ago
by shinged
0 Members and 1 Guest are viewing this topic.
19,346 views
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
How do I select individual objects in a prefab?
All you need to do is select it in radiant right click hgover your mouse over prefab and at the bottom it says stamp prefab
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
dont stamp...

"enter" prefab
broken avatar :(
×
broken avatar :(
Location: usU.S.A! U.S.A!
Date Registered: 10 June 2015
Last active: 3 years ago
Posts
86
Respect
Forum Rank
Rotting Walker
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Abnormal202
Signature
-Abnormal202
×
qwerty195's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
I got this perk thing figured out alright and everything works fine, except that Solo Quick Revive doesn't work after you purchase the custom perk. You just die like you don't have it.
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
This is the fix for anyone having the problem where you can spam buy the perk 4 times:

Code Snippet
Plaintext
//In your perk_name.gsc add these lines in the give_custom_perk() function 
//shown below
function give_custom_perk(){
if(!isdefined(self.disabled_perks))
self.disabled_perks = [];
self.disabled_perks[PERK_FREEZE] = true;    //Change PERK_FREEZE to the caps name you gave it in your
//perk_name.gsh file. By default in this tutorial it's called PERK_CUSTOM_PERK
#define PERK_FREEZE "specialty_freeze" // CHANGE THIS TO PERKNAME //This line in my gsh file for example


}

*Credit to death_reaper0 for the solution https://ugx-mods.com/forum/index.php/topic,15329.0.html
Last Edit: May 31, 2017, 12:14:45 am by Archaicvirus
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
you cant use custom speciallties

this wont work

if self haasPerk( whatever ) will stilll return false
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
How so? The way I have it set up I just check a custom variable self.hasFreezePerk which I set in the give perk function and also set it to false in the take perk function. The function that's responsible for the perk effect checks for that custom variable by way of a damage callback on zombies with the attacker. Everything is working fine that I can tell. I'll follow your advice though, my only concern is that if I use an existing specialty, won't I inadvertently gain that ability?
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 12 July 2017
Last active: 7 years ago
Posts
1
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
Astaal's Groups
Astaal's Contact & Social Links
Potentially dumb question, how do I align the perk to fit in the perkl 'queue'? Is there a bit of code that I'm missing?
 
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 23 April 2017
Last active: 4 years ago
Posts
1
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
Seagoatdaddy's Groups
Seagoatdaddy's Contact & Social Links
Not to necro the thread or anything, but your script download is no longer there. It has been removed and I'm wondering where I can even find this script again.

 
Loading ...