This commit is contained in:
2025-06-09 22:13:12 +02:00
parent 326b99c464
commit 0aee847089
11 changed files with 583 additions and 389 deletions
+5 -1
View File
@@ -70,7 +70,11 @@ public class GrowingZombies : Plugin
// Add damage resistance after eating multiple corpses
if (corpsesEaten >= 3)
ev.Player.ReferenceHub.playerEffectsController.ChangeState<DamageReduction>((byte)(corpsesEaten*2), float.MaxValue);
{
var damageReductionIntensity = (byte)Math.Min(corpsesEaten * 2, 100); // Half-Percent
ev.Player.ReferenceHub.playerEffectsController.ChangeState<DamageReduction>(damageReductionIntensity,
float.MaxValue);
}
// Add regeneration effect after eating multiple corpses
if (corpsesEaten < 5) return;