Civil Defense Sirens [B42 SP/MP]
Фото и видео: 1 из 5. Материалы автора из Steam Workshop.
О материале
«Civil Defense Sirens [B42 SP/MP]» — материал мастерской Project Zomboid. Карты, транспорт, оружие и моды для выживания. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
Civil Defense Sirens
Add some much-needed atmosphere (and panic) to the apocalypse with fully animated, 3D warning sirens. These pole-mounted sirens don't just look good... they feature a three-part wail that echoes across the map. Set them to trigger automatically when severe weather rolls in, or manually activate the alarm yourself. Whether you're surviving solo or hosting a multiplayer server, these sirens are completely synced and highly customizable.
A Note From Jim
This took a ton of effort and learning. It uses some newer features in the PZ API so if you come across a bug or an error, please report it along with the version of PZ you are running and if it is SP or MP.
Default siren list I kept forgetting to add to the description:
{ 2054, 6248 }, { 799, 9789 }, { 524, 9414 }, { 12944, 3215 }, { 13009, 1673 }, { 12316, 2400 }, { 12480, 1852 }, { 13084, 1672 }, { 11286, 6758 }, { 12294, 3236 }, { 15424, 3296 }, { 10612, 10016 }, { 10985, 9656 }, { 10634, 10593 }, { 10011, 12673 },{ 8373, 11598 }, { 2259, 14308 }, { 2492, 13911 }, { 1922, 10795 }, { 2268, 5822 }
Cheers!
Features
-
Animated 3D Model: Watch the siren spin as it sounds the alarm!
-
Realistic Audio: Authentic sound effects featuring a windup, a looping wail and a winddown phase.
-
Automatic Map Placement: Spawns naturally across the map the moment you load into the world. It uses built-in locations by default, but you can easily drop in your own custom coordinate list!
-
Completely Indestructible: These can't be dismantled, picked up or smashed with a sledgehammer.
-
Grid & Battery Powered: You can configure the sirens to only work while the power grid is alive, complete with a customizable battery-backup window for when the power inevitably shuts off.
-
Dynamic Weather Triggers: Set a custom probability for the sirens to automatically blare when a severe thunderstorm hits.
-
Zombies Love Them: A running siren will draw the undead from miles away. (The exact radius is totally up to you!)
-
Multiplayer Ready: Built from the ground up for servers.
How It Works
Just right-click the base of the sirens pole to pull up the Civil Defense Sirens menu:
-
Activate / Stop: Manually start or silence a specific siren.
-
Activate All / Stop All: (Admin only) Sound the sirens globally!
-
Add Siren / Remove Siren: (Admin only) Custom-placed sirens will stick around even after server restarts.
Nerd Stuff
-
Uses PZ's Global Objects System instead of hand-holding objects through modData. It allows us to place persistent objects outside of loaded chunks.
-
Uses PZ's "spriteModel" System, the same one that drives animated doors and curtains.
Added a player Mod Option to control the local siren volume from 0-100%
Playing Single-player? To mess with the sirens, you'll need a specific electrical skill level (default is 6, but you can change this in the sandbox settings). Admin commands like Add/Remove/All are unlocked if you boot up in debug mode.
Multiplayer Permissions
Want to control who gets to press the big red button? Access is fully handled through sandbox options and completely supports custom roles - just type in the role name.
| Setting | What it does |
|---|---|
| Who can control sirens | Choose between specific Listed Roles, Everyone, or Players with a high enough electrical skill. |
| Control roles | Which roles are allowed to start or stop a local siren (Default: admin). |
| Admin roles | Which roles can add/remove sirens and trigger the global start/stop commands (Default: admin). |
Sandbox Options
Tailor the mod exactly to your server's needs:
-
Placement: Toggle auto-placement of the built-in sirens, and add any coordinates of your own. The two stack: with auto-placement on, your extra locations are placed alongside the built-in list; turn it off to place only your own.
-
Permissions: Set who can control sirens, define control/admin roles, and tweak the required Electrical skill level.
-
Power Settings: Toggle power requirements and adjust the battery backup lifespan (in months).
-
Events: Adjust the severe weather trigger chance (%).
-
Zombie Attraction: Tweak the zombie attraction radius and how long the siren runs (in real seconds).
-
Siren Run Time: How long the siren runs in real seconds.
-
Sirens Audible Everywhere: Players will hear a siren no matter their distance away. When checked, Minimum Siren Volume determines the minimum volume.
-
Wake sleeping players: a siren sounding within earshot can jolt sleepers awake, within a radius you choose. The Deaf never hear it, the Hard of Hearing only at half range, and the more exhausted a sleeper is, the closer the siren has to be.
-
Scheduled siren tests: sound every siren on a routine: daily, weekly (on Wednesday), twice monthly (1st & 15th), or monthly (on the first Wednesday), at an hour you set. Optionally run the test without drawing zombies.
All sandbox-configurable and off by default, so existing saves and servers are untouched until you opt in.
For Server Owners & Modders
Want to trigger sirens using your own custom server events? Just drop a Lua script into your media/lua/server/ folder. Here's a quick example of making them go off every day at 6:00 AM:
if isClient() then return end
require "CivilDefenseSiren/SSirenSystem"
local function onEveryHours()
local sirens = SSirenSystem.instance
if not sirens then return end
-- Triggers the alarm at 6 AM
if getGameTime():getHour() == 6 then
sirens:startAll() -- You can also use: startAll(runSeconds, radius, volume)
end
end
Events.EveryHours.Add(onEveryHours)
Add-On Mods
Basic code to create an addon mod that places sirens at x,y coords.
-
Replace the coordinates with your own { x, y } coords
-
suppressDefaults = true hides the base mod built-in sirens so ONLY the ones specified are placed!
-
Remove that option or set it false to add yours TO the built-in list instead
require "CivilDefenseSiren/jb_SirenConfig"
CivilDefenseSiren.registerSirens({
{ 6543, 5210 },
{ 6710, 5388 },
{ 6822, 5104 },
}, { suppressDefaults = true }) -- or false to keep default sirens
Other handy functions include: startAt(x, y, 0), stopAll(), and stopAt(x, y, 0). Note: Scripted triggers respect your sandbox power settings and will only affect sirens that are already placed in the world.
Safe to add mid-save!
Yes, it is completely safe to add this to an existing, running server. All siren states are managed by the server and pushed to clients. This means whether someone logs in late or the server reboots, the alarms will stay perfectly in sync.
Reworked texture and model by Some_stranger.
Workshop ID: 3750612709 Mod ID: jbCivilDefenseSirens
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.