Project Zomboid

Project Zomboid

112 ratings
Doors Have A Chance
   
Award
Favorite
Favorited
Unfavorite
Mods: Build 41
File Size
Posted
15.820 KB
26 Sep, 2023 @ 9:09am
1 Change Note ( view )

Subscribe to download
Doors Have A Chance

Description
Doors have a chance of not breaking completely because damage from zombies can open doors at a certain HP of the door. (detailed sandbox options)

Does not change damage mechanics, means doors will break eventually if been repeatedly closed at low HP, blocked or barricaded.

Works for any door (should work for modded ones too) and triggers only by zombies

By default sandbox options set as:
1. Unlocked doors below 50% hp have 5% chance to open on zombies damage
2. Unlocked doors below 25% hp open on zombies damage
3. Locked doors below 25% hp have 20% chance to open on zombies damage
4. Locked doors below 15% hp open on zombies damage

Make sure that the sandbox HP settings are not set to low because as the game time speeds up, so does the zombie damage.

Pair it with Can Repair Doors or Show Wall Health and Repair Wall for better experience

My other mods:


Workshop ID: 3041602364
Mod ID: doorsHaveAChance
22 Comments
pwnd 21 Jun @ 2:19am 
@Jasdan there is a mod that lets you check the hp of any structure. cant remember what its called but should not be too hard to find. "check building status" or something like that
Coldsteel 9 May @ 8:52pm 
Can you add "high security" sandbox setting? I.e. locked doors cannot be opened by attacking them, they can only be destroyed entirely.
Jasdan 3 Jan @ 5:37pm 
Wait, but can we tell the door's current HP?
Could it be possible to make the door open if it's HP goes below a certain % the next time it's HP goes down?
Regardless of what caused the HP to drop.
Jasdan 3 Jan @ 5:35pm 
Woah... that's a lot
UnCheat  [author] 3 Jan @ 3:14am 
It should be, but the way the game works is that we can't tell if the player is attacking the door or not...
Same as zombies! But zombies have thumpstate and thumptarget in the zombie object, so we can check if any door was attacked and if so, which one. And you won’t believe it, but there is no attack event! That's why I detect an event by sound!! And check who did it, then check thumpstate, thumptarget, is there a door next to the zombie and that door is thumptarget ^_^
Jasdan 2 Jan @ 6:55pm 
As for options in the menu, when a player has a key to a locked door, they can just open it instantly, could you make it so we need to first Unlock the door?
Jasdan 2 Jan @ 6:53pm 
I think that just as the zeds have a chance to open the door as they attack it, so should the player, under a (configurable) amount of health, Pushing the door would have a chance to open it (configurable so that any attack may open them as well).
UnCheat  [author] 5 Dec, 2023 @ 12:56pm 
Do you mean menu option? When that's doable ) I'll look inti it when I'll be active in zomboid again
Data 18 Nov, 2023 @ 2:26am 
Looks very good!
Please add this
players can open %15 hp locked Door.
And
When a locked Door opened from zombie this Door cant be locked anymore.
Ortus 3 Oct, 2023 @ 12:30am 
Cool mod, thank you!