Jump to content

Solution to the long postponed door bug.


HetCigarr

Recommended Posts

Over the years this bug has reported several times, but seems to have gotten marked with a branding iron "Fix at a later time". I'm talking about zombies always unlocking player-built doors.
I'm quite certain I have pinpointed what is causing this and how to fix it. With years of experience with the gamecode + a quick peak at the information I posted on the subreddit; I imagine fixing it will be completely effortless
https://www.reddit.com/r/projectzomboid/comments/q7ahrc/moddersdevs_stop_zombies_from_lockpicking_doors/

Let me know what you think! :)

Link to comment
Share on other sites

You can try modding it in a twisted way, waiting for them to correct it:

Once you lock it in Lua, call:

setIsDoor(false)

 

As a consequence, you may need to do before you try to unlock and store the information that it is a door another way :

setIsDoor(true)

 

It could lead to tricky bugs :) and good devs would not do that.

Edited by Tchernobill
Link to comment
Share on other sites

Quote

You can try modding it in a twisted way, waiting for them to correct it:

Once you lock it in Lua, call:

setIsDoor(false)

 

As a consequence, you may need to do before you try to unlock and store the information that it is a door another way :

setIsDoor(true)

 

It could lead to tricky bugs :) and good devs would not do that.

That's a interesting workaround. I appreciate the suggestion, will definitely play around with that as soon as I my brain is ready for the lua basics :D

Edited by HetCigarr
Link to comment
Share on other sites

Quote

Yes, the bug has been reported a number of times but let me reassure you we DO take notice and we WILL eventually get to fixing this. 

Yeeah I know :)  Was just hoping to make it low hanging fruit so to speak

Edited by HetCigarr
i dont think im doing the "quote" thing right.....
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...