Barotrauma 潜渊症

Barotrauma 潜渊症

52 个评价
Pickup Notifier
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
257.652 KB
2024 年 6 月 28 日 上午 8:13
10 月 12 日 上午 10:53
14 项改动说明 ( 查看 )

订阅以下载
Pickup Notifier

在 jia 的 1 个合集中
713
6 件物品
描述
Requires Lua
This mod is (now) client-side only.

features:
- popup text above your own character when: giving or receiving an item to/from another character, and also when your character picks up items from the floor.
- item-specific audio cues when moving items between inventories (based on impact sound tag).
- "shuffling" audio cues when moving an item around in the same inventory.

38 条留言
jia  [作者] 10 月 13 日 下午 11:30 
@ThousandFields thank you for reporting this.

It doesn't seem like something I can fix at the moment: since the mod just listens for "item was moved/dropped from inventory A (which can be nil) into character inventory B (your inventory)," which happens for both 'item picked up from the floor' and 'item being unequipped from a hand slot to make space for a two-handed item,' there's no way to distinguish between the two.

After some testing, it seems the event for the large item is (almost) always created first, so I could try ignoring any following events in the same frame if the item is left+right hand slot only, but I can't work on this right now.
ThousandFields 10 月 13 日 下午 2:46 
it appears that in multiplayer, if you are holding an item in your inventory, and then pick up a large item (duffel bag, diving suit with E), it says you picked up both the large item and the item previously held in inventory
jia  [作者] 10 月 12 日 上午 12:27 
updated

instead of a blacklist, I rewrote how the mod tracks item transfers, but the behaviour should largely be the same (only this time without smg/hmg notification spam).

do let me know if something else has broken, thank you.
ThousandFields 10 月 11 日 下午 2:03 
can you make it so certain items such as hmg rounds don't create the popup and sound? when you shoot an hmg it gives the +hmg round popup 100 times
i think blacklisting hidden items should work?
Wholly Milk 10 月 9 日 上午 9:43 
Many thanks! :steamhappy:
jia  [作者] 10 月 9 日 上午 3:46 
Hello! The mod has been updated: Playing sounds is fully client-side now.

Like before, notifications don't show when you move an item from your inventory to a cabinet or vice-versa, but only when you give/receive an item to/from another player (and now when you pick up an item from the mess of items on the floor).
Wholly Milk 10 月 6 日 上午 9:57 
It’d sure save a lot of headache. I can’t tell you how many times I’ve been scrambling in search for an item, only to soon realize someone already handed it to me ha-ha.
jia  [作者] 10 月 6 日 上午 9:54 
Actually, you know what, maybe I will work on making it client-side this week.
jia  [作者] 10 月 6 日 上午 9:53 
Yeah, I should have made that more clear in the description. The way the sounds play is (lazily) done through spawning items that play the sound and then instantly despawn.
Making it fully client-side was always one of the things I wanted to improve, but I remember deciding back then that clients being able to hear if someone picked up an item was an "unfair advantage."
Wholly Milk 10 月 6 日 上午 9:39 
I was mistaken. It does indeed work when I am the host. I came in assuming this was a client mod that would work on any server I joined. My apologies.