Project Zomboid

Project Zomboid

Just Drop It
46 Comments
ThereforeAliens  [author] 11 Feb @ 9:08am 
@lvdsvl, it's more time than anything else (aside from aptitude imho, but still relative). Among other things, I lack time.

This mod came out a few years after my little poc:
https://steamproxy-script.pipiskins.com/sharedfiles/filedetails/?id=3018929461

There is an "unofficial" B42 version of the above by another uploader. I think it has what you need?
lvdsvl 11 Feb @ 5:10am 
And then, if you push one of those inputs, but there’s nothing to drop, and at the same time your cursor points on an item (whether on the floor or in a container’s menu), you could attempt to equip said item in the corresponding slot.

I wish I could code myself
lvdsvl 11 Feb @ 5:05am 
If I was a coder I’d probably do it myself but I’m just a silly designer so I’ve got a different suggestion for controls:

Z == drop a genny/corpse
Z+LMB == drop your “equip primary” thing
Z+RMB == drop your “equip secondary” thing
Z+MMB (or possibly Z+RMB+LMB if fancy) == drop your backpack, and then fanny packs, one by one as you press repeatedly

All regardless of whether you have containers equipped in your hands, jerry cans, tools or weapons, etc.

This will allow for intuitive selection of what to drop, and will streamline actions that should feel much more unconscious than they do in vanilla, like dropping log stacks or said jerry cans, or the actual containers.

If someone could be a really strong coder, they could even make it so that if you hover your mouse over an opened container’s menu and push the desired combination, you will attempt to drop the corresponding item into that container.
BluntMan 23 Dec, 2024 @ 2:11am 
update?
[SE:VH] Queiroz 24 May, 2024 @ 7:48am 
This mod is making my items have a red label when i try to transfer them to containers, even though the container has space. Bug or can that be disabled?
froggx 15 May, 2024 @ 1:44pm 
@Yosemite_Sam

Enable Steam Input in the steam controller configurator. Took about 15 seconds from there to map 'Z' on my xbox one controller.
Yosemite_Sam 19 Dec, 2023 @ 1:16pm 
Love this mod! Would you be able to add controller support? I mapped L5 on my Steam Deck to Z, but there isn't an alternative with a regular controller. Could you add it to one of the radial menus? Maybe the same menu as the speed and zoom controls?
Faro 【✚】 Medic 26 Apr, 2023 @ 2:41pm 
Thank you!
inject 30 Sep, 2022 @ 1:49am 
Jerry cans aren't considered containers like bags, they are a usable item like duct tape, twine, etc.

For dropping generators/heavy bodies, the following works in singleplayer. I haven't tested in MP. For performance reasons, I'd suggest doing this first, before checking for bags. There's no need to check for bags to drop if the player has gen/body in hand imo. Feel free to use it, don't care about credit, it's been working for me fine but don't shoot me if it breaks things. :)

local primaryItem = player:getPrimaryHandItem();

if primaryItem and isForceDropHeavyItem(primaryItem) then
ISTimedActionQueue.add(ISUnequipAction:new(player, primaryItem, 50))
return
end
Eggon 25 Sep, 2022 @ 11:03am 
@Gaist Heidegger Eggon's Hotkeys has a hotkey to pickup/drop corpses if you're interested. ;)
Gaist Heidegger 24 Sep, 2022 @ 3:59pm 
I can try to take a look in the lua and see if it's got something peculiar. Edgewise, it would be handy if this also let you quick drop a generator or corpse, as a possible future consideration! But we did have a few players in the server ditch their backpack without realizing what had happened, so if you ever did implement that as an optional toggle it would be greatly appreciated. Cheers!
ThereforeAliens  [author] 24 Sep, 2022 @ 2:57pm 
Strange. Based on my mod's logic, that would mean the jerrycans are not legit containers or are not equipped (according to PZ). Not sure what that mod has done...
Gaist Heidegger 23 Sep, 2022 @ 8:51pm 
Something's a little screwy, it's dropping backpack -first- and then not dropping e.g. jerry cans in hand after. Maybe it just doesn't recognize fuel containers from the can can jerrycan mod or something?
ThereforeAliens  [author] 22 Sep, 2022 @ 4:23pm 
I could, but to keep the reasons brief I'll just say I'm too lazy =(

You could bind the drop key to something you won't hit accidentally?
Gaist Heidegger 22 Sep, 2022 @ 4:09pm 
Might there be an option to make that last bit a toggle / option / long-press or something to avoid accidentally ditching your backpack in a panic?
ThereforeAliens  [author] 22 Sep, 2022 @ 4:06pm 
Yep. Secondary, primary, then back. If nothing in secondary or primary...you'll drop your backpack. Sorry if the description doesn't make that clear
Gaist Heidegger 22 Sep, 2022 @ 3:59pm 
Is this supposed to also drop equipped backpacks if you hit the hotkey when not carrying a container in your hands?
DiE PoTaTo 16 Mar, 2022 @ 7:27am 
Hello, I found the issue that when items inside whatever bags(only except player inventory) are displayed unavailable to move when it's drag-dropped.
Though is if fully functional but the only problem is I can't remark if the target container is full or not.
I'm not certain if this issue existed before 41.68 update because I've installed this mod after the update...
But if you still support this mod, please fix this issue. Thanks!
quilates_24 29 Jan, 2022 @ 7:48am 
Theforealien thanks for the mod, do you still support this mod?

If so, I would like to make a suggestion. Could you make the same button to drop the backpack, also work to pick up and equip? It would be fantastic.

thanks for your mod
Survivator 21 Jan, 2022 @ 1:20pm 
This mod saves many lives )))
Demon Hitman 7 Jan, 2022 @ 5:02am 
I see trees of green, red roses too
I see them bloom for me and you
And I think to myself
What a wonderful mod
ThereforeAliens  [author] 3 Jan, 2022 @ 6:52am 
@Survivor, thank you for the boost. Happy to see you are still finding it useful since your last comment =)
Survivator 2 Jan, 2022 @ 12:13pm 
Great mod. Thank you!
Ahtu 28 Nov, 2021 @ 1:55am 
I am using Font Size 2X and the hitbox for the Drop button is not aligned properly. I am unable to click the button because when I approach the misaligned hitbox, the my inventory window minimizes. Is this fixable?
RunYouCleverBoy 5 Nov, 2021 @ 1:28pm 
hey, author. this mod great. Pls add ability drop zombie corpses. cause it boring to rightclicking
ThereforeAliens  [author] 18 Oct, 2021 @ 5:14pm 
Hey, @Ink. Sorry for the delay. I use this mod and haven't had any issues fwiw, haha. I assume the bag(s) you are trying to drop are equipped? (i.e. on your back, primary or secondary hand).

