Project Zomboid

Project Zomboid

Watch Your Trunk [B42 Compatible]
11 Comments
Phade 25 Oct @ 9:06pm 
I had this happening when b42 first came out, had a really busted up trailer that was under 10% quality, things kept falling out.

Was very awkward when I went to get my gun to deal with a horde and was like "Wheres my gun?"
somewhatfrog  [author] 23 Oct @ 7:12pm 
@eberkain welcome! :spiffo:
eberkain 22 Oct @ 8:29am 
Thank you for taking the time to look
somewhatfrog  [author] 22 Oct @ 3:18am 
@eberkain just checked, apparently the current version of Close The Trunk mod implements a new mechanic which makes items fall out of the trunk only when player forgot to close the trunk. On top of steering and speed it also makes crashing to impact the chance, which is pretty cool.

This mod on the other hand restores the vanilla function for items to fall out of the trunk which depends on trunk door condition, it also opens the bad condition trunk door whenever an item falls out of it. Both mods can be used together if desired, it will increase the chance for items to fall out of the opened trunk.
somewhatfrog  [author] 21 Oct @ 9:03am 
@miikrr as I said both b41 and b42 use the same function. So yes, it doesn't do anything in both versions, hence this mod supports both.
miikrr 21 Oct @ 9:02am 
I was entertained by the "if u don't" in the comments. Tried to understand the difference between yours and vanilla, i see now you added truckBed among other cleanup. Is 41 broken as well? I heard about this mechanic a while back but never believed it till now
somewhatfrog  [author] 21 Oct @ 8:53am 
@miikrr enjoy! I learned about it not working yesterday on @Retanaru's stream and decided to investigate. It has typos both in the code and in the comments for it which makes it even more confusing lol. Trunk condition doesn't matter for the chance for items to fall off, only trunk door and its condition.
miikrr 21 Oct @ 8:51am 
I was looking through the game files last night and came across that function. Weird coincidence you fixed it(not that i knew it was broken) less than 12 hours later! Thank ye for your work
somewhatfrog  [author] 21 Oct @ 8:48am 
@miikrr the function is identical to the one in b41 and it has a "typo" which prevents it from actually doing anything. Trailers use different function
miikrr 21 Oct @ 8:44am 
So the vanilla function that does this same thing is broken? Or what does this do that the b42 function to lose things out of open/damaged trunk doesn't do?