Outdated Perks Menu - Tad help

ConsoleGods

Member
Messages
55
Reaction score
5
Points
8
Hello,

I have got a working Perks menu that doesn't crash... but my issue is ALL the perks are showing on ALL the maps which obviously as most of you will know not every perk is on every map.

I am wanting it so the perks only show on the maps that the perk machine is available on if that makes sense

Also my Zombify works great 2 but same again... it shows on every single map and I want it to only show on MOTD. Zombify = Electric Hands.

Could anyone help?

I am also missing the specialist code for Electric Cherry which would be great if someone could add.

Thanks
 

Attachments

  • base_functions.gsc
    9.1 KB · Views: 61
  • menu.gsc
    22.1 KB · Views: 67

iTahhr

Well-Known Member
Messages
248
Reaction score
118
Points
243
i have a working function u can use for the perks and i have all the perks to if u want them
 

ConsoleGods

Member
Messages
55
Reaction score
5
Points
8
i have a working function u can use for the perks and i have all the perks to if u want them

Would it be easier for you to add it to mine and just replace my present one?

I did want CabCon's code where he also have Give All perks, Remove all perks etc... but Couldn't get the dam thing to work.
 

jcal147

Veteran
Messages
63
Reaction score
12
Points
568
m = "Perks Menu";
options[m] = [];
if(level.script == "zm_transit")
{
options[m][options[m].size] = AddOption("Juggernog", ::GivePerk, "specialty_armorvest");
options[m][options[m].size] = AddOption("Quick Reload", ::GivePerk, "specialty_fastreload");
options[m][options[m].size] = AddOption("Double Tap", ::GivePerk, "specialty_rof");
options[m][options[m].size] = AddOption("Quick Revive", ::GivePerk, "specialty_quickrevive");
options[m][options[m].size] = AddOption("Marathon", ::GivePerk, "specialty_longersprint");
}
else if(level.script == "zm_buried")
{
options[m][options[m].size] = AddOption("Juggernog", ::GivePerk, "specialty_armorvest");
options[m][options[m].size] = AddOption("Quick Reload", ::GivePerk, "specialty_fastreload");
options[m][options[m].size] = AddOption("Double Tap", ::GivePerk, "specialty_rof");
options[m][options[m].size] = AddOption("Quick Revive", ::GivePerk, "specialty_quickrevive");
options[m][options[m].size] = AddOption("Marathon", ::GivePerk, "specialty_longersprint");
options[m][options[m].size] = AddOption("Vulture Aid", ::GivePerk, "specialty_nomotionsensor");
options[m][options[m].size] = AddOption("Mulekick", ::GivePerk, "specialty_additionalprimaryweapon");
}
else if(level.script == "zm_tomb")
{
options[m][options[m].size] = AddOption("Juggernog", ::GivePerk, "specialty_armorvest");
options[m][options[m].size] = AddOption("Quick Reload", ::GivePerk, "specialty_fastreload");
options[m][options[m].size] = AddOption("Double Tap", ::GivePerk, "specialty_rof");
options[m][options[m].size] = AddOption("Quick Revive", ::GivePerk, "specialty_quickrevive");
options[m][options[m].size] = AddOption("Marathon", ::GivePerk, "specialty_longersprint");
options[m][options[m].size] = AddOption("Mulekick", ::GivePerk, "specialty_additionalprimaryweapon");
options[m][options[m].size] = AddOption("Electric Cherry", ::GivePerk, "specialty_grenadepulldeath");
options[m][options[m].size] = AddOption("PHD Flopper", ::GivePerk, "specialty_flakjacket");
options[m][options[m].size] = AddOption("Deadshot", ::GivePerk, "specialty_deadshot");
}
else if(level.script == "zm_prison")
{
options[m][options[m].size] = AddOption("Juggernog", ::GivePerk, "specialty_armorvest");
options[m][options[m].size] = AddOption("Quick Reload", ::GivePerk, "specialty_fastreload");
options[m][options[m].size] = AddOption("Double Tap", ::GivePerk, "specialty_rof");
options[m][options[m].size] = AddOption("Electric Cherry", ::GivePerk, "specialty_grenadepulldeath");
options[m][options[m].size] = AddOption("Deadshot", ::GivePerk, "specialty_deadshot");
}
else if(level.script == "zm_highrise")
{
options[m][options[m].size] = AddOption("Juggernog", ::GivePerk, "specialty_armorvest");
options[m][options[m].size] = AddOption("Quick Reload", ::GivePerk, "specialty_fastreload");
options[m][options[m].size] = AddOption("Double Tap", ::GivePerk, "specialty_rof");
options[m][options[m].size] = AddOption("Who's Who", ::GivePerk, "specialty_finalstand");
options[m][options[m].size] = AddOption("Quick Revive", ::GivePerk, "specialty_quickrevive");
options[m][options[m].size] = AddOption("Mulekick", ::GivePerk, "specialty_additionalprimaryweapon");
}
else if(level.script == "zm_nuked")
{
options[m][options[m].size] = AddOption("Juggernog", ::GivePerk, "specialty_armorvest");
options[m][options[m].size] = AddOption("Quick Reload", ::GivePerk, "specialty_fastreload");
options[m][options[m].size] = AddOption("Double Tap", ::GivePerk, "specialty_rof");
options[m][options[m].size] = AddOption("Quick Revive", ::GivePerk, "specialty_quickrevive");
}
 

jcal147

Veteran
Messages
63
Reaction score
12
Points
568
Hello,

I have got a working Perks menu that doesn't crash... but my issue is ALL the perks are showing on ALL the maps which obviously as most of you will know not every perk is on every map.

I am wanting it so the perks only show on the maps that the perk machine is available on if that makes sense

Also my Zombify works great 2 but same again... it shows on every single map and I want it to only show on MOTD. Zombify = Electric Hands.

Could anyone help?

I am also missing the specialist code for Electric Cherry which would be great if someone could add.

Thanks
I could not test the script I wrote due to what was provided being incomplete. That being said, I also don't know how you could tell whether or not anything works. There are several errors whenever you attempt to load a game. For example verificationtotag with 0 parameters... so on and so forth.
 
Last edited:
Top