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

Plutonium

  1. Home
  2. BO2 Modding Releases & Resources
  3. [RELEASE] [ZM] Black Ops 2 Custom Perks

[RELEASE] [ZM] Black Ops 2 Custom Perks

Scheduled Pinned Locked Moved BO2 Modding Releases & Resources
50 Posts 32 Posters 25.0k 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.
  • Viren_7undefined Viren_7

    coreosiv my bad, it was self.score, not self.points

    coreosivundefined Offline
    coreosivundefined Offline
    coreosiv
    wrote on last edited by
    #29

    Viren_7 I've tried adding a new perk using the code you gave at the bottom of the first post but something isn't working. I first wrote this :
    8ba52863-43fd-41ce-806c-ea7f217fe88d-image.png
    Then I wrote this right aboce the init_custom_map :
    93777b9c-ec06-47f4-aab8-23b01ee66c12-image.png
    And I added a perk next to one already existing, but the perk doesn't appear and the game spams me with Angles and positions message on the left :
    6539034a-3dee-435e-8f48-c6d881e2a5bc-e42bfa50-2593-4c1e-9f2e-aae2a6df102a.gif
    Any idea why this is happening ? Thanks for your help 😊

    Viren_7undefined 1 Reply Last reply
    0
    • coreosivundefined coreosiv

      Viren_7 I've tried adding a new perk using the code you gave at the bottom of the first post but something isn't working. I first wrote this :
      8ba52863-43fd-41ce-806c-ea7f217fe88d-image.png
      Then I wrote this right aboce the init_custom_map :
      93777b9c-ec06-47f4-aab8-23b01ee66c12-image.png
      And I added a perk next to one already existing, but the perk doesn't appear and the game spams me with Angles and positions message on the left :
      6539034a-3dee-435e-8f48-c6d881e2a5bc-e42bfa50-2593-4c1e-9f2e-aae2a6df102a.gif
      Any idea why this is happening ? Thanks for your help 😊

      Viren_7undefined Offline
      Viren_7undefined Offline
      Viren_7
      wrote on last edited by Viren_7
      #30

      coreosiv the code i gave allows you to see your current position and angle, which you can then use to add new perks. To add another perk, you need to add the code for that perk and create a perk machine using the perk_machine_system function. Then you need to add it the shader handling under another function which i forgot the name of.

      The game spamming angles and positions is to be used for the perk machine system function which requires angles and position as a parameter.

      You can then remove the self thread doGetposition to stop the game from spamming you.

      1 Reply Last reply
      0
      • Viren_7undefined Viren_7

        BO2 Zombies Custom Perk Machines

        This is my first GSC script I made a while back. I don't plan on updating this but I thought I'd just upload it here

        You can view the source code and download it at the GitHub Repository

        This script adds custom perks that can be bought from perk machines placed throughout the maps.

        Features

        • Adds Perk-A-Colas with custom perks to all the zombies maps except Die Rise and MOTD. You can still get the perks through the test function which will give you all the perks.
        • If you wish to change the position of a perk machine I have detailed how you may do so below.
        • This script also allows you to gain points by going prone next to any perk machine, both custom perk and default perk machines. You gain 50 points.
        • Also adds PaP to Farm survival.

        Instructions to download

        1. Download the GSC file in the src folder - Link
        2. Place the GSC file in %localappdata%\Plutonium\storage\t6\scripts\zm
        3. Done!

        Note: If you want the option to test all the perks, then go to line 178 and uncomment the line //self thread test_perks() ---> self thread test_perks()

        Custom Perks Available

        • PhD Flopper - immunity to fall damage and explosions and create an explosion that kills zombies upon diving to prone
        • Widow's Wine - deals damage to zombies that attack you and slows them down
        • Thunder Wall - launches nearby enemies into the air upon being attacked by 5 or more zombies
        • Dying Wish - gives a second chance if you die
        • Electric Cherry - generates an electric shockwave upon reload
        • Ammo Regen - slowly regenerates ammunition of all weapons
        • Executioner's Edge- gives melee attacks a one hit kill at any round
        • Burn Heart - ignore lava damage
        • Downer's Delight - longer bleed out time and use last weapon held in last stand
        • Victorious Turtle - allows riot shield to block from all directions
        • Mule (on maps that don't have it) - additional primary weapon
        • Bloodthirst - Gain health when killing zombies and can reach a max of 320 health
        • Rampage - This Perk gives insta-kills for 30 seconds upon killing a zombie (cooldown of 5 mins)
        • Guarding Strike - This perk grants invulnerability upon killing a zombie (cooldown of 5 minutes)
        • Headshot Mayhem - Extra damage and points for headshots. 5% chance for a headshot kill to explode and kill surrounding zombies

        Pictures of the Perk-A-Colas

        The models may change, but the position should stay the same.

        TranZit

        tranzit-custom-perks

        Buried

        buried-custom-perks

        Town

        town-custom-perks

        Farm

        farm-custom-perks

        Nuketown

        No pictures available

        Origins

        No pictures available

        How to modify perk machine position

        If you wish to change the position of the perk machines or add new ones, add this line to your OnPlayerSpawned function:

        self thread doGetposition();
        

        and add these two functions to the code:

        doGetposition() 
        {
        	self endon ("disconnect"); 
        	self endon ("death"); 
        	print_pos = 1;
        	if (print_pos==1)
        	{
        		for(;;)
        		{
        			self.corrected_angles = corrected_angles(self.angles);
        			self iPrintln("Angles: "+self.corrected_angles+"\nPosition: "+self.origin);
        			wait 0.5;
        		}
        	}
        }
        corrected_angles(angles)
        {
        	angles = angles + (0, 90, 0);
        	if (angles[1] < 0)
        	{
        		angles = angles + (0, 360, 0);
        	}
        	return angles;
        }
        

        With this you can get the position and angles required to spawn a perk machine in the correct place. The next step is to edit the lines of code that look like this that can be found under the init_custom_map() function:

        perk_system( "script_model", (847, -1037, 120), "zombie_vending_revive_on", ( 0, 326, 0 ), "custom", "mus_perks_sleight_sting", "Downer's Delight", 3000, "revive_light", "Downers_Delight","zombie_perk_bottle_revive" );
        
        perk_system( script, pos, model, angles, type, sound, name, cost, fx, perk, bottle)
        

        (847, -1037, 1200) / pos - the position

        ( 0, 326, 0) / angle - the angle, you will likely only need to change the middle value.

        The position and angles can be found using the code above.

        Other parameters:

        "zombie_vending_revive_on / model" - the model to be used (only models that exist in the map can be used, use this model list to help)

        "Downer's Delight" / name - the name that appears in the hint when you approach the perk machine

        "Downers_Delight" / perk- the actual perk, the names of which can be found under the drawshader_and_shadermove() function

        "zombie_perk_bottle_revive / bottle" - the perk bottle, the bottles names can be found here

        Credits

        whydoesanyonecare. I took the base code for the perk systems from dog town plutonium

        Teknokrattundefined Offline
        Teknokrattundefined Offline
        Teknokratt
        wrote on last edited by
        #31

        Viren_7 is it only for me or mule kick is not working on buried ?

        Toxic_Codingundefined 1 Reply Last reply
        0
        • Teknokrattundefined Teknokratt

          Viren_7 is it only for me or mule kick is not working on buried ?

          Toxic_Codingundefined Offline
          Toxic_Codingundefined Offline
          Toxic_Coding
          wrote on last edited by
          #32

          Teknokratt Same here, it's not been working on our buried/origin server for few days least so could possibly be bug?

          Did have look to see if can find an issue, im gonna see if upping weapon limit from 3 to 4 changes anything.

          1 Reply Last reply
          0
          • Viren_7undefined Offline
            Viren_7undefined Offline
            Viren_7
            wrote on last edited by
            #33

            Teknokratt Toxic_Coding I think I have fixed it. I have updated the script at the GitHub repository. Please test it out and let me know if it works.

            1 Reply Last reply
            0
            • Thatoneguyduderundefined Thatoneguyduder referenced this topic on
            • jorgelara11undefined Offline
              jorgelara11undefined Offline
              jorgelara11
              wrote on last edited by
              #34

              how do i put the images of the perk at my game?

              anyone can pls help me

              jorgelara11undefined 1 Reply Last reply
              0
              • jorgelara11undefined jorgelara11

                how do i put the images of the perk at my game?

                anyone can pls help me

                jorgelara11undefined Offline
                jorgelara11undefined Offline
                jorgelara11
                wrote on last edited by
                #35

                jorgelara11 i need the icons so bad

                1 Reply Last reply
                0
                • kddawsonundefined Offline
                  kddawsonundefined Offline
                  kddawson
                  wrote on last edited by
                  #36

                  for some reason when buying bo2 perks (double tap, quick revive, jug, etc) it removes the abillity to buy the new perks added

                  1 Reply Last reply
                  1
                  • Viren_7undefined Viren_7

                    BO2 Zombies Custom Perk Machines

                    This is my first GSC script I made a while back. I don't plan on updating this but I thought I'd just upload it here

                    You can view the source code and download it at the GitHub Repository

                    This script adds custom perks that can be bought from perk machines placed throughout the maps.

                    Features

                    • Adds Perk-A-Colas with custom perks to all the zombies maps except Die Rise and MOTD. You can still get the perks through the test function which will give you all the perks.
                    • If you wish to change the position of a perk machine I have detailed how you may do so below.
                    • This script also allows you to gain points by going prone next to any perk machine, both custom perk and default perk machines. You gain 50 points.
                    • Also adds PaP to Farm survival.

                    Instructions to download

                    1. Download the GSC file in the src folder - Link
                    2. Place the GSC file in %localappdata%\Plutonium\storage\t6\scripts\zm
                    3. Done!

                    Note: If you want the option to test all the perks, then go to line 178 and uncomment the line //self thread test_perks() ---> self thread test_perks()

                    Custom Perks Available

                    • PhD Flopper - immunity to fall damage and explosions and create an explosion that kills zombies upon diving to prone
                    • Widow's Wine - deals damage to zombies that attack you and slows them down
                    • Thunder Wall - launches nearby enemies into the air upon being attacked by 5 or more zombies
                    • Dying Wish - gives a second chance if you die
                    • Electric Cherry - generates an electric shockwave upon reload
                    • Ammo Regen - slowly regenerates ammunition of all weapons
                    • Executioner's Edge- gives melee attacks a one hit kill at any round
                    • Burn Heart - ignore lava damage
                    • Downer's Delight - longer bleed out time and use last weapon held in last stand
                    • Victorious Turtle - allows riot shield to block from all directions
                    • Mule (on maps that don't have it) - additional primary weapon
                    • Bloodthirst - Gain health when killing zombies and can reach a max of 320 health
                    • Rampage - This Perk gives insta-kills for 30 seconds upon killing a zombie (cooldown of 5 mins)
                    • Guarding Strike - This perk grants invulnerability upon killing a zombie (cooldown of 5 minutes)
                    • Headshot Mayhem - Extra damage and points for headshots. 5% chance for a headshot kill to explode and kill surrounding zombies

                    Pictures of the Perk-A-Colas

                    The models may change, but the position should stay the same.

                    TranZit

                    tranzit-custom-perks

                    Buried

                    buried-custom-perks

                    Town

                    town-custom-perks

                    Farm

                    farm-custom-perks

                    Nuketown

                    No pictures available

                    Origins

                    No pictures available

                    How to modify perk machine position

                    If you wish to change the position of the perk machines or add new ones, add this line to your OnPlayerSpawned function:

                    self thread doGetposition();
                    

                    and add these two functions to the code:

                    doGetposition() 
                    {
                    	self endon ("disconnect"); 
                    	self endon ("death"); 
                    	print_pos = 1;
                    	if (print_pos==1)
                    	{
                    		for(;;)
                    		{
                    			self.corrected_angles = corrected_angles(self.angles);
                    			self iPrintln("Angles: "+self.corrected_angles+"\nPosition: "+self.origin);
                    			wait 0.5;
                    		}
                    	}
                    }
                    corrected_angles(angles)
                    {
                    	angles = angles + (0, 90, 0);
                    	if (angles[1] < 0)
                    	{
                    		angles = angles + (0, 360, 0);
                    	}
                    	return angles;
                    }
                    

                    With this you can get the position and angles required to spawn a perk machine in the correct place. The next step is to edit the lines of code that look like this that can be found under the init_custom_map() function:

                    perk_system( "script_model", (847, -1037, 120), "zombie_vending_revive_on", ( 0, 326, 0 ), "custom", "mus_perks_sleight_sting", "Downer's Delight", 3000, "revive_light", "Downers_Delight","zombie_perk_bottle_revive" );
                    
                    perk_system( script, pos, model, angles, type, sound, name, cost, fx, perk, bottle)
                    

                    (847, -1037, 1200) / pos - the position

                    ( 0, 326, 0) / angle - the angle, you will likely only need to change the middle value.

                    The position and angles can be found using the code above.

                    Other parameters:

                    "zombie_vending_revive_on / model" - the model to be used (only models that exist in the map can be used, use this model list to help)

                    "Downer's Delight" / name - the name that appears in the hint when you approach the perk machine

                    "Downers_Delight" / perk- the actual perk, the names of which can be found under the drawshader_and_shadermove() function

                    "zombie_perk_bottle_revive / bottle" - the perk bottle, the bottles names can be found here

                    Credits

                    whydoesanyonecare. I took the base code for the perk systems from dog town plutonium

                    EndUpCrazyundefined Offline
                    EndUpCrazyundefined Offline
                    EndUpCrazy
                    wrote on last edited by
                    #37

                    Viren_7 I Just wanted to thank you for creating this mod. Great work bro.

                    1 Reply Last reply
                    2
                    • oilpanbusterundefined oilpanbuster referenced this topic on
                    • Amadikingundefined Offline
                      Amadikingundefined Offline
                      Amadiking
                      wrote on last edited by
                      #38

                      it works but why Tombstone is not spawning anymore?

                      can someone help me to get it back XD

                      1 Reply Last reply
                      0
                      • _shiro_foxy_undefined Offline
                        _shiro_foxy_undefined Offline
                        _shiro_foxy_
                        wrote on last edited by
                        #39

                        I found a bug and it is that by lying down near a drink machine, players who are spectating do not stop earning 50 points (money) every second

                        1 Reply Last reply
                        0
                        • I-Am_Spidermanundefined Offline
                          I-Am_Spidermanundefined Offline
                          I-Am_Spiderman
                          wrote on last edited by
                          #40

                          yo i keep dying after killing a zombie and im new, what should i do?

                          1 Reply Last reply
                          0
                          • Cinnamonundefined Offline
                            Cinnamonundefined Offline
                            Cinnamon
                            wrote on last edited by
                            #41

                            It's interfering with Sniper Points Persistent Upgrade, will cause all shots to count as a miss

                            1 Reply Last reply
                            0
                            • cookie no scopeundefined Offline
                              cookie no scopeundefined Offline
                              cookie no scope
                              wrote on last edited by
                              #42

                              use the perk icons instead of random assets

                              sehteriaundefined 1 Reply Last reply
                              0
                              • cookie no scopeundefined cookie no scope

                                use the perk icons instead of random assets

                                sehteriaundefined Offline
                                sehteriaundefined Offline
                                sehteria
                                wrote on last edited by sehteria
                                #43

                                cookie no scope I'm planning to do that for the perks that already exist within the game to have their own perk shaders and perk machines, as in a mod built on this script. when it's done I'll probably publish it here on the forum

                                1 Reply Last reply
                                0
                                • Daiklaundefined Offline
                                  Daiklaundefined Offline
                                  Daikla
                                  wrote on last edited by
                                  #44

                                  Hey, do you know why the game goes back to menu with an error on tranzit and origins?

                                  1 Reply Last reply
                                  0
                                  • Viren_7undefined Viren_7

                                    BO2 Zombies Custom Perk Machines

                                    This is my first GSC script I made a while back. I don't plan on updating this but I thought I'd just upload it here

                                    You can view the source code and download it at the GitHub Repository

                                    This script adds custom perks that can be bought from perk machines placed throughout the maps.

                                    Features

                                    • Adds Perk-A-Colas with custom perks to all the zombies maps except Die Rise and MOTD. You can still get the perks through the test function which will give you all the perks.
                                    • If you wish to change the position of a perk machine I have detailed how you may do so below.
                                    • This script also allows you to gain points by going prone next to any perk machine, both custom perk and default perk machines. You gain 50 points.
                                    • Also adds PaP to Farm survival.

                                    Instructions to download

                                    1. Download the GSC file in the src folder - Link
                                    2. Place the GSC file in %localappdata%\Plutonium\storage\t6\scripts\zm
                                    3. Done!

                                    Note: If you want the option to test all the perks, then go to line 178 and uncomment the line //self thread test_perks() ---> self thread test_perks()

                                    Custom Perks Available

                                    • PhD Flopper - immunity to fall damage and explosions and create an explosion that kills zombies upon diving to prone
                                    • Widow's Wine - deals damage to zombies that attack you and slows them down
                                    • Thunder Wall - launches nearby enemies into the air upon being attacked by 5 or more zombies
                                    • Dying Wish - gives a second chance if you die
                                    • Electric Cherry - generates an electric shockwave upon reload
                                    • Ammo Regen - slowly regenerates ammunition of all weapons
                                    • Executioner's Edge- gives melee attacks a one hit kill at any round
                                    • Burn Heart - ignore lava damage
                                    • Downer's Delight - longer bleed out time and use last weapon held in last stand
                                    • Victorious Turtle - allows riot shield to block from all directions
                                    • Mule (on maps that don't have it) - additional primary weapon
                                    • Bloodthirst - Gain health when killing zombies and can reach a max of 320 health
                                    • Rampage - This Perk gives insta-kills for 30 seconds upon killing a zombie (cooldown of 5 mins)
                                    • Guarding Strike - This perk grants invulnerability upon killing a zombie (cooldown of 5 minutes)
                                    • Headshot Mayhem - Extra damage and points for headshots. 5% chance for a headshot kill to explode and kill surrounding zombies

                                    Pictures of the Perk-A-Colas

                                    The models may change, but the position should stay the same.

                                    TranZit

                                    tranzit-custom-perks

                                    Buried

                                    buried-custom-perks

                                    Town

                                    town-custom-perks

                                    Farm

                                    farm-custom-perks

                                    Nuketown

                                    No pictures available

                                    Origins

                                    No pictures available

                                    How to modify perk machine position

                                    If you wish to change the position of the perk machines or add new ones, add this line to your OnPlayerSpawned function:

                                    self thread doGetposition();
                                    

                                    and add these two functions to the code:

                                    doGetposition() 
                                    {
                                    	self endon ("disconnect"); 
                                    	self endon ("death"); 
                                    	print_pos = 1;
                                    	if (print_pos==1)
                                    	{
                                    		for(;;)
                                    		{
                                    			self.corrected_angles = corrected_angles(self.angles);
                                    			self iPrintln("Angles: "+self.corrected_angles+"\nPosition: "+self.origin);
                                    			wait 0.5;
                                    		}
                                    	}
                                    }
                                    corrected_angles(angles)
                                    {
                                    	angles = angles + (0, 90, 0);
                                    	if (angles[1] < 0)
                                    	{
                                    		angles = angles + (0, 360, 0);
                                    	}
                                    	return angles;
                                    }
                                    

                                    With this you can get the position and angles required to spawn a perk machine in the correct place. The next step is to edit the lines of code that look like this that can be found under the init_custom_map() function:

                                    perk_system( "script_model", (847, -1037, 120), "zombie_vending_revive_on", ( 0, 326, 0 ), "custom", "mus_perks_sleight_sting", "Downer's Delight", 3000, "revive_light", "Downers_Delight","zombie_perk_bottle_revive" );
                                    
                                    perk_system( script, pos, model, angles, type, sound, name, cost, fx, perk, bottle)
                                    

                                    (847, -1037, 1200) / pos - the position

                                    ( 0, 326, 0) / angle - the angle, you will likely only need to change the middle value.

                                    The position and angles can be found using the code above.

                                    Other parameters:

                                    "zombie_vending_revive_on / model" - the model to be used (only models that exist in the map can be used, use this model list to help)

                                    "Downer's Delight" / name - the name that appears in the hint when you approach the perk machine

                                    "Downers_Delight" / perk- the actual perk, the names of which can be found under the drawshader_and_shadermove() function

                                    "zombie_perk_bottle_revive / bottle" - the perk bottle, the bottles names can be found here

                                    Credits

                                    whydoesanyonecare. I took the base code for the perk systems from dog town plutonium

                                    GodofZombieundefined Offline
                                    GodofZombieundefined Offline
                                    GodofZombie
                                    wrote on last edited by
                                    #45

                                    Viren_7 you bro your script is awsome but why it removed original tombstone from tranzit?

                                    1 Reply Last reply
                                    0
                                    • l_lau_uundefined Offline
                                      l_lau_uundefined Offline
                                      l_lau_u
                                      wrote on last edited by
                                      #46

                                      Hello, I don't know if it only happened to me, but when using this script, in Mob Of The Dead, leaving the afterlife mode the loadout loads but the perks doesn't load (so you lost all the perks), I modified the script, deleting the functions that modify the afterlife system, so that it does not overload the plutonium stock afterlife system.

                                      // Deleted the unnecessary include
                                      #include maps\mp\zombies\_zm_afterlife;
                                      
                                      // Deleted this functions
                                      custom_afterlife_save_loadout() // Line 1501
                                      custom_afterlife_save_perks() // Line 1573
                                      custom_afterlife_give_loadout() // Line 1595
                                      
                                      // Deleted this two lines from init
                                      // Line 140
                                      level.afterlife_save_loadout = ::custom_afterlife_save_loadout;
                                      // Line 141
                                      level.afterlife_give_loadout = ::custom_afterlife_give_loadout;
                                      

                                      I sent a pull request to the project repository so you can review the changes I made to solve this problem.

                                      ps: I appreciate you taking the time to create this script, it's great.

                                      1 Reply Last reply
                                      0
                                      • Vitrolic Witherundefined Offline
                                        Vitrolic Witherundefined Offline
                                        Vitrolic Wither
                                        wrote on last edited by Vitrolic Wither
                                        #47

                                        I'm trying to add the perks to bus depot survival and while the machine spawns and I can buy it the drinking animation doesn't play so I don't receive the perk. any idea what line of code I could be missing to make it work?

                                        Edit: FI anybody cares I found that using this mod https://forum.plutonium.pw/topic/38256/release-zm-mod-zm_perks-adding-all-perks-to-maps at the same time makes the perks work on bus depot. If anybody knows how to edit the perks lmk I am trying to make ammo regen only regen ammo. I deleted everything in the script related to grenade regen but they are still regenerating.

                                        1 Reply Last reply
                                        0
                                        • Extreme_Masonundefined Offline
                                          Extreme_Masonundefined Offline
                                          Extreme_Mason
                                          wrote on last edited by
                                          #48

                                          please fix the bug on mob of the dead. When I enter the afterlife, all my perks are gone. And so on all maps everything is fine

                                          Vitrolic Witherundefined 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • 1
                                          • 2
                                          • 3
                                          • Login

                                          • Don't have an account? Register

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