help me

Topic created · 7 Posts · 107 Views
  • 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?

  • @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.

  • 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!");
    }
    
  • @ThugDuck12 ty! amazing

  • @grumi the perk limit worked fine ?

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

  • @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.

Log in to reply