diff options
Diffstat (limited to 'mods/perks/noPerkLimit.gsc')
-rwxr-xr-x | mods/perks/noPerkLimit.gsc | 12 |
1 files changed, 10 insertions, 2 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;
+}
|