diff options
author | rafa_99 <raroma09@gmail.com> | 2022-02-03 04:14:48 +0000 |
---|---|---|
committer | rafa_99 <raroma09@gmail.com> | 2022-02-03 04:14:48 +0000 |
commit | d71d5b612366513c44ecaa3701c0e9693e78502d (patch) | |
tree | 03567cc1249f893ae3bde73fa1c21175969fbd0a /mods/perks | |
parent | e3b073b85ff0923b6fee3b95e3d8b5898b4a30c2 (diff) |
Updated Mods
Diffstat (limited to 'mods/perks')
-rwxr-xr-x | mods/perks/noPerkLimit.gsc | 12 | ||||
-rwxr-xr-x | mods/perks/perkaholic.gsc (renamed from mods/perks/giveAllPerks.gsc) | 7 |
2 files changed, 12 insertions, 7 deletions
diff --git a/mods/perks/noPerkLimit.gsc b/mods/perks/noPerkLimit.gsc index 649df15..e6fbbab 100755 --- a/mods/perks/noPerkLimit.gsc +++ b/mods/perks/noPerkLimit.gsc @@ -26,7 +26,15 @@ onPlayerSpawned() // Waits for the black preload screen to pass so it can load the mods
flag_wait( "initial_blackscreen_passed" );
- // Mod to Remove the Perk Limit
- level.perk_purchase_limit = 9;
+ // Mod sets a custom Perk Limit
+ thread setPerkLimit(l, 12);
}
}
+
+/*
+ * Function that update zombie perk limit
+ */
+setPerkLimit(l, numberOfPerks)
+{
+ l.perk_purchase_limit = numberOfPerks;
+}
diff --git a/mods/perks/giveAllPerks.gsc b/mods/perks/perkaholic.gsc index 5f51192..1343476 100755 --- a/mods/perks/giveAllPerks.gsc +++ b/mods/perks/perkaholic.gsc @@ -27,18 +27,15 @@ onPlayerSpawned() // Waits for the black preload screen to pass so it can load the mods
flag_wait( "initial_blackscreen_passed" );
- // Mod to Remove the Perk Limit
- level.perk_purchase_limit = 9;
-
// Gives all the perks available in the map to the player
- giveAllPerks(self, level);
+ perkaholic(self, level);
}
}
/*
* Function that gives the player all the perks available
*/
-giveAllPerks(p, l)
+perkaholic(p, l)
{
level waittill("start_of_round");
if (isDefined(l.zombiemode_using_juggernaut_perk) && l.zombiemode_using_juggernaut_perk)
|