Backpacks 3.7.0 includes some internal design changes which may have bugs and may conflict with other plugins, so I'm releasing it as a beta to reduce the impact of potential issues. Thank you for participating!
Download: https://umod.org/plugins/Backpacks.cs?version=3.7.0&branch=beta
General Improvements
- Paintable entities, photos, cassettes, pagers, and mobile phones placed in backpacks will now work as expected throughout a given wipe. After a wipe, those items' associated data will be lost, including sign content, photo content, cassette content, pager frequency, etc.
- Slightly increased the delay when opening the backpack while looting another container (from 0.05 to 0.10 seconds) to further mitigate issues where the loot panel doesn't resize.
- Hook conflicts with other plugins over the
CanLootPlayerhook are no longer possible.
Performance improvements
The following performance improvements are expected to significantly reduce the overall hook time used by the plugin.
- Backpacks data files are no longer written to unless the backpack's contents have changed.
- Removed the noisy
CanAcceptItemhook in favor of a different item filtering mechanism that resides directly on the backpack container. - The noisy
OnEntityLootEndhook is now subscribed only while backpacks are open. - The GUI button is now only generated once per plugin load, instead of being generated every time it's sent to a player.
Behind the scenes
- Backpacks now use actual container entities, specifically coffins. If you have any plugins that relate to or alter coffins, they might interfere with backpacks.
- Each backpacks now uses a separate network group, to allow players viewing the backpack to see data about associated entities such as sign content, photo content, pager frequency, and more. If you have any custom networking plugins, they might interfere with the ability to open backpacks or view the previously mentioned entity data.
For developers
- Added
API_GetBackpackOwnerId(ItemContainer)method which other plugins can use to determine whether a given container is a backpack, as well as the owner of that backpack.