Thread: progress bar

Results 1 to 15 of 15
  1. #1
    eliteCVDelite's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    47
    Reputation
    10
    Thanks
    5

    progress bar

    How do you make a progress bar from this:
    Code:
    teamdolevelup()
    {
        level.killsperlevel = 10; 
        level.alliescurrentscore = 0;
        level.axiscurrentscore = 0;
        level.alliescurrentlevel = 1;
        level.axiscurrentlevel = 1;
    
        while(1)
            {
            if(getTeamScore("allies") - level.alliescurrentscore >= level.killsperlevel*100 && level.alliescurrentlevel != 57)
                {
                level.alliescurrentlevel++;
                level.alliescurrentscore = getTeamScore("allies");
                }
            if(getTeamScore("axis") - level.axiscurrentscore >= level.killsperlevel*100 && level.axiscurrentlevel != 57)
                {
                level.axiscurrentlevel++;
                level.axiscurrentscore = getTeamScore("axis");
                }
            wait 0.25;
            }        
    }
    And how do you add it here?:
    Code:
            scoreText3 setText("^2Team ELITE Level [" + level.alliescurrentlevel + "/" + self.gunlist.size + "]");
            scoreText4 setText("^1Team   PRO Level [" + level.axiscurrentlevel + "/" + self.gunlist.size + "]");
    also if the last level is reached that a turning nuke sign is coming and the progress bar disappears
    thx

  2. #2
    eliteCVDelite's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    47
    Reputation
    10
    Thanks
    5
    does anyone knows?? I

    do know it?

  3. #3
    .:MUS1CFR34K:.'s Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    room 666
    Posts
    215
    Reputation
    12
    Thanks
    35
    My Mood
    Sneaky
    shouldnt you put this in the gsc modding help section?
    sorry cant help you i aint that advanced to mods =/

  4. #4
    eliteCVDelite's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    47
    Reputation
    10
    Thanks
    5
    plz amin/[MPGH](name) move this plz to the gsc help section

  5. #5
    Archangel's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Between Both Worlds
    Posts
    8,866
    Reputation
    1021
    Thanks
    9,003
    My Mood
    Angelic
    /moved to help

  6. #6
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,113
    My Mood
    Angelic
    You know, you can look on the _perkfunctions.gsc in the RIP collection by master131.

    And find one Man Army.
    There it's an progress bar

    EDIT:
    I Found it:


    omaUseBar( duration )
    {
    self endon( "disconnect" );

    useBar = createPrimaryProgressBar( 25 );
    useBarText = createPrimaryProgressBarText( 25 );
    useBarText setText( &"MPUI_CHANGING_KIT" ); //This is the Text that will show
    useBar updateBar( 0, 1 / duration ); //I think It increase evert 0.05 sec and with 1 every time. I think you have to edite somehere yourself
    for ( waitedTime = 0; waitedTime < duration && isAlive( self ) && !level.gameEnded; waitedTime += 0.05 )
    wait ( 0.05 );

    useBar destroyElem();
    useBarText destroyElem();
    }
    Last edited by Jorndel; 04-29-2011 at 03:32 AM.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  7. #7
    eliteCVDelite's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    47
    Reputation
    10
    Thanks
    5
    I did this:
    Code:
    omaUseBar()
    {
    self endon( "disconnect" );
    
    useBar = createPrimaryProgressBar( 25 );
    useBarText = createPrimaryProgressBarText( 25 );
    useBarText setText(" + level.alliescurrentlevel + "/" + self.gunlist.size + "); //This is the Text that will show
    useBar updateBar(self.allieslevelup = level.alliescurrentlevel); //I think It increase evert 0.05 sec and with 1 every time. I think you have to edite somehere yourself
    for ( waitedTime = 0; waitedTime < duration && isAlive( self ) && !level.gameEnded; waitedTime += 0.05 ) 
    wait ( 0.05 );
    
    useBar destroyElem();
    useBarText destroyElem();
    }
    and:

    Code:
    		scoreText3 setText("^2Team ELITE Level ["self thread omaUseBar()"]");
    		scoreText4 setText("^1Team   PRO Level ["self thread omaaUseBar()"]");
    but it doesnt work....

  8. #8
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,113
    My Mood
    Angelic
    Quote Originally Posted by eliteCVDelite View Post
    I did this:
    Code:
    omaUseBar()
    {
    self endon( "disconnect" );
    
    useBar = createPrimaryProgressBar( 25 );
    useBarText = createPrimaryProgressBarText( 25 );
    useBarText setText(" + level.alliescurrentlevel + "/" + self.gunlist.size + "); //This is the Text that will show
    useBar updateBar(self.allieslevelup = level.alliescurrentlevel); //I think It increase evert 0.05 sec and with 1 every time. I think you have to edite somehere yourself
    for ( waitedTime = 0; waitedTime < duration && isAlive( self ) && !level.gameEnded; waitedTime += 0.05 ) 
    wait ( 0.05 );
    
    useBar destroyElem();
    useBarText destroyElem();
    }
    and:

    Code:
    		scoreText3 setText("^2Team ELITE Level ["self thread omaUseBar()"]");
    		scoreText4 setText("^1Team   PRO Level ["self thread omaaUseBar()"]");
    but it doesnt work....


    Look at this: ( Its the orginal Mw2 Score Progress Bar. )

    Click Here

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  9. #9
    eliteCVDelite's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    47
    Reputation
    10
    Thanks
    5
    i dont understand it

    can you make one for me plz?

  10. #10
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,113
    My Mood
    Angelic
    Quote Originally Posted by eliteCVDelite View Post
    i dont understand it

    can you make one for me plz?

    I will look when I get home.

    So now it is 14:00

    And home at 16:00


    If nothing comes up then

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  11. #11
    eliteCVDelite's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    47
    Reputation
    10
    Thanks
    5
    Quote Originally Posted by jorndel View Post
    I will look when I get home.

    So now it is 14:00

    And home at 16:00


    If nothing comes up then
    ok thanks

  12. #12
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,113
    My Mood
    Angelic

    Progress Bare:

    Quote Originally Posted by eliteCVDelite View Post
    ok thanks
    Sorry for so late. I will start look now.

    Had to fix somethings and so.....

    Quote Originally Posted by eliteCVDelite View Post
    ok thanks
    Sorry for so late. I will start look now.

    Had to fix somethings and so.....

    Quote Originally Posted by eliteCVDelite View Post
    ok thanks
    Sorry for so late. I will start look now.

    Had to fix somethings and so.....

    This is it:
    UseBar()
    {
    self endon( "disconnect" );
    while (1) {
    self notifyOnPlayerCommand("5", "+actionslot 2");
    self waittill("5");
    useBar = createPrimaryProgressBar( 25 );
    useBarText = createPrimaryProgressBarText( 25 );
    useBar updateBar( 10 / 20); // This is the value, The max is 20 and you get 10 off 20. So I think you just add your things in there.
    }
    }
    Last edited by Jorndel; 04-29-2011 at 10:04 AM.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  13. #13
    eliteCVDelite's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    47
    Reputation
    10
    Thanks
    5
    "This is the value, The max is 20 and you get 10 off 20. So I think you just add your things in there."


    max lvl is 60, the rest you can get from the first post.

    plz add it because this is pretty difficult and I have not mutch time (alot of things to do)

    plz do it

  14. #14
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,113
    My Mood
    Angelic
    Quote Originally Posted by eliteCVDelite View Post
    "This is the value, The max is 20 and you get 10 off 20. So I think you just add your things in there."


    max lvl is 60, the rest you can get from the first post.

    plz add it because this is pretty difficult and I have not mutch time (alot of things to do)

    plz do it
    Well, I got alot to do too^^

    Helping people, and gone teatch one peron today...

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  15. #15
    eliteCVDelite's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    47
    Reputation
    10
    Thanks
    5
    Quote Originally Posted by jorndel View Post
    Well, I got alot to do too^^

    Helping people, and gone teatch one peron today...
    ok

    maybe tomorrow then?