Results 1 to 11 of 11
  1. #1
    pyrozombie's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    holland
    Posts
    351
    Reputation
    12
    Thanks
    62
    My Mood
    Cool

    health meter and health regain?

    hey guys

    need some help how can i build a health meter?

    and does someone know how i can shut off health regain for exis?

    already thanks!
    press thanks if i helped you.

    steam: pyro1012 (in game name is Undutchable)

    todo list:
    100 posts :
    250 posts :
    500 posts :
    750 posts :
    1000 posts :
    get 100 thanks :
    create a modd :
    create a camo :
    create a program :

  2. #2
    edub18's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Germany
    Posts
    146
    Reputation
    10
    Thanks
    12
    My Mood
    Bored
    Use a progress bar as health meter.
    Last edited by edub18; 06-23-2011 at 12:41 PM.

  3. #3
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    155
    Quote Originally Posted by Vanoq View Post
    Use a progress bar as health meter.
    Rofl?

    Take a look how it's done in other mods...

  4. #4
    pyrozombie's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    holland
    Posts
    351
    Reputation
    12
    Thanks
    62
    My Mood
    Cool
    yeah but it are all advanced codes i want something easy to learn
    press thanks if i helped you.

    steam: pyro1012 (in game name is Undutchable)

    todo list:
    100 posts :
    250 posts :
    500 posts :
    750 posts :
    1000 posts :
    get 100 thanks :
    create a modd :
    create a camo :
    create a program :

  5. #5
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Taken from a tutorial, I suppose it would be easy to understand it now.

    Code:
    HealthBar() 
    {
            useBar = createPrimaryProgressBar( -250 );
            useBarText = createPrimaryProgressBarText( -250 );
            useBarText settext("Health");
            useBarText.y = 205;
            useBar.bar.y = 220;
            useBar.y = 220;
    
            for(;;)
            {
                    usebar updateBar( self.health/100, 100 );
                    if(self.health < 50 && self.health < 30 != true)
                    {
                            usebar.color = (0,0,0);
                            usebar.bar.color = (0.9,1,0);
                            useBarText settext("^3Injuried");
                            usebar.alpha = 0.5;
                    }
                    else if(self.health < 30)
                    {
                            usebar.color = (0,0,0);
                            usebar.bar.color = (1,0,0);
                            useBarText settext("^1Critical");
                            usebar.alpha = 1;
                    }
                    else if(self.health > 50)
                    {
                            usebar.color = (0,0,0);
                            usebar.bar.color = (0,1,0);
                            useBarText settext("^2Normal");
                            usebar.alpha = 0.5;
                    }
                    wait 0.05;
            }
    }

  6. #6
    pyrozombie's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    holland
    Posts
    351
    Reputation
    12
    Thanks
    62
    My Mood
    Cool
    okey thanks!

    the healt regain is a Dvar i gues?

    edit

    cant find the healtregain Dvar can someone help me?

    and does anyone knows how i can make my modd like someone dies he joins spectator?
    Last edited by pyrozombie; 06-23-2011 at 02:17 PM.
    press thanks if i helped you.

    steam: pyro1012 (in game name is Undutchable)

    todo list:
    100 posts :
    250 posts :
    500 posts :
    750 posts :
    1000 posts :
    get 100 thanks :
    create a modd :
    create a camo :
    create a program :

  7. #7
    jimmynguyen3030's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    NukeTown
    Posts
    263
    Reputation
    10
    Thanks
    18
    My Mood
    Bored
    omg... again? look at a dvar list and Ctrl+f and search health
    If I Helped You, Plz Thanks.
    It Would Help Alot

    What Do You Do For A Living?
    I Mostly Own Noobs With The AK-47 With Silencer
    What's That?
    (Turns To Friend)
    HAHAHA Noob!!!!!!

  8. #8
    TechnoX's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    Logitech G510.
    Posts
    154
    Reputation
    11
    Thanks
    3
    My Mood
    Yeehaw
    Search for Health.

  9. #9
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,541
    My Mood
    Angelic
    @jimmynguyen3030
    @TechnoX

    Well, guys...
    Be helpful, don't just say do that.
    Atleast you could take your search resualt and share it with him.


    @pyrozombie

    Link to where he might search and so.
    scr_player_healthregentime "5"
    Source: Full Dvar List
    Last edited by Jorndel; 06-24-2011 at 03:12 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

  10. #10
    pyrozombie's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    holland
    Posts
    351
    Reputation
    12
    Thanks
    62
    My Mood
    Cool
    okey thanks jorndel and yamato

    got the join spectators myself so this can marked solved

    /solved
    @Moto
    @master131
    @Alex
    press thanks if i helped you.

    steam: pyro1012 (in game name is Undutchable)

    todo list:
    100 posts :
    250 posts :
    500 posts :
    750 posts :
    1000 posts :
    get 100 thanks :
    create a modd :
    create a camo :
    create a program :

  11. #11
    Skyline.'s Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    10,160
    Reputation
    403
    Thanks
    1,613
    /solved upon request.