UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Zombies Counter

broken avatar :(
Created 2 years ago
by shippuden1592
0 Members and 1 Guest are viewing this topic.
426 views
broken avatar :(
×
broken avatar :(
Location: mxGuanajuato
Date Registered: 5 May 2013
Last active: 5 days ago
Posts
225
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
Personal Quote
If you do not take risks, you can not create a fut
×
shippuden1592's Groups
1.-Go to raw/maps/... and find the zombie_mapname.gsc file and copy it to your mods/mapname/maps/.. folder.
 
2.-Open the file and look for this line:
Code Snippet
Plaintext
maps\_zombiemode::main();
Below add this
Code Snippet
Plaintext
thread zombiesleft_hud();
Finally add this function at the end of your zombie_mapname.gsc file:
Code Snippet
Plaintext
zombiesleft_hud()
{  
    Remaining = create_simple_hud();
      Remaining.horzAlign = "center";
      Remaining.vertAlign = "middle";
       Remaining.alignX = "Left";
       Remaining.alignY = "middle";
       Remaining.y = 230;
       Remaining.x = 60;
       Remaining.foreground = 1;
       Remaining.fontscale = 8.0;
       Remaining.alpha = 1;
       Remaining.color = ( 1, 0.5, 0 );

       ZombiesLeft = create_simple_hud();
       ZombiesLeft.horzAlign = "center";
       ZombiesLeft.vertAlign = "middle";
       ZombiesLeft.alignX = "center";
       ZombiesLeft.alignY = "middle";
       ZombiesLeft.y = 230;
       ZombiesLeft.x = -1;
       ZombiesLeft.foreground = 1;
       ZombiesLeft.fontscale = 8.0;
       ZombiesLeft.alpha = 1;
       ZombiesLeft.color = ( 1, 0.5, 0 );
       ZombiesLeft SetText("Zombies: ");

    while(1)
    {
        remainingZombies = get_enemy_count() + level.zombie_total;
        Remaining SetValue(remainingZombies);

        if(remainingZombies == 0 )
        {
            Remaining.alpha = 0;
            while(1)
            {
                remainingZombies = get_enemy_count() + level.zombie_total;
                if(remainingZombies != 0 )
                {
                    Remaining.alpha = 1;
                    break;
                }
                wait 0.5;
            }
        }
        wait 0.5;
    }        
}

 

 
Loading ...