Project Zomboid

Project Zomboid

Weakening Zombies (Real time)
 此主题已被置顶,因此可能具有重要性
Ichinin  [开发者] 2024 年 5 月 27 日 上午 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.
最后由 Ichinin 编辑于; 2024 年 6 月 3 日 上午 6:56