I have encountered an issue tonight. I run both the Harbor Event (https://lone.design/product/harborevent/) and the Sputnik Event (https://lone.design/product/sputnik/). Harbor has a Bradley and Sputnik has a heli. At the Harbor, a player was engaging the Bradley when another player came along and attacked the event, then the Bradley was locked on that second player. At Sputnik, a player was engaging the Helicopter and another player came along and locked the event to themselves.
Both events use the "PVE Mode" plugin, which locks the event to the player/team that does the first 500 damage. At that point, other players can't damage the event NPC's and vehicles, nor can they loot. This is a PVE server of course.
What I believe is happening is that the players in both cases had the Bradley and the Helicopter locked to them via the Loot Defender plugin (because they saw the message about it being locked to them), so they thought the event was locked to them. So, what I'm here asking is if you could use the API's available for both of those plugins to determine if a Bradley or Helicopter are an event vehicle, and if so, do not lock them to the player with Loot Defender. Is this something you can do?
There are a bunch of plugins that use this PVE plugin to lock an event to a player/team, such as the Convoy Event and the Armored Train event. Both should have API's as well.
Event Bradley and Helicopter
no such hook exists that Loot Defender could call to check this, and no API exists to check if an entity is owned by any of these events
private object CanLockEventEntity(BaseEntity entity, BasePlayer player)
{
if (Event.Contains(entity)) return false;
return null;
}if something like this existed in these plugins then i'd be able to check it and add options to prevent this.
no API or hook required for that since I can just block at the monument itself. no idea about Sputnik. I did add a Convoy option too, though.