Post: Giving perma perks/persistent upgrades
10-17-2015, 02:16 AM #1
BullyWiiPlaza
Climbing up the ladder
(adsbygoogle = window.adsbygoogle || []).push({}); I have been reading Treyarch's code for a while now to figure out how You must login or register to view this content. are given. I think that I'm pretty close to success but my code still doesn't quite work. Interesting is _zm_pers_upgrades.gsc which contains functions for registering and deregistering the perma perks. When digging deeper, the function pers_upgrades_monitor() in _zm_pers_upgrades_system.gsc appears to do all the magic so I grabbed code from there:

    givePermanentPerks()
{
pers_upgrade_index = 0;

while (pers_upgrade_index < level.pers_upgrades_keys.size)
{
upgrade_key = level.pers_upgrades_keys[pers_upgrade_index];
pers_upgrade = level.pers_upgrades[upgrade_key];

self thread [[pers_upgrade.upgrade_active_func]]();
self playsoundtoplayer( "evt_player_upgrade", self);
self iprintln("Upgraded!");

pers_upgrade_index++;
}
}

When the function is executed, it prints "Upgraded!" 7 times (that is the amount of perma perks in the game) however, none of the perma perks are actually given. I still die in 2 hits by a Zombie but I was supposed to have e.g. perma Jugg. What went wrong?

Thank you for your time Smile
(adsbygoogle = window.adsbygoogle || []).push({});
10-17-2015, 09:07 PM #2
FRINZ
I’m too L33T
here are list of perks

"deez nuts" works on all maps wat deez dus puts my bal sack on ur face why because it can its made on bo2 dnt belive me try it.

Tranzit Perks
specialty_armorvest
specialty_fastreload
specialty_quickrevive
specialty_rof
specialty_longersprint
specialty_scavenger

NukeTown
specialty_armorvest
specialty_fastreload
specialty_quickrevive
specialty_rof

buried
specialty_armorvest
specialty_fastreload
specialty_quickreviv
specialty_rof
specialty_longersprint
specialty_nomotionsensor
specialty_additionalprimaryweapon

Mw2 HighRise
specialty_armorvest
specialty_quickrevive
specialty_fastreload
specialty_rof
specialty_additionalprimaryweapon
specialty_finalstand

Tomb
specialty_armorvest
specialty_fastreload
specialty_quickrevive
specialty_rof
specialty_longersprint
specialty_grenadepulldeath
specialty_additionalprimaryweapon
specialty_flakjacket
specialty_deadshot

Prison
specialty_armorvest
specialty_fastreload
specialty_rof
specialty_deadshot
specialty_grenadepulldeath
specialty_flakjacket
specialty_additionalprimaryweapon

"JuggerNuts",::GiveMeNuts,"specialty_armorvest");

    GiveMeNuts(Nuts)
{
self maps/mp/zombies/_zm_perks::give_perk(Nuts);
self iprintln(Nuts + "Are Given To You");
}


if i missing sum oh well seb5594
10-17-2015, 09:15 PM #3
BullyWiiPlaza
Climbing up the ladder
This is not an answer to the question. I'm talking about the perma perks and not regular perk bottles. However, I found the solution myself already. I'm just not sure if it works properly or not. I'll figure that out or maybe post again Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo