Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO1 Modding Releases & Resources
  3. [ZM] [Release] Remove Perk Limit

[ZM] [Release] Remove Perk Limit

Scheduled Pinned Locked Moved BO1 Modding Releases & Resources
22 Posts 16 Posters 19.6k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Duckyhubundefined Duckyhub

    This is cool but wouldn’t it just be easier and cleaner to just use the replacefunc option?

    Ezentruundefined Offline
    Ezentruundefined Offline
    Ezentru
    wrote on last edited by Ezentru
    #4

    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.

    1 Reply Last reply
    0
    • MONSTERK11ERundefined Offline
      MONSTERK11ERundefined Offline
      MONSTERK11ER
      Contributor
      wrote on last edited by
      #5

      will this work in public lobbies?

      Ezentruundefined 1 Reply Last reply
      0
      • MONSTERK11ERundefined MONSTERK11ER

        will this work in public lobbies?

        Ezentruundefined Offline
        Ezentruundefined Offline
        Ezentru
        wrote on last edited by Ezentru
        #6

        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.

        1 Reply Last reply
        0
        • Pistakillaundefined Offline
          Pistakillaundefined Offline
          Pistakilla
          wrote on last edited by
          #7

          I've subtracted self.num_perks to 5 upon a player's spawn. That way whenever the player spawns they would start off with self.num_perks = -5 which according to vending_think(), the thread will revert back to the start when self.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 that x must equal a negative number.

          TL;DR

          just make a custom script and add self.num_perks to a negative number in onPlayerSpawned()

          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
          
          	}
          }
          
          1 Reply Last reply
          3
          • Ezentruundefined Ezentru

            Script that sets zombie perk limit to 9. Replaces game file without needing to edit it.

            To install:

            1. Download file
            2. Place downloaded file in the following folder: \AppData\Local\Plutonium\storage\t5\maps
            BigMacJrundefined Offline
            BigMacJrundefined Offline
            BigMacJr
            wrote on last edited by
            #8

            Ezentru map?? do i put it in mods or do i create a new folder and name it maps??

            Ezentruundefined 1 Reply Last reply
            5
            • BigMacJrundefined BigMacJr

              Ezentru map?? do i put it in mods or do i create a new folder and name it maps??

              Ezentruundefined Offline
              Ezentruundefined Offline
              Ezentru
              wrote on last edited by Ezentru
              #9

              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
              
              	}
              }
              
              1 Reply Last reply
              0
              • JezuzLizardundefined JezuzLizard

                Duckyhub replacefunc doesn't work on that type of function. I've already tried.

                Soliderrorundefined Offline
                Soliderrorundefined Offline
                Soliderror
                wrote on last edited by
                #10

                I managed to get replace func to work on this function.

                1 Reply Last reply
                1
                • Aoteruzundefined Offline
                  Aoteruzundefined Offline
                  Aoteruz
                  wrote on last edited by
                  #11

                  Would it work if I put it in T6/script and create a map folder? Or is this for bo1 only?

                  Pistakillaundefined 1 Reply Last reply
                  0
                  • Aoteruzundefined Aoteruz

                    Would it work if I put it in T6/script and create a map folder? Or is this for bo1 only?

                    Pistakillaundefined Offline
                    Pistakillaundefined Offline
                    Pistakilla
                    wrote on last edited by
                    #12

                    @Avengeful_Gaming Would work for bo2, but there's already an easier way to do so.

                    1 Reply Last reply
                    0
                    • Ezentruundefined Ezentru

                      Script that sets zombie perk limit to 9. Replaces game file without needing to edit it.

                      To install:

                      1. Download file
                      2. Place downloaded file in the following folder: \AppData\Local\Plutonium\storage\t5\maps
                      x2belchlordundefined Offline
                      x2belchlordundefined Offline
                      x2belchlord
                      wrote on last edited by
                      #13

                      Ezentru im a bit new to pc modding so this might be a bit of a stupid question but where is appdata?

                      Ezentruundefined shwdrrrrrrundefined angxlzjundefined 3 Replies Last reply
                      0
                      • x2belchlordundefined x2belchlord

                        Ezentru im a bit new to pc modding so this might be a bit of a stupid question but where is appdata?

                        Ezentruundefined Offline
                        Ezentruundefined Offline
                        Ezentru
                        wrote on last edited by
                        #14

                        @mr_foxinator easiest way to get to it is pressing the windows key + R, and then typing %appdata%.

                        x2belchlordundefined 1 Reply Last reply
                        0
                        • Ezentruundefined Ezentru

                          @mr_foxinator easiest way to get to it is pressing the windows key + R, and then typing %appdata%.

                          x2belchlordundefined Offline
                          x2belchlordundefined Offline
                          x2belchlord
                          wrote on last edited by
                          #15

                          Ezentru thank you : )

                          1 Reply Last reply
                          1
                          • x2belchlordundefined x2belchlord

                            Ezentru im a bit new to pc modding so this might be a bit of a stupid question but where is appdata?

                            shwdrrrrrrundefined Offline
                            shwdrrrrrrundefined Offline
                            shwdrrrrrr
                            wrote on last edited by
                            #16

                            @mr_foxinator windows + r
                            type "%appdata%"
                            and there you go

                            1 Reply Last reply
                            0
                            • TankLover24undefined Offline
                              TankLover24undefined Offline
                              TankLover24
                              wrote on last edited by
                              #17

                              07566fe9-9c07-4ac8-a42b-5f73cb31e416-image.png
                              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

                              1 Reply Last reply
                              1
                              • x2belchlordundefined x2belchlord

                                Ezentru im a bit new to pc modding so this might be a bit of a stupid question but where is appdata?

                                angxlzjundefined Offline
                                angxlzjundefined Offline
                                angxlzj
                                wrote on last edited by
                                #18
                                This post is deleted!
                                1 Reply Last reply
                                0
                                • TheKiller66undefined Offline
                                  TheKiller66undefined Offline
                                  TheKiller66
                                  wrote on last edited by
                                  #19

                                  Stupid question. How can I add this to my own T5 server?

                                  1 Reply Last reply
                                  0
                                  • bhfffundefined bhfff referenced this topic on
                                  • Ezentruundefined Ezentru

                                    Script that sets zombie perk limit to 9. Replaces game file without needing to edit it.

                                    To install:

                                    1. Download file
                                    2. Place downloaded file in the following folder: \AppData\Local\Plutonium\storage\t5\maps
                                    qzy124undefined Offline
                                    qzy124undefined Offline
                                    qzy124
                                    wrote on last edited by
                                    #20

                                    Ezentru I LOVE YOU THANK YOU SO FUCKING MUCH I COULDN'T PLAY FOR A MONTH

                                    1 Reply Last reply
                                    1
                                    • K4YN3_04undefined Offline
                                      K4YN3_04undefined Offline
                                      K4YN3_04
                                      wrote on last edited by
                                      #21

                                      yesssirrrr

                                      1 Reply Last reply
                                      0
                                      • TheAdriESP107undefined Offline
                                        TheAdriESP107undefined Offline
                                        TheAdriESP107
                                        wrote on last edited by
                                        #22
                                        This post is deleted!
                                        1 Reply Last reply
                                        0
                                        Reply
                                        • Reply as topic
                                        Log in to reply
                                        • Oldest to Newest
                                        • Newest to Oldest
                                        • Most Votes


                                        • 1
                                        • 2
                                        • Login

                                        • Don't have an account? Register

                                        • Login or register to search.
                                        • First post
                                          Last post
                                        0
                                        • Recent
                                        • Tags
                                        • Popular
                                        • Users
                                        • Groups
                                        • Donate