If a player's horse dies (and presumably other vehicles) in a safe zone the extra vehicle storage is unlootable
Bug in Safe Zones
I'll look into it.
Looks like there are two problems to solve here.
- Need to detect that the dropped item container originated with a vehicle storage container. This isn't straight forward because the plugin doesn't directly spawn the dropped item containers. I could either override the logic to drop the containers, or I could do a best effort search for them after the original vehicle storage is destroyed. Once the plugin is aware of the dropped container, there are a few ways to allow it to be looted. However, when the server restarts, some information will be lost, requiring complexity to work around.
- Need to determine who should be able to loot the container. The vanilla logic says that if a dropped item container is in a safe zone, that it is only lootable by the player whose steam id matches the container's
playerSteamIDproperty, but that property is always 0 for these containers, making them not lootable by anyone (this is partly a vanilla issue).
The simplest solution here would be to make a standalone plugin which just allows all dropped item containers in safe zones to be looted, if they don't have an assigned steam ID. I'm inclined to go this route because it would also work for plugins such as MiniCopter Options, and it would mitigate the issue of information being lost on server restart, since we don't need to know where the dropped item container originated.