Project Zomboid

Project Zomboid

123 ratings
Just Drop It
2
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
67.292 KB
Sep 13, 2020 @ 7:32am
Sep 24, 2020 @ 10:09pm
7 Change Notes ( view )

Subscribe to download
Just Drop It

Description
Adds the ability to quick-drop your equipped containers. This mod will save you from scrolling through your inventory when you want to drop an equipped container on the floor (i.e. incoming horde during heavy looting).

Features:
* New bindable button to drop (default is 'z')
* Will drop containers in order when you continue to hit the bound button: secondary, primary, and then back
* Adds a "Drop" button next to the container in your inventory column menu when the container icon is clicked
* Does not work in vehicles (default switch seat functionality should continue to work)
* Does not drop favorited containers (nor will the drop button appear in the inventory column menu)
* Will equip any two-handed weapon held in your primary hand automatically when you drop a container held in your secondary

Tags:Quality of Life,QOL,Interface

Workshop ID: 2227661415
Mod ID: JDI
Popular Discussions View All (1)
10
Nov 28, 2021 @ 8:55am
FIXED---BUG [Drag and Drop]
dtoxic
46 Comments
ThereforeAliens  [author] Feb 11 @ 4:08pm 
@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://steamcommunity.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 Feb 11 @ 12:10pm 
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 Feb 11 @ 12:05pm 
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 Dec 23, 2024 @ 9:11am 
update?
[SE:VH] Queiroz May 24, 2024 @ 2:48pm 
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 May 15, 2024 @ 8: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 Dec 19, 2023 @ 8: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 Apr 26, 2023 @ 9:41pm 
Thank you!
inject Sep 30, 2022 @ 8: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 Sep 25, 2022 @ 6:03pm 
@Gaist Heidegger Eggon's Hotkeys has a hotkey to pickup/drop corpses if you're interested. ;)