Project Zomboid

Project Zomboid

[B41/42] Doors Have A Chance
59 Comments
Retox 7 Jun @ 8:29am 
how to make the door not break at all but open?
:cherrypie::spiffo:
freck 13 May @ 2:20am 
Hi @UnCheat. I'm really looking forward to working this mod into my playthroughs.

Like Daimyo mentioned in a comment previously, I'm hoping to adjust the settings so sometimes doors just break.

I tried zeroing both guaranteedUnlockedDoorHP and guaranteedLockedDoorHP but this did not produce the desired in fact. To the contrary, this made it so certain doors were invulnerable.

I would really love to trouble shoot this as I feel this could be a very immersive mod if tinkered correctly.

Thanks
UnCheat  [author] 6 Apr @ 12:52pm 
add / remove any time
Lost-One 6 Apr @ 9:51am 
can i add this mod in a save game or do i need to start fresh?
UnCheat  [author] 6 Apr @ 7:38am 
@Wesch Well it depends on settings by default:
Unlocked doors below 25% hp open on damage
Locked doors below 25% hp have 20% chance to open ondamage

So there is a 80% chance that door could resist couple of hits(depends on doors HP) is if you lock it.
Wesch 6 Apr @ 6:57am 
@UnCheat, im talking about how doors that have already been broken open which were unlocked still have a lock that can be used, but the lock doesn't add any extra delay for the door being broken open as if it was still unlocked
UnCheat  [author] 6 Apr @ 6:41am 
@Wesch Is there any point in adding a new lock to a door that is broken and bends from the slightest touch? :P
UnCheat  [author] 6 Apr @ 6:39am 
It's very simple doors HP based. There are no change of any door HP so you can combine it with any other mods to change doors HP behavior like "Can Repair Doors"
Wesch 6 Apr @ 6:26am 
Is the door being broken open even with a lock intended? shouldn't the lock add another defense even if the door has been broken open before
Mikołaj 30 Jan @ 5:11pm 
@hades-84
la creatura
UNA IDEA QUE E TENIDO QUE QUIZA ALGUIEN CRE UN MOD SOBRE ESTO CON SU EXPERENCIA AQUI DEJO LA IDEA EL DIBUJO DE EL MODELO Y EL LINK CON UNA DESCRIPCION EN LA PAGINA YA QUE ESTEAM NO ME DEJA PONER TANTO TEXTO Y PARA QUE SE ENTIENDA HAY QUE VER QUE ESCRITO LINK AQUI https://ibb.co/jHgHvZH

SI BAJAS CON LA RUEDA DE EL RATON PODRAS VER LAS DESCRIPCION EN LA PAGINA QUE PUSE
POR QUE EN EL JUEGO LA LAMINA DE METAL QUE SE PONE EN LA VENTANA QUEDA MEJOR CON LA IDEA QUE E TENIDO NO SOLO QUEDA MEJOR SI NO QUE SE PODRA VER TRAS DE ELLA Y TAMBIEN CERRAR LA MINI PUERTA DE EL VISOR ADEMAS DE SER BLINDADA CONTRA HORDAS DE ZOMBIES Y LOS MODS DE SAQUEADORES QUE HAY EN ESTEMA NPCS CON TANTA INTELIGENCIA NO SOY CREADOR DE MODS SOLO TENGO EXPERENCIA EN VIDA REAL EN CIERTAS COSAS Y COMO PROJECT ZOMBOID ES UN JUEGO DE SIMULACION DE SUPERVIVENCIA ESO QUE YO SE ES VALIDO PARA SOBREVIVIR EN EL JUEGO A SI QUE SI HAY ALGUIEN CON EXPERIENCIA QUE SEPA CREAR UN MODELO DE ESTA VENTANA CON LAS PRESTACIONES QUE DIJE SERIA GENIAL COMO UN MOD LO COMPARTIRE CON VARIOS DESARROLLADORES QUE ESTAN EN RELACION CON EL SISTEMA DE VENTANAS Y BARRICADAS Y DEMAS PERSONAS QUE QUIZA LE INTERESE ESPERO QUE OS GUSTE Y SI NO ES RESPETABLE
UnCheat  [author] 29 Dec, 2024 @ 3:19am 
Yea the best way is to resub to guarantee get an update
austiinos 29 Dec, 2024 @ 3:11am 
Ignore my comment. You did fix it sorry. I restarted steam is another way for steam to auto check updated mods for zomboid. Thats what I did. Thanks.
austiinos 29 Dec, 2024 @ 2:41am 
I tested for errors. Like others reporting on window hit. I right click break window for an error with a melee weapon. I also get errors by meleeing any window with a gun out or a melee weapon out. Shooting the window and also unarmed pushing the window also causes the error to pop up. Lastly breaking it unarmed also triggers it.

