ZombieReloaded: Double MaxHealth for MotherZM.
They spawn with more HP, but don't regen it? Defaq?
This commit is contained in:
parent
b1fda64d22
commit
b883273e77
|
@ -62,7 +62,7 @@ bool:ClassApplyAttributes(client, bool:improved = false)
|
|||
ClassApplyNightVision(client, classindex);
|
||||
ClassApplyFOV(client, classindex);
|
||||
ClassApplyHealth(client, classindex, improved);
|
||||
ClassApplyHealthRegen(client, classindex);
|
||||
ClassApplyHealthRegen(client, classindex, improved);
|
||||
ClassApplySpeed(client, classindex);
|
||||
|
||||
return true;
|
||||
|
@ -371,7 +371,7 @@ bool:ClassApplyHealth(client, classindex, bool:boost = false, cachetype = ZR_CLA
|
|||
* ZR_CLASS_CACHE_PLAYER (default) - Player cache.
|
||||
* @return True if applied, false otherwise.
|
||||
*/
|
||||
bool:ClassApplyHealthRegen(client, classindex, cachetype = ZR_CLASS_CACHE_PLAYER)
|
||||
bool:ClassApplyHealthRegen(client, classindex, bool:boost = false, cachetype = ZR_CLASS_CACHE_PLAYER)
|
||||
{
|
||||
new Float:interval;
|
||||
new amount;
|
||||
|
@ -391,6 +391,11 @@ bool:ClassApplyHealthRegen(client, classindex, cachetype = ZR_CLASS_CACHE_PLAYER
|
|||
max = ClassGetHealth(classindex, cachetype);
|
||||
}
|
||||
|
||||
if (boost)
|
||||
{
|
||||
max *= 2;
|
||||
}
|
||||
|
||||
if (interval > 0)
|
||||
{
|
||||
ClassHealthRegenInitClient(client, interval, amount, max);
|
||||
|
|
Loading…
Reference in New Issue
Block a user