Project Zomboid

Project Zomboid

42 ratings
Watch Your Trunk [B42 Compatible]
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
257.064 KB
21 Oct @ 7:55am
21 Oct @ 6:32pm
13 Change Notes ( view )

Subscribe to download
Watch Your Trunk [B42 Compatible]

Description
This mod restores the vanilla mechanic which was supposed to add a small chance for items to fall out of the trunk when the trunk door is either missing or in a bad condition but never did
Trailers use different mechanic

Info
  • For items to get a chance to fall out of the trunk the speed has to be over 20, the trunk door should be either removed or opened or be under 60% condition. Steering affects the chance. This is what vanilla was supposed to do, though it wouldn't care whether the door is open or not
  • The trunk door will be opened when item falls out of the trunk
  • If vehicle has no trunk door (Vanilla Pickups) then it would check trunk's condition

Notes
  • Should work with all modded vehicles
  • Can be added/removed to/from existing saves
  • Might be unlisted when it is fixed by TIS
  • Thanks @Tweeneey for help
  • Blame @Retanaru

Can be used together with Close The Trunk if you want a higher chance for items to fall out of the opened trunks and also from crashes. Thanks @eberkain for telling about this mod

A thumbs up helps with the mod's discoverability, thank you if you left one
Check my other mods, maybe you'd like some of them

Modpacking or reuploading is not allowed as long as the original version is present.

PZ Modding Community Discord[discord.gg]

Workshop ID: 3591049094
Mod ID: WatchYourTrunk
Popular Discussions View All (2)
0
21 Oct @ 8:40am
B42 bugs go here
somewhatfrog
0
21 Oct @ 8:40am
B41 bugs go here
somewhatfrog
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