Love the mod! It's very fun when zombies can break in doors sooner than I think!
UnCheat  [author] 28 Dec, 2024 @ 8:53pm 
Pushed mod version but resub if you did not get an update
UnCheat  [author] 28 Dec, 2024 @ 8:51pm 
Fixed )
UnCheat  [author] 28 Dec, 2024 @ 8:46pm 
thx for a report
Jaxx - pshoooo 28 Dec, 2024 @ 4:08pm 
can confirm also getting an error throw on breaking basically any window, thrown from this mod
Nerezza 28 Dec, 2024 @ 1:25pm 
I killed a zombie bonking an un-openable window and either broke the window with my weapon at the same time, or killed the zombie just as the window broke, and got the following stack trace from a null value error at the exact same moment.

The window was one of the interior windows at the library in Riverside's school.

STACK TRACE
-----------------------------------------
function: shouldTheDoorOpen -- file: doorsHaveAChance.lua line # 23 | MOD: Doors Have A Chance
function: handleOnZombieThumpsADoor -- file: doorsHaveAChance.lua line # 63 | MOD: Doors Have A Chance
function: onWeaponHitThumpable -- file: doorsHaveAChance.lua line # 114 | MOD: Doors Have A Chance.
Vorshim 28 Dec, 2024 @ 9:26am 
Thanksss!!!! <3
UnCheat  [author] 28 Dec, 2024 @ 9:21am 
@Daimyo Update: Allowed zero for all minimums in sandbox settings
UnCheat  [author] 28 Dec, 2024 @ 8:11am 
Removed debug message on b41
UnCheat  [author] 28 Dec, 2024 @ 8:07am 
Sure
Vorshim 28 Dec, 2024 @ 8:02am 
helloooo! Thanks for the update. can you remove print from doorsHaveAChance.lua?
line 95
debuglog server is full of "player" XD thanks!
UnCheat  [author] 28 Dec, 2024 @ 7:22am 
The most expected feature update: players damage now has a chance to open doors too!
Rocky Jet 22 Dec, 2024 @ 3:32pm 
Thank you!
okayeg 22 Dec, 2024 @ 1:10am 
Thanks for updating :steamthumbsup:
UnCheat  [author] 21 Dec, 2024 @ 5:08pm 
Done
=FAKE= 18 Dec, 2024 @ 2:43pm 
Update to b42?
Daimyo 12 Nov, 2024 @ 10:33pm 
Can you make it so that the guaranteedUnlockedDoorHP and guaranteedLockedDoorHP accept a value of 0 to disable the guarantee? It would be nice if some doors open and some just break.
LRuego 23 Sep, 2024 @ 9:24am 
just tested it again and it works, idk what i was on maybe i missed a sandbox setting. thanks for the mod!
UnCheat  [author] 23 Sep, 2024 @ 3:18am 
Why not? It uses the same event to detect door damage by zombies but it is compatible
LRuego 22 Sep, 2024 @ 8:59pm 
i don't think it works with https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2913137598 , any chance we can have a compatibility patch?
SharleBu 20 Sep, 2024 @ 6:49pm 
I like the idea, but unfortunately how the mod is made doesn't make the doors “have a chance”, it makes them always open sooner or later. I would like it better if everything was with probability of opening without ever reaching 100% chance, independent of the HP of the door.
UnCheat  [author] 8 Aug, 2024 @ 8:48am 
ty
Mesrszmit 8 Aug, 2024 @ 8:24am 
I love mods like this, MAKES SENSE!
pwnd 21 Jun, 2024 @ 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, 2024 @ 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, 2024 @ 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, 2024 @ 5:35pm 
Woah... that's a lot
UnCheat  [author] 3 Jan, 2024 @ 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, 2024 @ 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, 2024 @ 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!
UnCheat  [author] 3 Oct, 2023 @ 12:14am 
Try edit servers sandbox settings file and restart your server
Tehtrc 30 Sep, 2023 @ 2:54pm 
I cant customise my server mods any help they aint popping up so im stuck with horrible mod settings
UnCheat  [author] 29 Sep, 2023 @ 3:26am 
And you can deactivate chance to open by unchecking according settings and leave only low HP bash open settings so doors will open only at really low hp