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

Random perk scripts

broken avatar :(
Created 9 years ago
by Deleted User
0 Members and 1 Guest are viewing this topic.
3,073 views
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
Random perk scripts

What is this for

I will be updating this forum post with any random perk scripts i come up with so keep checking back for new scripts
If you want me to make a perk script for you just post a comment below of what you want and ill try to make it a reality

Perk disabler

Script level: Beginner
This will allow for the modder to disable certain perks

in mapname.gsc add this
Code Snippet
Plaintext
init_wardogs_disabler();

after
Code Snippet
Plaintext
maps\_zombiemode::main();

now copy paste this at the bottom of mapname.gsc
Code Snippet
Plaintext
init_wardogs_disabler()
{
        //change to your perks names and remove / comment out unused perks
        level.enabledPerks = [];
level.enabledPerks["specialty_armorvest"] = true; //Enable Juggernog
level.enabledPerks["specialty_quickrevive"] = true; //Enable Quick Revive
level.enabledPerks["specialty_rof"] = true; //Enable Double Tap 1.0
level.enabledPerks["specialty_fastreload"] = true; //Enable Speed Cola

level.enabledPerks["specialty_twoprimaries"] = true; //Enable Mule Kick
level.enabledPerks["specialty_bulletaccuracy"] = true; //Enable Deadshot Daiquiri
level.enabledPerks["specialty_longersprint"] = true; //Enable Stamin Up
level.enabledPerks["specialty_explosivedamage"] = true; //Enable PHD Flopper

level.enabledPerks["specialty_specialgrenade"] = true; //Enable Tombstone Soda
level.enabledPerks["specialty_bulletdamage"] = true; //Enable Double Tap 2.0
level.enabledPerks["specialty_shades"] = true; //Enable Whos Whos
level.enabledPerks["specialty_quieter"] = true; //Enable Electric Cherry
level.enabledPerks["specialty_ordinance"] = true; //Enable Vulture Aid

        level.disableHint = "This perk has been disabled"; //dont change
}

(please note the next step will need to be done for any other scripts that have perks in)
now open _zombiemode_perks.gsc and find the function vending_trigger_think() copy paste this
Code Snippet
Plaintext
if(!level.enabledPerks[perk])
{
self SetHintString(level.disableHint);
return;
}

after this
Code Snippet
Plaintext
//self thread turn_cola_off();
perk = self.script_noteworthy;
self SetHintString( &"ZOMBIE_FLAMES_UNAVAILABLE" );
self SetCursorHint( "HINT_NOICON" );
self UseTriggerRequireLookAt();

Black Ops style perk limit

This is a normal perk limit but instead of just hiding the trigger from the player it makes a deny sound

open up _zombiemode_perks.gsc and find the function vending_trigger_think()
and add this
Code Snippet
Plaintext
if(IsDefined(player.perk_hud) && player.perk_hud.size >= 4) //you can change 4 to amount of perks you want to limit
{
self PlaySound("deny");
continue;
}

after this
Code Snippet
Plaintext
if(player isThrowingGrenade())
{
wait .1;
continue;
}
broken avatar :(
×
broken avatar :(
Location: england
Date Registered: 28 November 2013
Last active: 2 months ago
Posts
44
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
jasonpage260's Groups
jasonpage260's Contact & Social Linksjason260xo_z_kelly
hi i have been having problems with the whoswho perk sound i have been trying to get the whoswho sound working but its not working for me  but i even try taking out the sound and put the sound back in but its still not working and if i put sound,vending_sfx,, in the builder do every thing i get over 1600 sfx sounds can u help...
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
hi i have been having problems with the whoswho perk sound i have been trying to get the whoswho sound working but its not working for me  but i even try taking out the sound and put the sound back in but its still not working and if i put sound,vending_sfx,, in the builder do every thing i get over 1600 sfx sounds can u help...
(this forum post is not for my perk  system that one has been removed i would recommend removing my perk system fro myour mod)

if you are on about my perk system that has been removed from UGX (by me) and i will not be continuing support for it sorry

and i guess its my perk system since you have vending_sfx
and if i put sound,vending_sfx,, in the builder

 
Loading ...