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.
< >
Showing 1-1 of 1 comments
yes  [developer] 21 Oct, 2023 @ 7:45pm 
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.
< >
Showing 1-1 of 1 comments
Per page: 1530 50