EPP Bypass Fix

If you liked this item, please rate it up on Steam Workshop page.

Author: Anter583

Last revision: 12 Apr, 2022 at 11:46 UTC

File size: 328.7 KB

On Steam Workshop

Description:

Fixes enviromental hazards ignoring EPPs when loading in causing a S.A.I.L warning to pop up at best or loosing 90% of your health at worst.

The likely reason why this bug happens is that when initialising, the status engine doesn’t seem to immediately start removing blocked status effects, giving them enough time to initialise and trigger their first damage tick.

While it is impossible to fix the root of the bug, as it is hardcoded somewhere inside the engine, this mod adds a workaround by forcing all 4 status effects related to the 4 enviromental hazards (Airless, Radiation, Cold and Heat) to wait 2 game ticks before initialising, giving the status engine just enough time to remove them before they can do anything.
From my tests, 2 game ticks seems to be the shortest delay that doesn’t let either the damage call nor the massage call to go through.

If you’re worried that this delay will somehow make the effects sluggish, don’t, 1 second contains 60 game ticks, as long as another mod doesn’t touch the affected statuses’ script delta, the delay is effectively 1/30th of a second.

Not tested with FU, FU already has a partial fix for radiation built-in (which, ironically, introduces a different bug related to admin mode), might still fix the airless S.A.I.L warning.