Project Zomboid

Project Zomboid

Weakening Zombies (Real time)
 This topic has been pinned, so it's probably important
Ichinin  [developer] 27 May, 2024 @ 5:41am
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.
Last edited by Ichinin; 3 Jun, 2024 @ 6:56am