Project Zomboid

Project Zomboid

Yes' Improved Stealth v2 [B42/B41]
Possibility to replace thresholds with curve based solutions?
I played a bit with it and looked at the code and I wondered about the following:

Would it be possible to replace code like

lightLVL < 0.5

fog > 0

with solutions that can handle smaller increments.

Basically something that looks like a https://en.wikipedia.org/wiki/Sigmoid_function

Where x could be the value (lightLVL or fog) and Y would be the amount of the bonus that is applied at a certain value (so max bonus, as defined in the sandbox options, is applied at lowest light level).

That would allow defining higher bonuses that are applied slowly as the values change to e.g. make zombies almost completely blind at night, while retaining their sight during daytime.
< >
Viser 1-1 af 1 kommentarer
yes  [udvikler] 21. okt. 2023 kl. 19:45 
Yeah it looks like it should be that way. Right now it's 3am but I'll try to do this when I have the time.
< >
Viser 1-1 af 1 kommentarer
Per side: 1530 50