Conflict with Harbor Event & Cargo ShipFixed

I would like to make Cargo a PVP zone, but we also use the Harbor Event plugin and it makes that cargo a PVP zone as well, which we would like to remain a PVE event.

Would there be any way of allowing exclusion zones in your plugin so that I could put zones over Harbor and exclude them from being PVP zones? Or is there a way for you to exlcude the Harbor Event from your plugin? Or only allow it to apply to default Cargo? Or maybe you can think of a better option?

Here is the ticket I opened with the Harbor Event plugin: https://codefling.com/files/support/18638-dynamic-pvp/

DynamicPVP works by creating zones that PVE plugins exclude from their enforcement of PVE rules. There isn't a way to layer an anti-exclusion zone on top of an exclusion zone.

However, there are Oxide hooks for Cargo approaching, arriving at, and leaving Harbors... I can look into adding options to toggle the zone on or off on each of these triggers if that would help.

A3lsOuFM9x6XnMs.jpg HunterZ

DynamicPVP works by creating zones that PVE plugins exclude from their enforcement of PVE rules. There isn't a way to layer an anti-exclusion zone on top of an exclusion zone.

However, there are Oxide hooks for Cargo approaching, arriving at, and leaving Harbors... I can look into adding options to toggle the zone on or off on each of these triggers if that would help.

That might help. I would be happy to test it for you.

I'm pretty far along on this, but there's one bit I want to hammer on some more, so it may be a few more days.

The main problem I'm still struggling with is that there's an Oxide hook for when a Cargo Ship is approaching a harbor, but I also want to be able to detect if it's in that state when the plugin gets (re)loaded (and has thus missed the hook call). I tried poking at a few bits of Facepunch's CargoShip class, but it doesn't seem that there's an easy way to determine this after the fact.

Edit: I think I cracked it, but I'm out of time for tonight...

P.S. I also verified that my stuff works on Oxide.

n9Op1NEEWQRk0AZ.jpg HunterZ

I'm pretty far along on this, but there's one bit I want to hammer on some more, so it may be a few more days.

The main problem I'm still struggling with is that there's an Oxide hook for when a Cargo Ship is approaching a harbor, but I also want to be able to detect if it's in that state when the plugin gets (re)loaded (and has thus missed the hook call). I tried poking at a few bits of Facepunch's CargoShip class, but it doesn't seem that there's an easy way to determine this after the fact.

Edit: I think I cracked it, but I'm out of time for tonight...

P.S. I also verified that my stuff works on Oxide.

Nice! Thanks for working on it!

Feature is now released in version 4.4.0.

c2wV8DX9MZlQ9h1.jpg HunterZ

Feature is now released in version 4.4.0.

Thank you!

Locked automatically