Barotrauma

Barotrauma

52 ratings
Pickup Notifier
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
257.652 KB
28 Jun, 2024 @ 8:13am
12 Oct @ 10:53am
14 Change Notes ( view )

Subscribe to download
Pickup Notifier

In 1 collection by jia
713
6 items
Description
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 Comments
jia  [author] 13 Oct @ 11:30pm 
@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 13 Oct @ 2:46pm 
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  [author] 12 Oct @ 12:27am 
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 11 Oct @ 2:03pm 
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 9 Oct @ 9:43am 
Many thanks! :steamhappy:
jia  [author] 9 Oct @ 3:46am 
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 6 Oct @ 9:57am 
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  [author] 6 Oct @ 9:54am 
Actually, you know what, maybe I will work on making it client-side this week.
jia  [author] 6 Oct @ 9:53am 
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 6 Oct @ 9:39am 
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.