AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   maxhp (https://forums.alliedmods.net/showthread.php?t=130495)

zombieplague 06-24-2010 11:38

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

as in what is the maxhealth code ??

= Cyber = 06-24-2010 23:50

Re: maxhp
 
edit the zombie plugin sma...

zombieplague 06-25-2010 14:15

Re: maxhp
 
Quote:

Originally Posted by = Cyber = (Post 1219023)
edit the zombie plugin sma...

No, what I meant was what is the code for detecting the players maxhealth.

5c0r-|3i0 06-25-2010 19:22

Re: maxhp
 
@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].....


All times are GMT -4. The time now is 09:34.

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