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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [Zombies] Don't lose perks when being revived

[Zombies] Don't lose perks when being revived

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
zombiesservergsc
8 Posts 6 Posters 1.8k Views
  • 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.
  • A Former User? Offline
    A Former User? Offline
    A Former User
    wrote on last edited by A Former User
    #1

    Does anyone know of any gsc events that inform when the player is revived by another in the middle of the round?
    I managed to generate a script that gives perks to players when spawning, but not when it is revived, when that happens it loses all perks

    Cahzundefined JSNLundefined 2 Replies Last reply
    0
    • A Former User? A Former User

      Does anyone know of any gsc events that inform when the player is revived by another in the middle of the round?
      I managed to generate a script that gives perks to players when spawning, but not when it is revived, when that happens it loses all perks

      Cahzundefined Offline
      Cahzundefined Offline
      Cahz
      VIP
      wrote on last edited by
      #2

      @peximaximum waittill( "player_revived" );

      1 Reply Last reply
      2
      • So Highundefined Offline
        So Highundefined Offline
        So High
        wrote on last edited by
        #3

        necropost? anyways im in need of a script that lets u keep perks after revive. Did you figure it out?

        1 Reply Last reply
        0
        • A Former User? A Former User

          Does anyone know of any gsc events that inform when the player is revived by another in the middle of the round?
          I managed to generate a script that gives perks to players when spawning, but not when it is revived, when that happens it loses all perks

          JSNLundefined Offline
          JSNLundefined Offline
          JSNL
          wrote on last edited by
          #4

          @peximaximum ]

          1 Reply Last reply
          0
          • JezuzLizardundefined Offline
            JezuzLizardundefined Offline
            JezuzLizard
            Plutonium Staff
            wrote on last edited by
            #5

            In my Configuration Mod I added a new feature which should allow players to keep their perks when they are revived on most maps excluding MoTD since that map has custom revive logic.

            https://forum.plutonium.pw/topic/526/release-zombies-configuration-mod-for-dedicated-servers-disable-emp-explosions/19

            So Highundefined 1 Reply Last reply
            1
            • JezuzLizardundefined JezuzLizard

              In my Configuration Mod I added a new feature which should allow players to keep their perks when they are revived on most maps excluding MoTD since that map has custom revive logic.

              https://forum.plutonium.pw/topic/526/release-zombies-configuration-mod-for-dedicated-servers-disable-emp-explosions/19

              So Highundefined Offline
              So Highundefined Offline
              So High
              wrote on last edited by
              #6

              JezuzLizard yea i tried it it didnt work. I added the init files from your mod to my files and specific things i wanted from the dedicated_zm files including playermaxhealth, playerretainperks, and deadshot accuracy, and none of those 3 worked. Everything else did though. (I even tried adding the playerretainperks into the main based on the playermaxhealth script

              level.cmPlayerRetainPerks = getDvarIntDefault( "cmPlayerRetainPerks", 1 );

              no work

              vivia1990undefined 1 Reply Last reply
              0
              • So Highundefined So High

                JezuzLizard yea i tried it it didnt work. I added the init files from your mod to my files and specific things i wanted from the dedicated_zm files including playermaxhealth, playerretainperks, and deadshot accuracy, and none of those 3 worked. Everything else did though. (I even tried adding the playerretainperks into the main based on the playermaxhealth script

                level.cmPlayerRetainPerks = getDvarIntDefault( "cmPlayerRetainPerks", 1 );

                no work

                vivia1990undefined Offline
                vivia1990undefined Offline
                vivia1990
                Contributor
                wrote on last edited by vivia1990
                #7

                @Hobo-Tim
                Look at the decompiled : \maps\mp\zombies_zm_pers_upgrades_functions.gsc
                In bo2 there's a perma perk that gives you the ability to keep perks even after you get downed. (but idk the name)
                I think the function is pers_upgrade_perk_lose_restore
                You could try to look there in my opinion and adapt the function to your project.

                1 Reply Last reply
                1
                • So Highundefined Offline
                  So Highundefined Offline
                  So High
                  wrote on last edited by
                  #8

                  I got keep all perks workin with cahz's help, but now i need the health settings to work. Player max health doesnt work, and i dont think the jugg health bonus works either.

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


                  • Login

                  • Don't have an account? Register

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