Use a progress bar as health meter.
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 :
Use a progress bar as health meter.
Last edited by edub18; 06-23-2011 at 11:41 AM.
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 :
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; } }
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 01: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 :
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?
What's That?I Mostly Own Noobs With The AK-47 With Silencer
(Turns To Friend)
[img]https://www.danasof*****m/sig/asd248737.jpg[/img]HAHAHA Noob!!!!!!
Search for Health.
@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.
Source: Full Dvar Listscr_player_healthregentime "5"
Last edited by Jorndel; 06-24-2011 at 02:12 AM.
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 :
/solved upon request.