About Monument Owner
Never worry about your players fighting over a monument, make them compete for ownership! With this plugin you can configure several parameters then players can compete to claim a monument for a set time. There is enough configuration and options that this would work well for any server, whether PvE or PvP.
Video
Description
This plugin will automatically find Facepunch standard monuments, including Cargo Ship and Oil Rigs that are on the map, and which can be specified in the configuration. This will create a zone around each monument in which customizable rules apply for anyone coming to the monument, whether they become owner or not. You can also create a zone using coordinates anywhere on the map, and assign certain rules to it.
Chat Command (For all players)
mocd - Displays all cooldowns for the player
Chat Command (For Admins)
mocreatecustomzone {name} - Creates a file for a custom zone in the Data/MM_Data/MonumentOwner/Custom Zones folder with the administrator position at the time of file creation
moshowid - Creates a mark for the administrator that displays the ID of each zone on the map
modrawedges - Shows the administrator the boundaries of each square zone on the map (used to set up such zones)
Console Command (RCON only)
mocdreset {SteamID64} - Resets all cooldowns for the player
mogetcd {SteamID64} - Outputs information to the console with all the cooldowns of the player
Plugin Config
HOOKS
void OnPlayerEnteredMonument(BasePlayer playerEntered, Vector3 zonePos, float zoneRadius) - called when the player has entered the zone after all checks void OnPlayerExitedMonument(BasePlayer playerEntered, Vector3 zonePos, float zoneRadius) - called when the player is exited of the zone
API
The answer true or false will tell whether there is a zone in this coordinate
private bool HasZone(Vector3 posMonument)
The answer true or false will tell whether the zone belongs to someone
private bool HasOwner(Vector3 posMonument)
The answer BasePlayer will tell who the zone belongs to
private BasePlayer GetOwner(Vector3 posMonument)
The answer true or false will tell whether the player can become the owner
private bool CanPlayerBecomeOwner(Vector3 posMonument, BasePlayer player)
Forcibly establishes the owner of the zone, bypassing checks on his ability to become the owner. The answer true or false will tell whether he was able to become one or the zone is occupied by another player
private bool SetOwner(Vector3 posMonument, BasePlayer player)
Deletes a zone. The answer true or false will tell whether he was able to do it
private bool RemoveZone(MonumentInfo monument)
Creates a zone for the desired monument. The answer true or false will tell whether he was able to do it
private bool CreateZone(MonumentInfo monument)
Translation assistance by Jbird.
Check out more of my work here JTedal's library.
Come see our whole teams work Mad Mapper Library.
Come by the Mad Mapper Discord for support, feedback, or suggestions!