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

Plutonium

ThugDuck12undefined

ThugDuck12

@ThugDuck12
About
Posts
7
Topics
1
Shares
0
Groups
0
Followers
6
Following
2

Posts

Recent Best Controversial

  • help me
    ThugDuck12undefined ThugDuck12

    grumi the perk limit worked fine ?

    BO2 Modding Support & Discussion

  • help me
    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!");
    }
    
    BO2 Modding Support & Discussion

  • Zombies Counter Crashing BO2
    ThugDuck12undefined ThugDuck12

    Cahz niceee it worked, thanks a lot ❤

    BO2 Modding Support & Discussion

  • Zombies Counter Crashing BO2
    ThugDuck12undefined ThugDuck12

    Any zombie counter that i try, that "works" it crashes, the others are script failures, I have the crash file pls help.

    9c9cf7e6-6ff3-4388-977d-8faaf9f9bcb4-image.png 670ed3e7-2170-4579-90fb-45082cf7208f-image.png
    the .dmp file: https://we.tl/t-PehZeAJbR1
    Without the zombie counter script it works fine 😞

    My discord: ThugDuck12#3747

    BO2 Modding Support & Discussion

  • Bugs with Health Bar mod
    ThugDuck12undefined ThugDuck12
    #include maps/mp/_utility;
    #include common_scripts/utility;
    #include maps/mp/zombies/_zm;
    #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()
    {
    	level thread onPlayerConnect();
    }
    
    onPlayerConnect()
    {
    	for(;;)
    	{
    		level waittill("connected", player);
    		player iprintln("^1Health ^7Bar ^2ON");
    		player thread onPlayerSpawned();
    	}
    }
    
    
    onPlayerSpawned()
    {
    	level endon("end_game");
    	self endon("disconnect");
    	self waittill("spawned_player");
    	self thread health_bar_hud();
    }
    
    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;
    	}
    }
    

    try this, its a health bar, with a bar, in the center just above the drops

    BO2 Modding Support & Discussion
  • 1 / 1
  • Login

  • Don't have an account? Register

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