Raised This Month: $12 Target: $400
 3% 

Hud Health Bar


Post New Thread Reply   
 
Thread Tools Display Modes
eforie
BANNED
Join Date: Dec 2008
Location: Romania
Old 06-13-2009 , 12:51   Re: Hud Health Bar
Reply With Quote #11

"Currently plugin supports only 100 and less healths."
could you make it support moore 100 hp?
i need for zombie biohazard mod
i need suport maximum 500 hp
thank you and good job
eforie is offline
Send a message via Yahoo to eforie Send a message via Skype™ to eforie
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 06-13-2009 , 13:29   Re: Hud Health Bar
Reply With Quote #12

Quote:
Originally Posted by ConnorMcLeod View Post
Well done
You could replace Ham_Spawn with ResetHUD and use it as Health event except you retrieve use health, then you don't need ham.
Thank you, sir. I'll look removing Ham aye.
Quote:
Originally Posted by sila View Post
Your plugin is like green line, can u make to be like red line at this screenshot .

http://i39.tinypic.com/2hcjihv.jpg
I better not making a cvar for the hud origins, but you can change them at: set_hudmessage( 255 - health * 2, health * 2, 0, 0.1, 0.9...)
Quote:
Originally Posted by eforie View Post
could you make it support moore 100 hp?
Ye, I'll see adding support for larger healths.

Edit:
Quote:
Originally Posted by sila View Post
Also if i use amx_tsay or amx_csay hud health bar disappears until i lose some hp or new round start.
Ye, it uses the same hud channel which is a sad issue, but I believe you have to live with it. You can obviously change the channel, but it's a fact that probably your other plugin uses the channel to what you changed. Also, I mean, who even uses amx_tsay? ;)

Last edited by SnoW; 06-13-2009 at 16:10.
SnoW is offline
Send a message via MSN to SnoW
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 06-13-2009 , 13:31   Re: Hud Health Bar
Reply With Quote #13

I like it SnoW man.
__________________
joaquimandrade is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 06-14-2009 , 05:37   Re: Hud Health Bar
Reply With Quote #14

Fit 1.0 - First release

Released fit which supports all size of healths. The original is more faster and there's no other things updated in the plugin, so if not needed don't use fit.

There were requested that normal health would be hided. I believe it's only possible by hiding armor and radar as well. That's why I'm not adding it to the main plugin, but if someone's interested I'm uploading it here.
Attached Files
File Type: sma Get Plugin or Get Source (Hide_thingys.sma - 747 views - 437 Bytes)
SnoW is offline
Send a message via MSN to SnoW
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 06-14-2009 , 06:06   Re: Hud Health Bar
Reply With Quote #15

Please, post (in the first topic) a screenshot of
1. Regular HealthBar
2. Fit HealthBar
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 06-14-2009 , 06:21   Re: Hud Health Bar
Reply With Quote #16

Quote:
Originally Posted by crazyeffect View Post
Please, post (in the first topic) a screenshot of
1. Regular HealthBar
2. Fit HealthBar
There's nothing different in their looks. Only difference is that fit kind of fits the bar to your maximum health, with what it supports any kind of healths. I think there's enough pictures already.
SnoW is offline
Send a message via MSN to SnoW
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-14-2009 , 07:16   Re: Hud Health Bar
Reply With Quote #17

Quote:
Originally Posted by SnoW View Post
Fit 1.0 - First release

Released fit which supports all size of healths. The original is more faster and there's no other things updated in the plugin, so if not needed don't use fit.

There were requested that normal health would be hided. I believe it's only possible by hiding armor and radar as well. That's why I'm not adding it to the main plugin, but if someone's interested I'm uploading it here.
See here how to properly hide hud things : http://forums.alliedmods.net/showthr...236#post846236
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 06-14-2009 , 08:46   Re: Hud Health Bar
Reply With Quote #18

Quote:
Originally Posted by ConnorMcLeod View Post
See here how to properly hide hud things : http://forums.alliedmods.net/showthr...236#post846236
Mine wasn't a properly one? ;) It didn't use any modules at least. Anyway I guess yours is just more efficient since it isn't sending a new message, but people can use which one they want.
SnoW is offline
Send a message via MSN to SnoW
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-14-2009 , 09:14   Re: Hud Health Bar
Reply With Quote #19

Quote:
Originally Posted by SnoW View Post
Mine wasn't a properly one? ;) It didn't use any modules at least. Anyway I guess yours is just more efficient since it isn't sending a new message, but people can use which one they want.
Since you don't update players offset, the game is not informed about the hud state, it also could mess up other plugin that use HideWeapon.
I've just updated my weapon crosshair plugin http://forums.alliedmods.net/showthread.php?t=61334
That message should in fact never be sent in a plugin.


About your "more than 100HP" version, healing will not be detected, i suggest you to do that :
PHP Code:
public eHealthid )
{
    new 
iHealth read_data)
    new 
iMaxHealth gMaxHealthid ]
    if( 
iMaxHealth iHealth )
    {
        
gMaxHealthid ] = iMaxHealth iHealth
    
}
    
// no need to use floatround here
    
show_baridiHealth 100 iMaxHealth );

And reset when player spawn.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 06-14-2009 at 09:22.
ConnorMcLeod is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 06-14-2009 , 14:52   Re: Hud Health Bar
Reply With Quote #20

Quote:
Originally Posted by ConnorMcLeod View Post
Since you don't update players offset, the game is not informed about the hud state, it also could mess up other plugin that use HideWeapon.
I've just updated my weapon crosshair plugin http://forums.alliedmods.net/showthread.php?t=61334
That message should in fact never be sent in a plugin.
Well, I'll leave that thing for you, I wasn't making it in the first place anyway.
Quote:
Originally Posted by ConnorMcLeod View Post
About your "more than 100HP" version, healing will not be detected
Fit ;) Aye, healing detect I'll surely add. Thanks.
I'll update the plugin when I got to my comp.
SnoW is offline
Send a message via MSN to SnoW
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode