Project Zomboid

Project Zomboid

[B41/42] Doors Have A Chance
60 kommentarer
infernal 12. aug. kl. 9:37 
please make it so that garage doors dont open from damage
Retox 7. juni kl. 8:29 
how to make the door not break at all but open?
:cherrypie::spiffo:
freck 13. maj kl. 2:20 
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  [ophavsmand] 6. apr. kl. 12:52 
add / remove any time
Lost-One 6. apr. kl. 9:51 
can i add this mod in a save game or do i need to start fresh?
UnCheat  [ophavsmand] 6. apr. kl. 7:38 
@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. kl. 6:57 
@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  [ophavsmand] 6. apr. kl. 6:41 
@Wesch Is there any point in adding a new lock to a door that is broken and bends from the slightest touch? :P
UnCheat  [ophavsmand] 6. apr. kl. 6:39 
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. kl. 6:26 
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. kl. 17:11 
@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  [ophavsmand] 29. dec. 2024 kl. 3:19 
Yea the best way is to resub to guarantee get an update
austiinos 29. dec. 2024 kl. 3:11 
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 kl. 2:41 
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  [ophavsmand] 28. dec. 2024 kl. 20:53 
Pushed mod version but resub if you did not get an update
UnCheat  [ophavsmand] 28. dec. 2024 kl. 20:51 
Fixed )
UnCheat  [ophavsmand] 28. dec. 2024 kl. 20:46 
thx for a report
Jaxx - pshoooo 28. dec. 2024 kl. 16:08 
can confirm also getting an error throw on breaking basically any window, thrown from this mod
Nerezza 28. dec. 2024 kl. 13:25 
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 kl. 9:26 
Thanksss!!!! <3
UnCheat  [ophavsmand] 28. dec. 2024 kl. 9:21 
@Daimyo Update: Allowed zero for all minimums in sandbox settings
UnCheat  [ophavsmand] 28. dec. 2024 kl. 8:11 
Removed debug message on b41
UnCheat  [ophavsmand] 28. dec. 2024 kl. 8:07 
Sure
Vorshim 28. dec. 2024 kl. 8:02 
helloooo! Thanks for the update. can you remove print from doorsHaveAChance.lua?
line 95
debuglog server is full of "player" XD thanks!
UnCheat  [ophavsmand] 28. dec. 2024 kl. 7:22 
The most expected feature update: players damage now has a chance to open doors too!
R o c k y J e t 22. dec. 2024 kl. 15:32 
Thank you!
okayeg 22. dec. 2024 kl. 1:10 
Thanks for updating :steamthumbsup:
UnCheat  [ophavsmand] 21. dec. 2024 kl. 17:08 
Done
=FAKE= 18. dec. 2024 kl. 14:43 
Update to b42?
Daimyo 12. nov. 2024 kl. 22:33 
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 kl. 9:24 
just tested it again and it works, idk what i was on maybe i missed a sandbox setting. thanks for the mod!
UnCheat  [ophavsmand] 23. sep. 2024 kl. 3:18 
Why not? It uses the same event to detect door damage by zombies but it is compatible
LRuego 22. sep. 2024 kl. 20:59 
i don't think it works with https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2913137598 , any chance we can have a compatibility patch?
SharleBu 20. sep. 2024 kl. 18:49 
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  [ophavsmand] 8. aug. 2024 kl. 8:48 
ty
Mesrszmit 8. aug. 2024 kl. 8:24 
I love mods like this, MAKES SENSE!
pwnd 21. juni 2024 kl. 2:19 
@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. maj 2024 kl. 20:52 
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 kl. 17:37 
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 kl. 17:35 
Woah... that's a lot
UnCheat  [ophavsmand] 3. jan. 2024 kl. 3:14 
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 kl. 18:55 
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 kl. 18:53 
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  [ophavsmand] 5. dec. 2023 kl. 12:56 
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 kl. 2:26 
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. okt. 2023 kl. 0:30 
Cool mod, thank you!
UnCheat  [ophavsmand] 3. okt. 2023 kl. 0:14 
Try edit servers sandbox settings file and restart your server
Tehtrc 30. sep. 2023 kl. 14:54 
I cant customise my server mods any help they aint popping up so im stuck with horrible mod settings