diff --git a/releases/3.2.0/Balance.txt b/releases/3.2.0/Balance.txt index 362ea29..548e822 100644 --- a/releases/3.2.0/Balance.txt +++ b/releases/3.2.0/Balance.txt @@ -84,6 +84,7 @@ #define kDefenseChamberThinkInterval 2 #define kDefensiveChamberHealRange 400 #define kDefensiveChamberRegenAmount 10 +#define kDefensiveChamberRegenPercent 4 #define kDevourDamage 3 #define kDevourRange 100 #define kDistressBeaconCost 15 diff --git a/releases/3.2.0/source/mod/AvHAlienEquipment.cpp b/releases/3.2.0/source/mod/AvHAlienEquipment.cpp index 2662983..2eddb0d 100644 --- a/releases/3.2.0/source/mod/AvHAlienEquipment.cpp +++ b/releases/3.2.0/source/mod/AvHAlienEquipment.cpp @@ -389,16 +389,18 @@ void AvHDefenseChamber::RegenAliensThink() { AvHBaseBuildable* theBuildable = dynamic_cast(theBaseEntity); AvHPlayer* thePlayer = dynamic_cast(theBaseEntity); + float thePercent=BALANCE_VAR(kDefensiveChamberRegenPercent)/100.0f; + float amount=BALANCE_VAR(kDefensiveChamberRegenAmount) + (theBaseEntity->pev->max_health*thePercent); if(thePlayer && thePlayer->IsAlive()) { - if(thePlayer->Heal(BALANCE_VAR(kDefensiveChamberRegenAmount))) + if(thePlayer->Heal(amount)) { theNumEntsHealed++; } } else if(theBuildable && theBuildable->GetIsBuilt() && (theBuildable != this)) { - if(theBuildable->Regenerate(BALANCE_VAR(kDefensiveChamberRegenAmount))) + if(theBuildable->Regenerate(amount)) { theNumEntsHealed++; }