Raised This Month: $209 Target: $400
 52% 

maxhp


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zombieplague
Veteran Member
Join Date: Apr 2009
Old 06-24-2010 , 12:38   maxhp
Reply With Quote #1

how do i increase a zombie maxhp without editing the zombieclasses.in

as in what is the maxhealth code ??
zombieplague is offline
= Cyber =
Member
Join Date: Nov 2009
Location: Bekasi, West Java
Old 06-25-2010 , 00:50   Re: maxhp
Reply With Quote #2

edit the zombie plugin sma...
= Cyber = is offline
zombieplague
Veteran Member
Join Date: Apr 2009
Old 06-25-2010 , 15:15   Re: maxhp
Reply With Quote #3

Quote:
Originally Posted by = Cyber = View Post
edit the zombie plugin sma...
No, what I meant was what is the code for detecting the players maxhealth.
zombieplague is offline
5c0r-|3i0
Veteran Member
Join Date: Nov 2008
Location: Việt Nam
Old 06-25-2010 , 20:22   Re: maxhp
Reply With Quote #4

@zombieplague: Here is what I found in zombieplague.sma
PHP Code:
// Native: zp_get_zombie_maxhealth
public native_get_zombie_maxhealth(id)
{
    if (
g_zombie[id] && !g_nemesis[id])
    {
        if (
g_firstzombie[id])
            return 
floatround(g_zclass_hp[g_zombieclass[id]]*get_pcvar_float(cvar_zombiefirsthp));
        else
            return 
g_zclass_hp[g_zombieclass[id]];
    }
    return -
1;

And here is what I found in zombieplague.inc :
PHP Code:
/**
 * Returns the default maximum health of a zombie.
 *
 * Note: Takes into account first zombie's HP multiplier.
 *
 * @param id        Player index.
 * @return        Maximum amount of health points, or -1 if not a normal zombie.
 */
native zp_get_zombie_maxhealth(id
.....[I really hate this guy].....
5c0r-|3i0 is offline
Reply


Thread Tools
Display Modes

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 17:43.


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