Anecdotally, I have seen at least one other mod that uses the 'z' key by default. Any other mods that may be interfering? GL, keep me posted.

Worst case, unsub and sub again to refresh the mod files.
Ink 8 Oct, 2021 @ 11:32pm 
Having a bit of trouble getting this to work in 41.55 - anything i need to do other than check the keybindings in the menu? Using 'z' and re-binding again just in-case, i've yet to drop anything.
ThereforeAliens  [author] 8 Sep, 2021 @ 4:32pm 
I actually was inspired to make this mod because of Airekc on YouTube. I saw a few videos where he was scrolling to drop bags being held when surprised. If you're reading this, Airekc...miss the vids and hope all is well.

You make a valid point, but I think if you are willing to drop one bag...you should consider that you are in a situation to drop everything in your hands. Haha. Afterwards, the hotbar is your friend.
Hunter-Killer 8 Sep, 2021 @ 4:37am 
I see it was made for 2 handed weapons as you drop the secondary bag 1st and auto hold the weapon in 2 hands. But what about 1 handed weapons? Like holding 2 heavy bags and you wanna drop your primary 1st to equip a one handed weapon.
ThereforeAliens  [author] 4 Sep, 2021 @ 7:31pm 
No complaints. I assume so
Saroodai 28 Jul, 2021 @ 1:48pm 
Still working with 41.52 ?
Shot of Depresso 7 Jun, 2021 @ 10:55pm 
Thank you, you absolute fucking god. This has been such a massive fix. Is it possible you could add this to the hands slots (Primary/secondary) as well?
ThereforeAliens  [author] 20 May, 2021 @ 7:18am 
This mod was built on the IWBUMS branch, yes.
Kalmorph 19 May, 2021 @ 11:00am 
Does it work on 41.X? :Yoru:
RunYouCleverBoy 16 Oct, 2020 @ 5:44am 
and after all thank you- doing mods changing gameplay it awesome. So if you able to do that: to climb over the window, you need to hold the e button and this has a long delay. Can you replace the "hold E" action with another customizable option? for example a single "T"
RunYouCleverBoy 16 Oct, 2020 @ 5:41am 
Okay, I'll use Google translator: I mean dropping objects (not bags) in my hands (like sledgehammer, heavy shotgun, etc.) after there are no bags left on my back and in my hands. I really like the idea of pressing one button at a time to reset one thing at a time.
ThereforeAliens  [author] 15 Oct, 2020 @ 3:43pm 
Just to clarify...Are you suggesting that you could hit a single button to queue dropping all bags (primary, secondary and back) instead of hitting the bound button three times?
RunYouCleverBoy 15 Oct, 2020 @ 10:40am 
can you add posibility drop EVERYTHING in hands after all?
Survivator 11 Oct, 2020 @ 1:04pm 
Thank you! Very usefull mod!
ThereforeAliens  [author] 20 Sep, 2020 @ 8:22pm 
@Matt, thankfully there was a UI event to indicate the column menu had been built. I added a hook to introduce a new "drop" button that will float to the right of the bags' icon. A little janky, but I think this should cover your requirement. =)

Any issues at all, just lemme know! Hope it helps!
detour99 20 Sep, 2020 @ 5:05am 
Would it also be possible add in an option to right-click on the bag icon in the column container menu to "Drop"?
Spyware006 13 Sep, 2020 @ 10:15am 
NP :D
mooders are the core of this game IMHO!
btw there is a mod similar to your "restock idea". The mod stacks duplicate items to a selected container. But you have to check and stack every container to clean up your inventory.
have fun with modding :D
ThereforeAliens  [author] 13 Sep, 2020 @ 10:10am 
Thanks for the feedback! Don't hesitate to keep me posted on any issues and I'll remediate asap. First mod and workshop interaction altogether. Good chance I do something silly ;)

Next mod should be a "restock" to place duplicate items from inventory in nearby containers. These mods are really for me, haha, but I thought I could clean then up and share properly.
Spyware006 13 Sep, 2020 @ 10:06am 
Thank you. great work! I use Z to enter, while I'm in front of cars. Now that's perfect
ThereforeAliens  [author] 13 Sep, 2020 @ 9:59am 
@spyware, it took me a second to reverse engineer the menu options code. But I've added a custom key binding under Options -> Key Bindings.

I've not tested what would actually happen, but this mod will not allow you to drop your bag while in a vehicle. Hope that helps!
Spyware006 13 Sep, 2020 @ 2:33am 
uhm, and the quick Z menu? you drop your bag before enter cars? I Use Z to select seats, usually.
Is this bindable?