Project Zomboid

Project Zomboid

Weakening Zombies (Real time)
 Denne tråd er blevet fastgjort, så den er sikkert vigtig
Ichinin  [udvikler] 27. maj 2024 kl. 5:41
How does it work.
---------- HOW IT WORKS: ----------

- If you remove the mod, Affected Zombies health will NOT be restored. New zombies that you encounter will have default health though.

- Every day, Zombies you encounter will tick down health a notch, a global health penalty is calculated daily and applied.

- Zombies are updated regularly. It is triggered by the OnTick callback, but it only runs every N frames/ticks (saves CPU performance), this is configurable via the Sandbox Variables..

- If you change the parameters (Days before... Days until...) from like 1 and 7 to 1 and 14 two things will happen:

1. It will take twice as long time (1 week to 2 weeks) for the zombie to reach it's max penalty time.

2. Zombies health everywhere will be recalculated and actually GAIN health back since the degradation slope is now less steep.

I have added an image to the mod to show how the calculation is done with 2 examples on how health changes over time.
Sidst redigeret af Ichinin; 3. juni 2024 kl. 6:56