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

Plutonium

  1. Home
  2. BO2 Modding Releases & Resources
  3. More Health/Health Changer Script for Zombie

More Health/Health Changer Script for Zombie

Scheduled Pinned Locked Moved BO2 Modding Releases & Resources
37 Posts 26 Posters 19.7k Views 3 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.
  • JuanMore89 JuanMore89

    Fennecsou Man, when get down on coop mode, i lose the "Boost
    health", and it doesn't work anymore. Is there another way to get the "Boost health"?

    Fennecsou Offline
    Fennecsou Offline
    Fennecsou
    wrote on last edited by
    #18

    JuanMore89 Same issue as quick revive, the script doesn't reapply the health boost when getting downed, i'm going to try and fix this soon.

    chasef7 1 Reply Last reply
    0
    • Fennecsou Fennecsou

      JuanMore89 Same issue as quick revive, the script doesn't reapply the health boost when getting downed, i'm going to try and fix this soon.

      chasef7 Offline
      chasef7 Offline
      chasef7
      Banned
      wrote on last edited by
      #19

      Fennecsou

      onPlayerRevived()
      {
      	self endon("disconnect");
      	level endon("end_game");
      	
      	for(;;)
       {
      	self waittill( "player_revived" );
          max_total_health = 150;
          self setmaxhealth( max_total_health );
      	self thread checkJugg();
       }
      }
      
      checkJugg()
      {
      wait 0.1;
          if( self hasperk("specialty_armorvest"))
      	{
      	 max_total_health = 250;
          self setmaxhealth( max_total_health );
      	}
      }
      
      Z3NlTH-Dr4G0N 1 Reply Last reply
      2
      • chasef7 chasef7

        Fennecsou

        onPlayerRevived()
        {
        	self endon("disconnect");
        	level endon("end_game");
        	
        	for(;;)
         {
        	self waittill( "player_revived" );
            max_total_health = 150;
            self setmaxhealth( max_total_health );
        	self thread checkJugg();
         }
        }
        
        checkJugg()
        {
        wait 0.1;
            if( self hasperk("specialty_armorvest"))
        	{
        	 max_total_health = 250;
            self setmaxhealth( max_total_health );
        	}
        }
        
        Z3NlTH-Dr4G0N Offline
        Z3NlTH-Dr4G0N Offline
        Z3NlTH-Dr4G0N
        wrote on last edited by
        #20

        chasef7 Hello, no scripting experience here, do I just add these to the original script or do I have to do something else first?

        chasef7 1 Reply Last reply
        0
        • Z3NlTH-Dr4G0N Z3NlTH-Dr4G0N

          chasef7 Hello, no scripting experience here, do I just add these to the original script or do I have to do something else first?

          chasef7 Offline
          chasef7 Offline
          chasef7
          Banned
          wrote on last edited by chasef7
          #21

          @P00DL3W0Lf_GR

          init()
          {
           	level thread onplayerconnect();
          }
          
          onplayerconnect()
          {
          	for ( ;; )
          	{
          		level waittill( "connecting", player );
          		player thread onplayerspawned();
          		player thread onPlayerRevived();
          	}
          }
          
          onplayerspawned()
          {
          	level endon( "game_ended" );
              self endon( "disconnect" );
              for(;;)
              {
                  self waittill( "spawned_player" );
                  self IPrintLnBold( "Max Health Boosted From 100hp to 150hp" );
          		self.maxhealth=150;
                  self.health=self.maxhealth;
              }
          }
          
          onPlayerRevived()
          {
          	self endon("disconnect");
          	level endon("end_game");
          	
          	for(;;)
           {
          	self waittill( "player_revived" );
              if( self hasperk("specialty_armorvest"))
          	{
          	}
          	else
          	{
              max_total_health = 150;
              self setmaxhealth( max_total_health );
          	}
           }
          }
          
          
          Z3NlTH-Dr4G0N 1 Reply Last reply
          0
          • chasef7 chasef7

            @P00DL3W0Lf_GR

            init()
            {
             	level thread onplayerconnect();
            }
            
            onplayerconnect()
            {
            	for ( ;; )
            	{
            		level waittill( "connecting", player );
            		player thread onplayerspawned();
            		player thread onPlayerRevived();
            	}
            }
            
            onplayerspawned()
            {
            	level endon( "game_ended" );
                self endon( "disconnect" );
                for(;;)
                {
                    self waittill( "spawned_player" );
                    self IPrintLnBold( "Max Health Boosted From 100hp to 150hp" );
            		self.maxhealth=150;
                    self.health=self.maxhealth;
                }
            }
            
            onPlayerRevived()
            {
            	self endon("disconnect");
            	level endon("end_game");
            	
            	for(;;)
             {
            	self waittill( "player_revived" );
                if( self hasperk("specialty_armorvest"))
            	{
            	}
            	else
            	{
                max_total_health = 150;
                self setmaxhealth( max_total_health );
            	}
             }
            }
            
            
            Z3NlTH-Dr4G0N Offline
            Z3NlTH-Dr4G0N Offline
            Z3NlTH-Dr4G0N
            wrote on last edited by
            #22

            chasef7 Ok, so I ust had to mention the extra threads...

            1 Reply Last reply
            0
            • SantiTheII Offline
              SantiTheII Offline
              SantiTheII
              wrote on last edited by
              #23
              This post is deleted!
              1 Reply Last reply
              0
              • SantiTheII Offline
                SantiTheII Offline
                SantiTheII
                wrote on last edited by
                #24

                This mod doesn't seem to work on MOTD, I'm still taking two hit downs

                1 Reply Last reply
                0
                • Fennecsou Fennecsou

                  This script change your health from 100hp to 150hp so you can survive 3 hits like in BO3 !

                  Download: https://github.com/Fennecsou/Player-Health-Changing-Script-BO2-Zombie

                  You can obviously change the value in the script but be aware that this script DON'T change the jugger-nog health value for that you will need another script or edit this one.

                  Known Issues: when in solo when you get revived with Quick Revive you go back to 100hp 😞

                  PLEASE DON'T REPOST THIS SCRIPT WITHOUT MY PERMISION EVEN IF ITS MODIFIED

                  Here some images because images are nice

                  Heres how it looks when you load in the map
                  unknown_2021.12.07-19.45_1 (2).png

                  Heres how it looks with a health bar (this health bar is from the Cold War Mod)
                  unknown_2021.12.07-19.45_2 (2).png

                  And finally heres how it looks after getting hit two times
                  unknown_2021.12.07-19.45_3 (2).png

                  Dont forget to leave your feedback i would love to hear it.

                  vToiD Offline
                  vToiD Offline
                  vToiD
                  wrote on last edited by
                  #25

                  Fennecsou I didn't understand, now the jugger will not make me 4 hit or you was just saying that if you change the value from 150 to any thing else the jugger will not change?

                  1 Reply Last reply
                  0
                  • Fennecsou Fennecsou

                    This script change your health from 100hp to 150hp so you can survive 3 hits like in BO3 !

                    Download: https://github.com/Fennecsou/Player-Health-Changing-Script-BO2-Zombie

                    You can obviously change the value in the script but be aware that this script DON'T change the jugger-nog health value for that you will need another script or edit this one.

                    Known Issues: when in solo when you get revived with Quick Revive you go back to 100hp 😞

                    PLEASE DON'T REPOST THIS SCRIPT WITHOUT MY PERMISION EVEN IF ITS MODIFIED

                    Here some images because images are nice

                    Heres how it looks when you load in the map
                    unknown_2021.12.07-19.45_1 (2).png

                    Heres how it looks with a health bar (this health bar is from the Cold War Mod)
                    unknown_2021.12.07-19.45_2 (2).png

                    And finally heres how it looks after getting hit two times
                    unknown_2021.12.07-19.45_3 (2).png

                    Dont forget to leave your feedback i would love to hear it.

                    AstralAberrant Offline
                    AstralAberrant Offline
                    AstralAberrant
                    wrote on last edited by
                    #26

                    Fennecsou script doesn't check for afterlife in Mob while Jug is active. upon using afterlife with Jug health reverts to 150 even while having it. Any way to fix that?

                    chicken emoji 1 Reply Last reply
                    1
                    • AstralAberrant AstralAberrant

                      Fennecsou script doesn't check for afterlife in Mob while Jug is active. upon using afterlife with Jug health reverts to 150 even while having it. Any way to fix that?

                      chicken emoji Offline
                      chicken emoji Offline
                      chicken emoji
                      wrote on last edited by
                      #27

                      @NexusClover do you mean you have 150 health while having jug after using afterlife? if yes how do you know that this is the case?

                      1 Reply Last reply
                      0
                      • Fennecsou Fennecsou

                        This script change your health from 100hp to 150hp so you can survive 3 hits like in BO3 !

                        Download: https://github.com/Fennecsou/Player-Health-Changing-Script-BO2-Zombie

                        You can obviously change the value in the script but be aware that this script DON'T change the jugger-nog health value for that you will need another script or edit this one.

                        Known Issues: when in solo when you get revived with Quick Revive you go back to 100hp 😞

                        PLEASE DON'T REPOST THIS SCRIPT WITHOUT MY PERMISION EVEN IF ITS MODIFIED

                        Here some images because images are nice

                        Heres how it looks when you load in the map
                        unknown_2021.12.07-19.45_1 (2).png

                        Heres how it looks with a health bar (this health bar is from the Cold War Mod)
                        unknown_2021.12.07-19.45_2 (2).png

                        And finally heres how it looks after getting hit two times
                        unknown_2021.12.07-19.45_3 (2).png

                        Dont forget to leave your feedback i would love to hear it.

                        HypahBOMB Offline
                        HypahBOMB Offline
                        HypahBOMB
                        wrote on last edited by
                        #28

                        Fennecsou Where can you get that Cold War Health Bar / HUD mod?

                        1 Reply Last reply
                        0
                        • Ripper_0_ Offline
                          Ripper_0_ Offline
                          Ripper_0_
                          wrote on last edited by
                          #29
                          This post is deleted!
                          1 Reply Last reply
                          0
                          • zelimpinho Offline
                            zelimpinho Offline
                            zelimpinho
                            wrote on last edited by
                            #30

                            I tried to play with a friend and only I survived with 3 hits, my friend keeps falling with 2
                            Does he also have to install the mod for it to work?

                            zelimpinho 1 Reply Last reply
                            0
                            • zelimpinho zelimpinho

                              I tried to play with a friend and only I survived with 3 hits, my friend keeps falling with 2
                              Does he also have to install the mod for it to work?

                              zelimpinho Offline
                              zelimpinho Offline
                              zelimpinho
                              wrote on last edited by
                              #31

                              zelimpinho When he falls once and is revived he comes back with 150 HP, so at the beginning of every game he dies on purpose so he can gain the boost ☝ 🤓

                              1 Reply Last reply
                              0
                              • [VIP5]Ultimate0 Offline
                                [VIP5]Ultimate0 Offline
                                [VIP5]Ultimate0
                                wrote on last edited by
                                #32

                                can you make one for bo1 zombies please?

                                1 Reply Last reply
                                0
                                • [VIP5]Ultimate0 [VIP5]Ultimate0 referenced this topic on
                                • Shawn6623 Offline
                                  Shawn6623 Offline
                                  Shawn6623
                                  wrote on last edited by
                                  #33

                                  Works great for the most part. Mob of the dead seems to have a bug where after purchasing jug, If you go into afterlife from one of the shock switches on the wall, after you revive yourself you are reverted to 150hp while still having jug. I can see this with the mod that tells you how many zombies are left as well as your hp.

                                  1 Reply Last reply
                                  0
                                  • OTobiOOG Offline
                                    OTobiOOG Offline
                                    OTobiOOG
                                    wrote on last edited by
                                    #34

                                    I kept trying to edit the uncompiled version and and tried to use the auto compiler, but it keeps saying "Bad Syntax at Line 27"

                                    1 Reply Last reply
                                    0
                                    • carqzs Offline
                                      carqzs Offline
                                      carqzs
                                      wrote on last edited by
                                      #35

                                      thank u this script is hype

                                      1 Reply Last reply
                                      0
                                      • GhostRider0125 GhostRider0125 referenced this topic on
                                      • nfk Veterana Offline
                                        nfk Veterana Offline
                                        nfk Veterana
                                        wrote on last edited by
                                        #36

                                        is it possible to make the same mechanic for MP, like having all the bots spawn with 200hp while human players have only 100.

                                        1 Reply Last reply
                                        0
                                        • XCSDXCVS Offline
                                          XCSDXCVS Offline
                                          XCSDXCVS
                                          wrote on last edited by
                                          #37

                                          w script goatman

                                          1 Reply Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          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
                                          • Unread 0
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Donate