Raised This Month: $ Target: $400
 0% 

Loosing healthpack on healerblock.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
D-TOX
Member
Join Date: Mar 2008
Old 11-22-2009 , 11:46   Re: Loosing healthpack on healerblock.
Reply With Quote #4

Quote:
Originally Posted by Backstabnoob View Post
How is that done?
Does it give you instantly 100 HP, or is it healing you for example for 5hp/sec?

1 HP per second, and there is a cvar for how much HP you should get per second.

Quote:
Originally Posted by ConnorMcLeod View Post
What kind of healer ?
Map healer ?
Plugin healer ?

I guess you have to fix your necro plugin.

And I don't know what you mean by fixing the blockmaker, I haven't touched the healer code, nor made anything that should harm the healing block.
You can read on the Blockmaker 4.01 thread how it works if you don't know what the healing block does.

PHP Code:
actionHeal(id)
{
    if (
halflife_time() >= gfNextHealTime[id])
    {
        new 
hp get_user_health(id);
        new 
amount floatround(get_cvar_float("bm_healamount"), floatround_floor);
        new 
sum = (hp amount);
        
        if (
sum 100)
        {
            
set_user_health(idsum);
        }
        else
        {
            
set_user_health(id100);
        }
        
        
gfNextHealTime[id] = halflife_time() + 0.5;
    }

__________________
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░█▀▀ ░█▀█ ░█ ░█▀▀ ░░█▀▀ ░█▀█ ░█ ░█░░░
░█▀▀ ░█▀▀ ░█ ░█ ░░░░█▀▀ ░█▀█ ░█ ░█░░░
░▀▀▀ ░▀ ░░░▀ ░▀▀▀ ░░▀ ░░░▀░▀ ░▀ ░▀▀▀░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

Last edited by D-TOX; 11-22-2009 at 11:52.
D-TOX is offline
 



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 13:42.


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