DropItemEverywhere
Return compatible items to resource containers. Optional surface placement is off by default and can be enabled in the config. Feedback: qingju.me
| Date uploaded | a month ago |
| Version | 1.0.3 |
| Download link | HawChow-DropItemEverywhere-1.0.3.zip |
| Downloads | 26 |
| Dependency string | HawChow-DropItemEverywhere-1.0.3 |
This mod requires the following mods to function
BepInEx-BepInExPack_GTFO
BepInEx pack for GTFO. Preconfigured and includes Unity Base DLLs.
Preferred version: 3.2.3README
DropItemEverywhere
A standalone GTFO mod that adds two things for the resource item you are carrying (resource pack, consumable, keycard or artifact core):
- return it into an empty slot of an open locker or box
- put it down on any reachable surface you are looking at
Feedback and support: qingju.me
Both actions use the game's own hold feedback: the vanilla interaction prompt with its timer bar, plus a semi-transparent silhouette of the item showing exactly where it will end up.
Controls
- Container return — hold
E(the game's Interact/Use key by default, configurable) for 0.4 s while aiming at a compatible empty slot of an open locker/box. The prompt and the silhouette appear as soon as a valid slot is in reach; the bar fills while you hold. - Surface placement — hold
G(configurable) for 0.25 s while looking at a reachable surface. The silhouette previews the landing spot while you hold.
Surface placement is off by default (opt-in). As shipped, the placement key does nothing at all - no prompt, no preview, no placement. To enable it, open BepInEx/config/HawChow.DropItemEverywhere.cfg, go to the [Placement] section and set EnableSurfacePlacement = true, then restart the game. Container return (E) works out of the box.
Surface placement is deliberately kept off the Interact/Use key. With a pack in hand that key is also "apply the pack to myself / to a teammate", so sharing it would swallow the placement input and drop the pack on your own feet. Picking items up, opening lockers, and applying packs stay on their vanilla keys and are not touched.
While an empty compatible slot of an open container is in reach and you carry a storable item, the mod takes over that one interaction: vanilla world-interaction updates and the pack's own apply action are skipped for that moment, so E stores the item instead of starting the self-apply. Aim anywhere else and vanilla behaves exactly as before.
A single-frame key dropout never resets a hold - only staying up for longer than a quarter second cancels it, so the bar always fills smoothly.
Placement looks for a surface whose normal faces you, then lifts the position along that normal until the carried item's own bounds no longer overlap any world geometry. That keeps items from spawning inside a locker or box, whichever face of it the crosshair happened to land on. The item keeps its remaining ammo and custom data.
Supported items are resource packs, consumables, keycards and artifact-core items that match a container slot; only matching empty slots accept a return.
Configuration
BepInEx/config/HawChow.DropItemEverywhere.cfg
| Key | Default | Meaning |
|---|---|---|
Keys/ContainerKey |
E |
Key held to store the item into a container slot |
Keys/PlaceKey |
G |
Key held to place the item on a surface |
Interaction/ContainerHoldSeconds |
0.4 |
Hold time for the container return; 0 stores instantly |
Interaction/PlaceHoldSeconds |
0.25 |
Hold time for surface placement |
Interaction/ContainerReachMeters |
2.0 |
How far a container slot can be targeted |
Placement/SurfaceReachMeters |
3.0 |
Ray distance for surface placement |
Placement/SurfaceOffsetMeters |
0.1 |
Minimum lift along the hit normal |
Placement/ClearanceSearchMeters |
1.0 |
How far out along the normal the item may be lifted to clear geometry |
Placement/EnableSurfacePlacement |
false |
Off by default. Set to true to enable surface placement |
Feedback/ShowProgressBar |
true |
Vanilla interaction prompt + hold timer bar |
Feedback/ShowGhostPreview |
true |
Semi-transparent silhouette at the target position |
Diagnostics/VerboseLogging |
true |
Writes [DIAG] lines to the BepInEx log; turn it off once everything behaves |
Key names accept letters, digits, F1-F12, SPACE, TAB, ENTER, ESC, arrows, LEFTSHIFT, LEFTCTRL, LEFTALT and MOUSE0-MOUSE2.
Dependency
BepInEx-BepInExPack_GTFO3.2.3
No other mod is required.
Feedback
Inspiration
Inspired by the container-return behavior in DropItemPlus by Hikaria, DropItemFixed by Dinorush, and the surface-placement raycast behavior in SentryGunEverywhere by Localia. This is a separate implementation and package.
CHANGELOG
更新日志
1.0.12
- 修复:物品存回箱柜 / 储物柜后会继承槽位标记的缩放,模型跟着变大或变小。槽位的触发体积改为单独记录,挂到槽位上的真实物品保持自身原始缩放。
- 修复:放置预览的半透明虚影会参与原版拾取碰撞,可能被选中或挡下拾取。虚影生成后立即禁用其全部碰撞体(含未激活的子物体)并把刚体设为运动学,不再参与选取与碰撞。
- 交互争用:有效回存(按住
E、准星对着兼容空槽)在按下那一刻独占本次交互,不与原版拾取互相抢键;该路径沿用官方 1.0.7 的按下沿仲裁,本版未改写该语义,由随包验收用例覆盖。实验分支「把这次 E 让给原版」的语义不在本包中。 - 基线为官方 1.0.7,不包含实验分支的远程拆分改动。
- 依赖、GUID、配置项名称与默认值均未改变(表面放置仍默认关闭)。
1.0.11
- 恢复为 1.0.7 的原始内容:除
manifest.json与CHANGELOG.md以外,包内每个文件都与 1.0.7 逐字节一致(DLL 程序集版本仍为 1.0.7)。 - 本次发布仅更新包版本号,不包含 1.0.7 之后任何版本的后续改动与新功能;本包行为与 1.0.7 完全相同。
- 依赖与 1.0.7 相同,仍只有
BepInEx-BepInExPack_GTFO3.2.3。
1.0.7
- 修复交互提示与读条残留:放置或存入完成后,屏幕下方「放下XXX / 按住「G」」那一条有时会一直挂在屏幕上,直到你再瞄别的可交互物或放下东西才消失。原因是游戏写入共享提示时会用富文本标签包裹文本(实测形如
<color=#B2A151>放下驱雾器</color>),而旧版以「回读文本必须完全相等」作为清理凭证,于是每次都判定「这不是我写的」而静默放弃清理,并且只尝试一次。 - 交互提示的生命周期改为按帧驱动的兜底清理:每帧结束前若本模组仍持有提示且该帧没有重新写入,就再清理一次;任何分支、任何异常之后都会执行。清理不再依赖某一个动作分支恰好调用一次。
- 文本比较前先做富文本归一化:去掉
<color>、<b>、<size>等标签后再比对,因此带颜色包裹的本模组文案也能被正确识别并清理;游戏或其他模组写入的不同文案仍然一律不动。 - 所有权凭证收紧为「写成功之后才计入本帧写入」,写入中途抛异常不会连带清掉同一帧上别人写的提示。
- 清理重试预算改为每帧最多记一次,告警文案(8 帧)与实际口径一致。
- 表面放置:成功后进入「等待松键」状态,不再重复上膛、不再刷取消日志,松键时显式清理一次并复位。
- 容器存入:完成后继续按住不再每帧重复输出「E hold cancelled」。
- 日志修正:原先「G disabled: surface placement is off」会把「手里的物品已经放下」误报成「配置关闭」,现在两种原因分开记录。
- 全部 12 个配置项支持热重载:修改
BepInEx/config/HawChow.DropItemEverywhere.cfg并保存后无需重启游戏,生效值会写入[DIAG] config reloaded:;填写非法值时保留上一次的有效值并在日志中告警。 - 配置项名称、默认值、依赖关系与放置默认关闭策略均未改变。
1.0.6
- 修复交互提示残留:把资源包或消耗品拾取到空槽位后,原版提示与其读条可能一直留在屏幕上。存入动作改为只按「按下按键那一刻」的状态判定,按键已按住期间捡到物品不会再让同一次按压变成容器存入(该路径会跳过原版交互更新,从而把提示留在原地)。
- 取消原版选中项改为调用游戏自身的取消接口,而不是直接清空字段;该调用抛出异常时让原版更新照常执行,而不是被跳过。
- 共享提示改用「本构建写入的确切文本」作为所有权凭证,并在仍持有所有权期间重试;游戏或其他模组写入的提示一律不动。
- 存入后冷却期内再次按存入键,仍然压制原版资源包施放路径,使失败重试窗口的表现与之前一致。
- 未改动配置项、依赖、默认按键与放置默认值。
1.0.5
- 重新发布,提交时未勾选「包含 NSFW 内容」。本模组不含任何 NSFW 内容,因此不应需要开启过滤器才能被搜索到。内容、配置与玩法均无变化。
1.0.4
- 重新发布,使包不再被标记为 NSFW。内容与玩法无变化:上一次上传误勾了「包含 NSFW 内容」,导致关闭过滤器时搜不到本包。
1.0.3
- 对齐 DropItemFixed 更新日志中列出的修复。
- 存放不再抢占交互/使用键:仅仅瞄着容器槽位时,原版交互(拾取、开关容器、给自己 / 队友打包)保持可用。只有真正按住存放键且槽位有效时才会接管提示与读条(对应 DropItemFixed 0.1.7 / 0.1.8)。
- 存放接管时清除过期的世界交互选中项,按键不会再作用于一瞬间之前选中的目标。
- 关卡回溯后重建容器记账,槽位占用判定忽略物品已不存在的条目,回溯过的物品不会再被标记为「占用中」或渲染在错误位置——即「幽灵资源包」症状(对应 0.1.5)。
- 复用容器指针前先校验,指针被回收后不会让容器失去可用槽位(对应 0.1.6 一类重复 / 失效键错误)。
- 每帧动作循环加了保护:某一帧出错只记录一次,而不是从 Update 抛出并跳过另一个动作。
- 未移植上游的剔除桶刷新:当前构建里
ItemCuller位于Modules-ASM.dll且命名空间不同,该段代码无法编译,其余部分已对齐。
1.0.2
- 加入本更新日志,使包页面能按版本显示说明。
- 相对 1.0.1 无玩法或配置改动。
1.0.1
- 表面放置(放置键,默认
G)改为默认关闭。关闭时该键完全不做任何事——不探测表面、不显示提示、不显示虚影、也不会放置。要启用:打开BepInEx/config/HawChow.DropItemEverywhere.cfg,在[Placement]段把EnableSurfacePlacement改成true后重启游戏。 - 容器回存(
E)与其按住时间未改动,开箱即用。
1.0.0
- GTFO 首个发布版本。为手上携带的资源物品(资源包、消耗品、钥匙卡、神器核心)提供两个动作:
- 塞回已打开储物柜 / 箱子的空槽位;
- 放到你视线所及的任意可接触表面。
- 两个动作都复用游戏自身的按住反馈:原版交互提示与其读条,另加一个半透明物品虚影指出落点。
- 表面放置不与交互/使用键共用,避免与「给自己 / 队友打包」冲突。
- 唯一依赖:
BepInEx-BepInExPack_GTFO3.2.3。反馈:https://qingju.me