idk man
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user