[ZM] [Release] Remove Perk Limit
-
Script that sets zombie perk limit to 9. Replaces game file without needing to edit it.
To install:
- Download file
- Place downloaded file in the following folder: \AppData\Local\Plutonium\storage\t5\maps
-
This is cool but wouldn’t it just be easier and cleaner to just use the replacefunc option?
-
Duckyhub replacefunc doesn't work on that type of function. I've already tried.
-
Duckyhub even if that was an option i have no idea how it works anyway.
I had been looking for a way to remove the limit (including the way it's done in BO2) with no luck. However, thanks to @dontknowletsplay, I found out that you can replace game files without editing them and that the limit on perks could be found in the vending_trigger_think() function within _zombiemode_perks.gsc. rather than a variable in some random place in the code named something along the lines of "perk_purchase_limit". tried this method of replacing game file and it worked.
-
will this work in public lobbies?
-
MONSTERK11ER I haven't tested that. Though I think it has a chance of working.
Would certainly depend on the server though. I am unable to test this at the moment as I am still getting the "No avaliable sessions found" error.
-
I've subtracted
self.num_perks
to 5 upon a player's spawn. That way whenever the player spawns they would start off withself.num_perks = -5
which according to vending_think(), the thread will revert back to the start whenself.num_perks = 4
; each perk you buy will add the variable to 1. With the change I propose, after buying 4 perks would total the variable to-1
. So long as the variable does not equal 4, you can buy as many perks as you want.Apply this equation to make it easier:
(x * -1) + 4 = Amount of perks to buy on the map
Where (in this case)
x = -5
and according to the equation, it will equal 9. The only exception is thatx
must equal a negative number.TL;DR
just make a custom script and add
self.num_perks
to a negative number inonPlayerSpawned()
init() { thread onPlayerConnect(); } onPlayerConnect() { for(;;) { level waittill ("connecting", player); player thread onPlayerSpawned(); } } onPlayerSpawned() { for(;;) { self waittill("spawned_player"); self.num_perks = -5; //Remove perk limit, must be a negative number } }
-
Ezentru map?? do i put it in mods or do i create a new folder and name it maps??
-
BigMacJr yeah create new folder named maps and put file in there.
Alternatively, follow the reply above yours' instructions to achieve the same result as my script. If you use their script instead, copy my version of code into a text file, change the extension of the file to .gsc and then place the file in the following directory: \AppData\Local\Plutonium\storage\t5\scripts\sp
Note: The reason you wanna use this version is because if you put his file where you are supposed to put it (\AppData\Local\Plutonium\storage\t5\scripts\sp\zom), it wont execute the script. and if you put it in sp, then it executes before you are even in a game. Adding that check for whether you are in "zombiemode" makes it so it executes and doesnt crash game upon launch.
init() { if ( GetDvar( #"zombiemode" ) == "1" ) { level thread onPlayerConnect(); } } onPlayerConnect() { for(;;) { level waittill ("connecting", player); player thread onPlayerSpawned(); } } onPlayerSpawned() { for(;;) { self waittill("spawned_player"); self.num_perks = -5; //Remove perk limit, must be a negative number } }
-
I managed to get replace func to work on this function.
-
Would it work if I put it in T6/script and create a map folder? Or is this for bo1 only?
-
@Avengeful_Gaming Would work for bo2, but there's already an easier way to do so.
-
Ezentru im a bit new to pc modding so this might be a bit of a stupid question but where is appdata?
-
@mr_foxinator easiest way to get to it is pressing the windows key + R, and then typing %appdata%.
-
Ezentru thank you : )
-
@mr_foxinator windows + r
type "%appdata%"
and there you go -
I am in the t5 folder for plutonium and i dont see a "Maps folder to place the Zombiemode_perks.gsc into do i create one or put it into mods -
This post is deleted!
-
Stupid question. How can I add this to my own T5 server?
-
-
Ezentru I LOVE YOU THANK YOU SO FUCKING MUCH I COULDN'T PLAY FOR A MONTH