Blackouts

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

Authors: Burryaga, Joy Tomaro

Last revision: 16 May, 2024 at 03:28 UTC

File size: 459.03 KB

On Steam Workshop

Description:
How it Works

– Adds a small chance for power outages to occur randomly at any time of day, and for the power to come back on after a while. Customizable in sandbox settings.
– Adds a 1 point cost trait that spawns you with a hand torch.
– The permanent shutoff date still happens, based on the random shutoff date from vanilla, but it can be overridden with my mod in sandbox settings.
Now compatible with multiplayer!

Recommended with The Long Night and other horror mods!

Events

You can trigger Blackout events using Lua mods or the debug console. The following commands are used to trigger events; hopefully their names are self-explanatory:

triggerEvent("BlackoutsForceShutoff") triggerEvent("BlackoutsForceRestore") triggerEvent("BlackoutsRequestServerData")

Thanks to the Project Zomboid Discord for helping with the code!

Latest Upgrades

Recently added features:
Added multiplayer compatibility! Thanks to the help of Burryaga!
– Added weather effect option in sandbox (on by default)!
– Added manual blackout trigger for playtests, modders, and server admins!
– Easy new way to check whether this mod has triggered a blackout:

print(powerDisabledByBlackouts)

Compatibility

Though we have gone to significant lengths to make this mod play nicely with countless other mods, we cannot guarantee with absolute certainty that our mod will never have a conflict of interest with other mods that rely on adjustments to the hydro power state of the map or ElecShutModifier, because these are the fundamental variables of most power grid management in Zomboid as far as we can tell. Our mod does seem to be playing nicely with Restore Utilities according to recent reports, but please reach out to us on Discord if you have any issues, and we will attempt to help as soon as possible.


Check Out My Other Mods!

Specialists Occupations and Traits
Bitten Trait Mod
Immunity Mod

Workshop ID: 3156268584
Mod ID: TomaroBlackouts01