Jump to content

OnEntityEnteredAbandonedBase

Pending 2.2.5

IIIaKa
IIIaKa

Posted (edited)

Hello, is it possible to add the hooks "OnEntityEnteredAbandonedBase" and "OnEntityExitAbandonedBase"?
Or at least an API method that can be used to check whether an entity is a participant in a base raid or not(I think API will be better).

The issue is that in vanilla, when item containers(storage boxes and etc.) are destroyed, the OwnerID of created DroppedItemContainer is not inherited from them and is always set to 0, even if the parent entity had a player's userID as OwnerID. This creates problems for PvE plugins.
Because of this, my plugin uses Harmony(method ModDroppedContainer2 in RealPVE) to fix this oversight by inheriting the OwnerID for DroppedItemContainer from their parents.
As I understand from your plugin, during the event all OwnerIDs are reset to 0 to avoid conflicts with PvE plugins. But, after entities die, you restore their OwnerIDs, and therefore my plugin also inherits a non-zero OwnerID for the DroppedItemContainer instead of 0, and players can't loot them.
That's why it would be useful to have an API or a hook to know whether inheritance is needed for this DroppedItemContainer.

Edited by IIIaKa
2.1m

Downloads

Total number of downloads.

9.7k

Customers

Total customers served.

141.4k

Files Sold

Total number of files sold.

3m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.