Is there any way to make the dome a pvp zone?
PvP zone possible?Suggestion
In regards to a server using TruePVE? I could add functionality for this.
Add this in the DangerousTreasures.cs file and let me know if it works for you.
object CanEntityTakeDamage(BaseEntity entity, HitInfo hitInfo) // TruePVE!!!! <3 @ignignokt84
{
if (!init || entity?.transform == null || hitInfo?.Initiator == null)
{
return null;
}
if (!(entity is BasePlayer) && !(entity is BaseNpc))
{
return null;
}
return EventTerritory(entity.transform.position) && EventTerritory(hitInfo.PointStart) ? (object)true : null;
}
bool EventTerritory(Vector3 position, float offset = 5f)
{
return treasureChests.Values.Any(chest => Vector3.Distance(new Vector3(chest.containerPos.x, 0f, chest.containerPos.z), new Vector3(position.x, 0f, position.z)) <= eventRadius + offset);
} Trial and error then. The plugin will load if you do it correctly. Just try.
no news on the topic since this solution?
Thorkilno news on the topic since this solution?
If there is no news its probably good news . which means no one else has this problem or the solution works