ZombieReloaded: Double MaxHealth for MotherZM.

They spawn with more HP, but don't regen it? Defaq?
This commit is contained in:
zaCade 2018-06-28 15:39:17 +02:00
parent b1fda64d22
commit b883273e77

View File

@ -62,7 +62,7 @@ bool:ClassApplyAttributes(client, bool:improved = false)
ClassApplyNightVision(client, classindex); ClassApplyNightVision(client, classindex);
ClassApplyFOV(client, classindex); ClassApplyFOV(client, classindex);
ClassApplyHealth(client, classindex, improved); ClassApplyHealth(client, classindex, improved);
ClassApplyHealthRegen(client, classindex); ClassApplyHealthRegen(client, classindex, improved);
ClassApplySpeed(client, classindex); ClassApplySpeed(client, classindex);
return true; return true;
@ -371,7 +371,7 @@ bool:ClassApplyHealth(client, classindex, bool:boost = false, cachetype = ZR_CLA
* ZR_CLASS_CACHE_PLAYER (default) - Player cache. * ZR_CLASS_CACHE_PLAYER (default) - Player cache.
* @return True if applied, false otherwise. * @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 Float:interval;
new amount; new amount;
@ -391,6 +391,11 @@ bool:ClassApplyHealthRegen(client, classindex, cachetype = ZR_CLASS_CACHE_PLAYER
max = ClassGetHealth(classindex, cachetype); max = ClassGetHealth(classindex, cachetype);
} }
if (boost)
{
max *= 2;
}
if (interval > 0) if (interval > 0)
{ {
ClassHealthRegenInitClient(client, interval, amount, max); ClassHealthRegenInitClient(client, interval, amount, max);