Raised This Month: $ Target: $400
 0% 

Max Health HELP


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 01-21-2013 , 05:30   Re: Max Health HELP
Reply With Quote #3

Only for zombies and does not count HP multipliar. Thats why i dont even consider using this.
If i use pev_max_health , the code will look like this right? Correct it please , if smth is wrong :
PHP Code:
stock get_user_maxhealthidUser )
{
    new 
FloatmaxHealth

     pev
(idUserpev_max_healthmaxHealth)

    static 
iSkillLevel;
    
iSkillLevel SM_GetSkillLevelidUserSKILL_DEVOTION );

    
// Human Devotion Skill
    
if ( iSkillLevel )
    {
        
maxHealth += iSkillLevel p_devotion;
    }

    
// For talisman +
    // Player has a health bonus from the Periapt of Health
    
if ( ITEM_HasidUserITEM_HEALTH ) > ITEM_NONE || fWorkTalismanPassive(idUserarrTalismanActive[idUser]) == TALISMAN_ITEM_HEALTH )
        
maxHealth += get_pcvar_numCVAR_wc3_health )

    new 
newHealth floatround(maxHealth)
    
    return 
newHealth


Last edited by Podarok; 01-21-2013 at 06:01.
Podarok 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:47.


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