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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. help me

help me

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
9 Posts 7 Posters 368 Views 1 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.
  • grumiundefined Offline
    grumiundefined Offline
    grumi
    wrote on last edited by
    #1

    can i be banned from servers for using this mod?

    https://forum.plutonium.pw/topic/10473/release-zm-cold-war-zombies-mod/23?_=1627083286859

    Is there any way to put only the life bar?

    JezuzLizardundefined 1 Reply Last reply
    0
    • grumiundefined grumi

      can i be banned from servers for using this mod?

      https://forum.plutonium.pw/topic/10473/release-zm-cold-war-zombies-mod/23?_=1627083286859

      Is there any way to put only the life bar?

      JezuzLizardundefined Offline
      JezuzLizardundefined Offline
      JezuzLizard
      Plutonium Staff
      wrote on last edited by
      #2

      grumi GSC mods only work in private matches where you are host or on dedicated servers which have the mod loaded themselves. You cannot be banned for having GSC loaded the proper way.

      If you only want the health bar you'll have to look at the mod yourself and find the health bar code and make your own mod that only has the health bar.

      Murderxl22undefined 1 Reply Last reply
      0
      • ThugDuck12undefined Offline
        ThugDuck12undefined Offline
        ThugDuck12
        wrote on last edited by ThugDuck12
        #3

        if u want i gave u the health bar, drop weapons, the max ammo form bo4, and a zombie counter, working fine

        #include maps/mp/_utility;
        #include maps/mp/zm_transit;
        #include maps/mp/zombies/_zm;
        #include common_scripts/utility;
        #include maps/mp/zombies/_zm_stats;
        #include maps/mp/zombies/_zm_perks;
        #include maps/mp/zombies/_zm_utility;
        #include maps/mp/gametypes_zm/_hud_util;
        #include maps/mp/gametypes_zm/_hud_message;
        
        
        init()
        {
        	precacheshader("damage_feedback");
        	precacheshader("menu_mp_fileshare_custom");
        	
        	setDvar("player_strafeSpeedScale", 1);
        	setDvar("player_sprintStrafeSpeedScale", 1);
        	setDvar("player_backSpeedScale", 1);
        	setDvar("jump_slowdownEnable", 0);
        	level.perk_purchase_limit = 9;
            for(;;)
            {
                level waittill("connected", player);
                player thread welcome();
            }
        	level thread onPlayerConnect();
        }
        
        onPlayerConnect()
        {
        	for(;;)
        	{
        		level waittill("connected", player);
        		player iprintln("^1Agora vai, ^6CONFIA!");
        		player thread zombies();
        		player thread visuals();
        		player thread onPlayerSpawned();
        		player thread drawZombiesCounter();
        	}
        }
        
        zombies()
        {
        	level endon("end_game");
        	self endon("disconnect");
        	for(;;)
        	{
        		level waittill("start_of_round");
        		if(level.zombie_health > 10000)
        		{
        			level.zombie_health = 10000;
        		}
        		wait 0.05;
        	}
        }
        
        visuals()
        {
        	self setClientDvar("r_fog", 0);
        	self setClientDvar("r_dof_enable", 0);
        	self setClientDvar("r_lodBiasRigid", -1000);
        	self setClientDvar("r_lodBiasSkinned", -1000);
        	self setClientDvar("r_lodScaleRigid", 1);
        	self setClientDvar("r_lodScaleSkinned", 1);
        	self useservervisionset(1);
        	self setvisionsetforplayer("remote_mortar_enhanced", 0);
        }
        
        onPlayerSpawned()
        {
        	level endon("end_game");
        	self endon("disconnect");
        	self waittill("spawned_player");
        	self setPerk("specialty_unlimitedsprint");	
        	self thread drop();
        	self thread health_bar_hud();
        	self thread BO4maxammo();
        }
        
        drop()
        {
        	level endon("end_game");
        	self endon("disconnect");
        	for (;;) 
        	{
        		if (self meleebuttonpressed()) 
        		{
        			duration = 0;
        			while (self meleebuttonpressed()) 
        			{
        				duration += 1;
        				if (duration == 30) 
        				{
        					weap = self getCurrentWeapon();
        					self dropItem(weap);
        					break;
        				}
        				wait 0.05;
        			}
        		}
        		wait 0.05;
        	}
        }
        
        health_bar_hud()
        {
        	level endon("end_game");
        	self endon("disconnect");
        	flag_wait("initial_blackscreen_passed");
        
        	health_bar = self createprimaryprogressbar();
        	if (level.script == "zm_buried")
        	{
        		health_bar setpoint(undefined, "BOTTOM", 0, -5);
        	}
        	else if (level.script == "zm_tomb")
        	{
        		health_bar setpoint(undefined, "BOTTOM", 0, -5);
        	}
        	else
        	{
        		health_bar setpoint(undefined, "BOTTOM", 0, -5);
        	}
        	health_bar.hidewheninmenu = 1;
        	health_bar.bar.hidewheninmenu = 1;
        	health_bar.barframe.hidewheninmenu = 1;
        
        	health_bar_text = self createprimaryprogressbartext();
        	if (level.script == "zm_buried")
        	{
        		health_bar_text setpoint(undefined, "BOTTOM", -75, -5);
        	}
        	else if (level.script == "zm_tomb")
        	{
        		health_bar_text setpoint(undefined, "BOTTOM", -75, -5);
        	}
        	else
        	{
        		health_bar_text setpoint(undefined, "BOTTOM", -75, -5);
        	}
        	health_bar_text.hidewheninmenu = 1;
        
        	while (1)
        	{
        		if (isDefined(self.e_afterlife_corpse))
        		{
        			if (health_bar.alpha != 0)
        			{
        				health_bar.alpha = 0;
        				health_bar.bar.alpha = 0;
        				health_bar.barframe.alpha = 0;
        				health_bar_text.alpha = 0;
        			}
        			
        			wait 0.05;
        			continue;
        		}
        
        		if (health_bar.alpha != 1)
        		{
        			health_bar.alpha = 1;
        			health_bar.bar.alpha = 1;
        			health_bar.barframe.alpha = 1;
        			health_bar_text.alpha = 1;
        		}
        
        		health_bar updatebar(self.health / self.maxhealth);
        		health_bar_text setvalue(self.health);
        
        		wait 0.05;
        	}
        }
        
        BO4maxammo()
        {
            self endon("disconnect");
            level endon("game_end");
            for(;;) 
            {
                self waittill("zmb_max_ammo");
                weaps = self getweaponslist(1);
                foreach (weap in weaps) 
                {
                    self setweaponammoclip(weap, weaponclipsize(weap));
                }
                wait 0.05;
            }
        }
        
        drawZombiesCounter()
        {
            self.zombiesCounter = maps/mp/gametypes_zm/_hud_util::createFontString("Objective" , 1.7 );
            self.zombiesCounter maps/mp/gametypes_zm/_hud_util::setPoint(undefined, "TOP", 0, 10);
            while( true )
            {
            	self.zombiesCounter setValue( ( maps/mp/zombies/_zm_utility::get_round_enemy_array().size + level.zombie_total ) );
                if( maps/mp/zombies/_zm_utility::get_round_enemy_array().size + level.zombie_total != 0 )
                	self.zombiesCounter.label = &"Zombies: ^1";
                else
                	self.zombiesCounter.label = &"Zombies: ^7";
                wait 0.05;
            }
        }
        
        welcome()
        {
            self endon("disconnect");
            self waittill("spawned_player");
            wait 7;
        	self iprintln("^2" +self.name + "^7 , Voce e foda!");
        }
        
        grumiundefined AdrX003undefined Ekko420undefined Desempregradoundefined 4 Replies Last reply
        0
        • ThugDuck12undefined ThugDuck12

          if u want i gave u the health bar, drop weapons, the max ammo form bo4, and a zombie counter, working fine

          #include maps/mp/_utility;
          #include maps/mp/zm_transit;
          #include maps/mp/zombies/_zm;
          #include common_scripts/utility;
          #include maps/mp/zombies/_zm_stats;
          #include maps/mp/zombies/_zm_perks;
          #include maps/mp/zombies/_zm_utility;
          #include maps/mp/gametypes_zm/_hud_util;
          #include maps/mp/gametypes_zm/_hud_message;
          
          
          init()
          {
          	precacheshader("damage_feedback");
          	precacheshader("menu_mp_fileshare_custom");
          	
          	setDvar("player_strafeSpeedScale", 1);
          	setDvar("player_sprintStrafeSpeedScale", 1);
          	setDvar("player_backSpeedScale", 1);
          	setDvar("jump_slowdownEnable", 0);
          	level.perk_purchase_limit = 9;
              for(;;)
              {
                  level waittill("connected", player);
                  player thread welcome();
              }
          	level thread onPlayerConnect();
          }
          
          onPlayerConnect()
          {
          	for(;;)
          	{
          		level waittill("connected", player);
          		player iprintln("^1Agora vai, ^6CONFIA!");
          		player thread zombies();
          		player thread visuals();
          		player thread onPlayerSpawned();
          		player thread drawZombiesCounter();
          	}
          }
          
          zombies()
          {
          	level endon("end_game");
          	self endon("disconnect");
          	for(;;)
          	{
          		level waittill("start_of_round");
          		if(level.zombie_health > 10000)
          		{
          			level.zombie_health = 10000;
          		}
          		wait 0.05;
          	}
          }
          
          visuals()
          {
          	self setClientDvar("r_fog", 0);
          	self setClientDvar("r_dof_enable", 0);
          	self setClientDvar("r_lodBiasRigid", -1000);
          	self setClientDvar("r_lodBiasSkinned", -1000);
          	self setClientDvar("r_lodScaleRigid", 1);
          	self setClientDvar("r_lodScaleSkinned", 1);
          	self useservervisionset(1);
          	self setvisionsetforplayer("remote_mortar_enhanced", 0);
          }
          
          onPlayerSpawned()
          {
          	level endon("end_game");
          	self endon("disconnect");
          	self waittill("spawned_player");
          	self setPerk("specialty_unlimitedsprint");	
          	self thread drop();
          	self thread health_bar_hud();
          	self thread BO4maxammo();
          }
          
          drop()
          {
          	level endon("end_game");
          	self endon("disconnect");
          	for (;;) 
          	{
          		if (self meleebuttonpressed()) 
          		{
          			duration = 0;
          			while (self meleebuttonpressed()) 
          			{
          				duration += 1;
          				if (duration == 30) 
          				{
          					weap = self getCurrentWeapon();
          					self dropItem(weap);
          					break;
          				}
          				wait 0.05;
          			}
          		}
          		wait 0.05;
          	}
          }
          
          health_bar_hud()
          {
          	level endon("end_game");
          	self endon("disconnect");
          	flag_wait("initial_blackscreen_passed");
          
          	health_bar = self createprimaryprogressbar();
          	if (level.script == "zm_buried")
          	{
          		health_bar setpoint(undefined, "BOTTOM", 0, -5);
          	}
          	else if (level.script == "zm_tomb")
          	{
          		health_bar setpoint(undefined, "BOTTOM", 0, -5);
          	}
          	else
          	{
          		health_bar setpoint(undefined, "BOTTOM", 0, -5);
          	}
          	health_bar.hidewheninmenu = 1;
          	health_bar.bar.hidewheninmenu = 1;
          	health_bar.barframe.hidewheninmenu = 1;
          
          	health_bar_text = self createprimaryprogressbartext();
          	if (level.script == "zm_buried")
          	{
          		health_bar_text setpoint(undefined, "BOTTOM", -75, -5);
          	}
          	else if (level.script == "zm_tomb")
          	{
          		health_bar_text setpoint(undefined, "BOTTOM", -75, -5);
          	}
          	else
          	{
          		health_bar_text setpoint(undefined, "BOTTOM", -75, -5);
          	}
          	health_bar_text.hidewheninmenu = 1;
          
          	while (1)
          	{
          		if (isDefined(self.e_afterlife_corpse))
          		{
          			if (health_bar.alpha != 0)
          			{
          				health_bar.alpha = 0;
          				health_bar.bar.alpha = 0;
          				health_bar.barframe.alpha = 0;
          				health_bar_text.alpha = 0;
          			}
          			
          			wait 0.05;
          			continue;
          		}
          
          		if (health_bar.alpha != 1)
          		{
          			health_bar.alpha = 1;
          			health_bar.bar.alpha = 1;
          			health_bar.barframe.alpha = 1;
          			health_bar_text.alpha = 1;
          		}
          
          		health_bar updatebar(self.health / self.maxhealth);
          		health_bar_text setvalue(self.health);
          
          		wait 0.05;
          	}
          }
          
          BO4maxammo()
          {
              self endon("disconnect");
              level endon("game_end");
              for(;;) 
              {
                  self waittill("zmb_max_ammo");
                  weaps = self getweaponslist(1);
                  foreach (weap in weaps) 
                  {
                      self setweaponammoclip(weap, weaponclipsize(weap));
                  }
                  wait 0.05;
              }
          }
          
          drawZombiesCounter()
          {
              self.zombiesCounter = maps/mp/gametypes_zm/_hud_util::createFontString("Objective" , 1.7 );
              self.zombiesCounter maps/mp/gametypes_zm/_hud_util::setPoint(undefined, "TOP", 0, 10);
              while( true )
              {
              	self.zombiesCounter setValue( ( maps/mp/zombies/_zm_utility::get_round_enemy_array().size + level.zombie_total ) );
                  if( maps/mp/zombies/_zm_utility::get_round_enemy_array().size + level.zombie_total != 0 )
                  	self.zombiesCounter.label = &"Zombies: ^1";
                  else
                  	self.zombiesCounter.label = &"Zombies: ^7";
                  wait 0.05;
              }
          }
          
          welcome()
          {
              self endon("disconnect");
              self waittill("spawned_player");
              wait 7;
          	self iprintln("^2" +self.name + "^7 , Voce e foda!");
          }
          
          grumiundefined Offline
          grumiundefined Offline
          grumi
          wrote on last edited by
          #4

          ThugDuck12 ty! amazing

          ThugDuck12undefined 1 Reply Last reply
          1
          • grumiundefined grumi

            ThugDuck12 ty! amazing

            ThugDuck12undefined Offline
            ThugDuck12undefined Offline
            ThugDuck12
            wrote on last edited by
            #5

            grumi the perk limit worked fine ?

            1 Reply Last reply
            0
            • ThugDuck12undefined ThugDuck12

              if u want i gave u the health bar, drop weapons, the max ammo form bo4, and a zombie counter, working fine

              #include maps/mp/_utility;
              #include maps/mp/zm_transit;
              #include maps/mp/zombies/_zm;
              #include common_scripts/utility;
              #include maps/mp/zombies/_zm_stats;
              #include maps/mp/zombies/_zm_perks;
              #include maps/mp/zombies/_zm_utility;
              #include maps/mp/gametypes_zm/_hud_util;
              #include maps/mp/gametypes_zm/_hud_message;
              
              
              init()
              {
              	precacheshader("damage_feedback");
              	precacheshader("menu_mp_fileshare_custom");
              	
              	setDvar("player_strafeSpeedScale", 1);
              	setDvar("player_sprintStrafeSpeedScale", 1);
              	setDvar("player_backSpeedScale", 1);
              	setDvar("jump_slowdownEnable", 0);
              	level.perk_purchase_limit = 9;
                  for(;;)
                  {
                      level waittill("connected", player);
                      player thread welcome();
                  }
              	level thread onPlayerConnect();
              }
              
              onPlayerConnect()
              {
              	for(;;)
              	{
              		level waittill("connected", player);
              		player iprintln("^1Agora vai, ^6CONFIA!");
              		player thread zombies();
              		player thread visuals();
              		player thread onPlayerSpawned();
              		player thread drawZombiesCounter();
              	}
              }
              
              zombies()
              {
              	level endon("end_game");
              	self endon("disconnect");
              	for(;;)
              	{
              		level waittill("start_of_round");
              		if(level.zombie_health > 10000)
              		{
              			level.zombie_health = 10000;
              		}
              		wait 0.05;
              	}
              }
              
              visuals()
              {
              	self setClientDvar("r_fog", 0);
              	self setClientDvar("r_dof_enable", 0);
              	self setClientDvar("r_lodBiasRigid", -1000);
              	self setClientDvar("r_lodBiasSkinned", -1000);
              	self setClientDvar("r_lodScaleRigid", 1);
              	self setClientDvar("r_lodScaleSkinned", 1);
              	self useservervisionset(1);
              	self setvisionsetforplayer("remote_mortar_enhanced", 0);
              }
              
              onPlayerSpawned()
              {
              	level endon("end_game");
              	self endon("disconnect");
              	self waittill("spawned_player");
              	self setPerk("specialty_unlimitedsprint");	
              	self thread drop();
              	self thread health_bar_hud();
              	self thread BO4maxammo();
              }
              
              drop()
              {
              	level endon("end_game");
              	self endon("disconnect");
              	for (;;) 
              	{
              		if (self meleebuttonpressed()) 
              		{
              			duration = 0;
              			while (self meleebuttonpressed()) 
              			{
              				duration += 1;
              				if (duration == 30) 
              				{
              					weap = self getCurrentWeapon();
              					self dropItem(weap);
              					break;
              				}
              				wait 0.05;
              			}
              		}
              		wait 0.05;
              	}
              }
              
              health_bar_hud()
              {
              	level endon("end_game");
              	self endon("disconnect");
              	flag_wait("initial_blackscreen_passed");
              
              	health_bar = self createprimaryprogressbar();
              	if (level.script == "zm_buried")
              	{
              		health_bar setpoint(undefined, "BOTTOM", 0, -5);
              	}
              	else if (level.script == "zm_tomb")
              	{
              		health_bar setpoint(undefined, "BOTTOM", 0, -5);
              	}
              	else
              	{
              		health_bar setpoint(undefined, "BOTTOM", 0, -5);
              	}
              	health_bar.hidewheninmenu = 1;
              	health_bar.bar.hidewheninmenu = 1;
              	health_bar.barframe.hidewheninmenu = 1;
              
              	health_bar_text = self createprimaryprogressbartext();
              	if (level.script == "zm_buried")
              	{
              		health_bar_text setpoint(undefined, "BOTTOM", -75, -5);
              	}
              	else if (level.script == "zm_tomb")
              	{
              		health_bar_text setpoint(undefined, "BOTTOM", -75, -5);
              	}
              	else
              	{
              		health_bar_text setpoint(undefined, "BOTTOM", -75, -5);
              	}
              	health_bar_text.hidewheninmenu = 1;
              
              	while (1)
              	{
              		if (isDefined(self.e_afterlife_corpse))
              		{
              			if (health_bar.alpha != 0)
              			{
              				health_bar.alpha = 0;
              				health_bar.bar.alpha = 0;
              				health_bar.barframe.alpha = 0;
              				health_bar_text.alpha = 0;
              			}
              			
              			wait 0.05;
              			continue;
              		}
              
              		if (health_bar.alpha != 1)
              		{
              			health_bar.alpha = 1;
              			health_bar.bar.alpha = 1;
              			health_bar.barframe.alpha = 1;
              			health_bar_text.alpha = 1;
              		}
              
              		health_bar updatebar(self.health / self.maxhealth);
              		health_bar_text setvalue(self.health);
              
              		wait 0.05;
              	}
              }
              
              BO4maxammo()
              {
                  self endon("disconnect");
                  level endon("game_end");
                  for(;;) 
                  {
                      self waittill("zmb_max_ammo");
                      weaps = self getweaponslist(1);
                      foreach (weap in weaps) 
                      {
                          self setweaponammoclip(weap, weaponclipsize(weap));
                      }
                      wait 0.05;
                  }
              }
              
              drawZombiesCounter()
              {
                  self.zombiesCounter = maps/mp/gametypes_zm/_hud_util::createFontString("Objective" , 1.7 );
                  self.zombiesCounter maps/mp/gametypes_zm/_hud_util::setPoint(undefined, "TOP", 0, 10);
                  while( true )
                  {
                  	self.zombiesCounter setValue( ( maps/mp/zombies/_zm_utility::get_round_enemy_array().size + level.zombie_total ) );
                      if( maps/mp/zombies/_zm_utility::get_round_enemy_array().size + level.zombie_total != 0 )
                      	self.zombiesCounter.label = &"Zombies: ^1";
                      else
                      	self.zombiesCounter.label = &"Zombies: ^7";
                      wait 0.05;
                  }
              }
              
              welcome()
              {
                  self endon("disconnect");
                  self waittill("spawned_player");
                  wait 7;
              	self iprintln("^2" +self.name + "^7 , Voce e foda!");
              }
              
              AdrX003undefined Offline
              AdrX003undefined Offline
              AdrX003
              wrote on last edited by
              #6

              ThugDuck12 huahahua estudando GSC tbm?
              bora conversar quando der, chama no discord AdrX003#2242

              1 Reply Last reply
              0
              • JezuzLizardundefined JezuzLizard

                grumi GSC mods only work in private matches where you are host or on dedicated servers which have the mod loaded themselves. You cannot be banned for having GSC loaded the proper way.

                If you only want the health bar you'll have to look at the mod yourself and find the health bar code and make your own mod that only has the health bar.

                Murderxl22undefined Offline
                Murderxl22undefined Offline
                Murderxl22
                wrote on last edited by Murderxl22
                #7

                JezuzLizard Hey so if I wanted to make the health bar code what would I have to do? Can I just copy and paste it when I find it into my images folder? Sorry, I don't know anything really about coding.

                1 Reply Last reply
                0
                • ThugDuck12undefined ThugDuck12

                  if u want i gave u the health bar, drop weapons, the max ammo form bo4, and a zombie counter, working fine

                  #include maps/mp/_utility;
                  #include maps/mp/zm_transit;
                  #include maps/mp/zombies/_zm;
                  #include common_scripts/utility;
                  #include maps/mp/zombies/_zm_stats;
                  #include maps/mp/zombies/_zm_perks;
                  #include maps/mp/zombies/_zm_utility;
                  #include maps/mp/gametypes_zm/_hud_util;
                  #include maps/mp/gametypes_zm/_hud_message;
                  
                  
                  init()
                  {
                  	precacheshader("damage_feedback");
                  	precacheshader("menu_mp_fileshare_custom");
                  	
                  	setDvar("player_strafeSpeedScale", 1);
                  	setDvar("player_sprintStrafeSpeedScale", 1);
                  	setDvar("player_backSpeedScale", 1);
                  	setDvar("jump_slowdownEnable", 0);
                  	level.perk_purchase_limit = 9;
                      for(;;)
                      {
                          level waittill("connected", player);
                          player thread welcome();
                      }
                  	level thread onPlayerConnect();
                  }
                  
                  onPlayerConnect()
                  {
                  	for(;;)
                  	{
                  		level waittill("connected", player);
                  		player iprintln("^1Agora vai, ^6CONFIA!");
                  		player thread zombies();
                  		player thread visuals();
                  		player thread onPlayerSpawned();
                  		player thread drawZombiesCounter();
                  	}
                  }
                  
                  zombies()
                  {
                  	level endon("end_game");
                  	self endon("disconnect");
                  	for(;;)
                  	{
                  		level waittill("start_of_round");
                  		if(level.zombie_health > 10000)
                  		{
                  			level.zombie_health = 10000;
                  		}
                  		wait 0.05;
                  	}
                  }
                  
                  visuals()
                  {
                  	self setClientDvar("r_fog", 0);
                  	self setClientDvar("r_dof_enable", 0);
                  	self setClientDvar("r_lodBiasRigid", -1000);
                  	self setClientDvar("r_lodBiasSkinned", -1000);
                  	self setClientDvar("r_lodScaleRigid", 1);
                  	self setClientDvar("r_lodScaleSkinned", 1);
                  	self useservervisionset(1);
                  	self setvisionsetforplayer("remote_mortar_enhanced", 0);
                  }
                  
                  onPlayerSpawned()
                  {
                  	level endon("end_game");
                  	self endon("disconnect");
                  	self waittill("spawned_player");
                  	self setPerk("specialty_unlimitedsprint");	
                  	self thread drop();
                  	self thread health_bar_hud();
                  	self thread BO4maxammo();
                  }
                  
                  drop()
                  {
                  	level endon("end_game");
                  	self endon("disconnect");
                  	for (;;) 
                  	{
                  		if (self meleebuttonpressed()) 
                  		{
                  			duration = 0;
                  			while (self meleebuttonpressed()) 
                  			{
                  				duration += 1;
                  				if (duration == 30) 
                  				{
                  					weap = self getCurrentWeapon();
                  					self dropItem(weap);
                  					break;
                  				}
                  				wait 0.05;
                  			}
                  		}
                  		wait 0.05;
                  	}
                  }
                  
                  health_bar_hud()
                  {
                  	level endon("end_game");
                  	self endon("disconnect");
                  	flag_wait("initial_blackscreen_passed");
                  
                  	health_bar = self createprimaryprogressbar();
                  	if (level.script == "zm_buried")
                  	{
                  		health_bar setpoint(undefined, "BOTTOM", 0, -5);
                  	}
                  	else if (level.script == "zm_tomb")
                  	{
                  		health_bar setpoint(undefined, "BOTTOM", 0, -5);
                  	}
                  	else
                  	{
                  		health_bar setpoint(undefined, "BOTTOM", 0, -5);
                  	}
                  	health_bar.hidewheninmenu = 1;
                  	health_bar.bar.hidewheninmenu = 1;
                  	health_bar.barframe.hidewheninmenu = 1;
                  
                  	health_bar_text = self createprimaryprogressbartext();
                  	if (level.script == "zm_buried")
                  	{
                  		health_bar_text setpoint(undefined, "BOTTOM", -75, -5);
                  	}
                  	else if (level.script == "zm_tomb")
                  	{
                  		health_bar_text setpoint(undefined, "BOTTOM", -75, -5);
                  	}
                  	else
                  	{
                  		health_bar_text setpoint(undefined, "BOTTOM", -75, -5);
                  	}
                  	health_bar_text.hidewheninmenu = 1;
                  
                  	while (1)
                  	{
                  		if (isDefined(self.e_afterlife_corpse))
                  		{
                  			if (health_bar.alpha != 0)
                  			{
                  				health_bar.alpha = 0;
                  				health_bar.bar.alpha = 0;
                  				health_bar.barframe.alpha = 0;
                  				health_bar_text.alpha = 0;
                  			}
                  			
                  			wait 0.05;
                  			continue;
                  		}
                  
                  		if (health_bar.alpha != 1)
                  		{
                  			health_bar.alpha = 1;
                  			health_bar.bar.alpha = 1;
                  			health_bar.barframe.alpha = 1;
                  			health_bar_text.alpha = 1;
                  		}
                  
                  		health_bar updatebar(self.health / self.maxhealth);
                  		health_bar_text setvalue(self.health);
                  
                  		wait 0.05;
                  	}
                  }
                  
                  BO4maxammo()
                  {
                      self endon("disconnect");
                      level endon("game_end");
                      for(;;) 
                      {
                          self waittill("zmb_max_ammo");
                          weaps = self getweaponslist(1);
                          foreach (weap in weaps) 
                          {
                              self setweaponammoclip(weap, weaponclipsize(weap));
                          }
                          wait 0.05;
                      }
                  }
                  
                  drawZombiesCounter()
                  {
                      self.zombiesCounter = maps/mp/gametypes_zm/_hud_util::createFontString("Objective" , 1.7 );
                      self.zombiesCounter maps/mp/gametypes_zm/_hud_util::setPoint(undefined, "TOP", 0, 10);
                      while( true )
                      {
                      	self.zombiesCounter setValue( ( maps/mp/zombies/_zm_utility::get_round_enemy_array().size + level.zombie_total ) );
                          if( maps/mp/zombies/_zm_utility::get_round_enemy_array().size + level.zombie_total != 0 )
                          	self.zombiesCounter.label = &"Zombies: ^1";
                          else
                          	self.zombiesCounter.label = &"Zombies: ^7";
                          wait 0.05;
                      }
                  }
                  
                  welcome()
                  {
                      self endon("disconnect");
                      self waittill("spawned_player");
                      wait 7;
                  	self iprintln("^2" +self.name + "^7 , Voce e foda!");
                  }
                  
                  Ekko420undefined Offline
                  Ekko420undefined Offline
                  Ekko420
                  wrote on last edited by
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • ThugDuck12undefined ThugDuck12

                    if u want i gave u the health bar, drop weapons, the max ammo form bo4, and a zombie counter, working fine

                    #include maps/mp/_utility;
                    #include maps/mp/zm_transit;
                    #include maps/mp/zombies/_zm;
                    #include common_scripts/utility;
                    #include maps/mp/zombies/_zm_stats;
                    #include maps/mp/zombies/_zm_perks;
                    #include maps/mp/zombies/_zm_utility;
                    #include maps/mp/gametypes_zm/_hud_util;
                    #include maps/mp/gametypes_zm/_hud_message;
                    
                    
                    init()
                    {
                    	precacheshader("damage_feedback");
                    	precacheshader("menu_mp_fileshare_custom");
                    	
                    	setDvar("player_strafeSpeedScale", 1);
                    	setDvar("player_sprintStrafeSpeedScale", 1);
                    	setDvar("player_backSpeedScale", 1);
                    	setDvar("jump_slowdownEnable", 0);
                    	level.perk_purchase_limit = 9;
                        for(;;)
                        {
                            level waittill("connected", player);
                            player thread welcome();
                        }
                    	level thread onPlayerConnect();
                    }
                    
                    onPlayerConnect()
                    {
                    	for(;;)
                    	{
                    		level waittill("connected", player);
                    		player iprintln("^1Agora vai, ^6CONFIA!");
                    		player thread zombies();
                    		player thread visuals();
                    		player thread onPlayerSpawned();
                    		player thread drawZombiesCounter();
                    	}
                    }
                    
                    zombies()
                    {
                    	level endon("end_game");
                    	self endon("disconnect");
                    	for(;;)
                    	{
                    		level waittill("start_of_round");
                    		if(level.zombie_health > 10000)
                    		{
                    			level.zombie_health = 10000;
                    		}
                    		wait 0.05;
                    	}
                    }
                    
                    visuals()
                    {
                    	self setClientDvar("r_fog", 0);
                    	self setClientDvar("r_dof_enable", 0);
                    	self setClientDvar("r_lodBiasRigid", -1000);
                    	self setClientDvar("r_lodBiasSkinned", -1000);
                    	self setClientDvar("r_lodScaleRigid", 1);
                    	self setClientDvar("r_lodScaleSkinned", 1);
                    	self useservervisionset(1);
                    	self setvisionsetforplayer("remote_mortar_enhanced", 0);
                    }
                    
                    onPlayerSpawned()
                    {
                    	level endon("end_game");
                    	self endon("disconnect");
                    	self waittill("spawned_player");
                    	self setPerk("specialty_unlimitedsprint");	
                    	self thread drop();
                    	self thread health_bar_hud();
                    	self thread BO4maxammo();
                    }
                    
                    drop()
                    {
                    	level endon("end_game");
                    	self endon("disconnect");
                    	for (;;) 
                    	{
                    		if (self meleebuttonpressed()) 
                    		{
                    			duration = 0;
                    			while (self meleebuttonpressed()) 
                    			{
                    				duration += 1;
                    				if (duration == 30) 
                    				{
                    					weap = self getCurrentWeapon();
                    					self dropItem(weap);
                    					break;
                    				}
                    				wait 0.05;
                    			}
                    		}
                    		wait 0.05;
                    	}
                    }
                    
                    health_bar_hud()
                    {
                    	level endon("end_game");
                    	self endon("disconnect");
                    	flag_wait("initial_blackscreen_passed");
                    
                    	health_bar = self createprimaryprogressbar();
                    	if (level.script == "zm_buried")
                    	{
                    		health_bar setpoint(undefined, "BOTTOM", 0, -5);
                    	}
                    	else if (level.script == "zm_tomb")
                    	{
                    		health_bar setpoint(undefined, "BOTTOM", 0, -5);
                    	}
                    	else
                    	{
                    		health_bar setpoint(undefined, "BOTTOM", 0, -5);
                    	}
                    	health_bar.hidewheninmenu = 1;
                    	health_bar.bar.hidewheninmenu = 1;
                    	health_bar.barframe.hidewheninmenu = 1;
                    
                    	health_bar_text = self createprimaryprogressbartext();
                    	if (level.script == "zm_buried")
                    	{
                    		health_bar_text setpoint(undefined, "BOTTOM", -75, -5);
                    	}
                    	else if (level.script == "zm_tomb")
                    	{
                    		health_bar_text setpoint(undefined, "BOTTOM", -75, -5);
                    	}
                    	else
                    	{
                    		health_bar_text setpoint(undefined, "BOTTOM", -75, -5);
                    	}
                    	health_bar_text.hidewheninmenu = 1;
                    
                    	while (1)
                    	{
                    		if (isDefined(self.e_afterlife_corpse))
                    		{
                    			if (health_bar.alpha != 0)
                    			{
                    				health_bar.alpha = 0;
                    				health_bar.bar.alpha = 0;
                    				health_bar.barframe.alpha = 0;
                    				health_bar_text.alpha = 0;
                    			}
                    			
                    			wait 0.05;
                    			continue;
                    		}
                    
                    		if (health_bar.alpha != 1)
                    		{
                    			health_bar.alpha = 1;
                    			health_bar.bar.alpha = 1;
                    			health_bar.barframe.alpha = 1;
                    			health_bar_text.alpha = 1;
                    		}
                    
                    		health_bar updatebar(self.health / self.maxhealth);
                    		health_bar_text setvalue(self.health);
                    
                    		wait 0.05;
                    	}
                    }
                    
                    BO4maxammo()
                    {
                        self endon("disconnect");
                        level endon("game_end");
                        for(;;) 
                        {
                            self waittill("zmb_max_ammo");
                            weaps = self getweaponslist(1);
                            foreach (weap in weaps) 
                            {
                                self setweaponammoclip(weap, weaponclipsize(weap));
                            }
                            wait 0.05;
                        }
                    }
                    
                    drawZombiesCounter()
                    {
                        self.zombiesCounter = maps/mp/gametypes_zm/_hud_util::createFontString("Objective" , 1.7 );
                        self.zombiesCounter maps/mp/gametypes_zm/_hud_util::setPoint(undefined, "TOP", 0, 10);
                        while( true )
                        {
                        	self.zombiesCounter setValue( ( maps/mp/zombies/_zm_utility::get_round_enemy_array().size + level.zombie_total ) );
                            if( maps/mp/zombies/_zm_utility::get_round_enemy_array().size + level.zombie_total != 0 )
                            	self.zombiesCounter.label = &"Zombies: ^1";
                            else
                            	self.zombiesCounter.label = &"Zombies: ^7";
                            wait 0.05;
                        }
                    }
                    
                    welcome()
                    {
                        self endon("disconnect");
                        self waittill("spawned_player");
                        wait 7;
                    	self iprintln("^2" +self.name + "^7 , Voce e foda!");
                    }
                    
                    Desempregradoundefined Offline
                    Desempregradoundefined Offline
                    Desempregrado
                    wrote on last edited by
                    #9

                    ThugDuck12 mano eu achor que voce fez muita coisas desnecesaria ai e tipo no contador de zm dava de fazer isso que vc fez sem precisa adiciona maps/etc.. AD BOY7#5844 chama eu no discord que te passo umas dicas

                    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