Works with
关于 Monument Owner
永远不用担心您的玩家会为纪念碑而战,让他们争夺所有权!使用此插件,您可以配置多个参数,然后玩家可以在设定的时间内竞争领取纪念碑。有足够的配置和选项,这适用于任何服务器,无论是 PvE 还是 PvP。
视频
描述
此插件将自动查找 Facepunch 标准纪念碑,包括地图上的货船和石油钻井平台,并且可以在配置中指定。这将在每个纪念碑周围创建一个区域,在该区域中,可自定义的规则适用于任何来到纪念碑的人,无论他们是否成为所有者。您还可以使用地图上任意位置的坐标创建区域,并为其分配某些规则。
聊天命令(适用于所有玩家)
mocd – 显示玩家
聊天命令的所有冷却时间(适用于管理员)
mocreatecustomzone {name} – 在 Data/MM_Data/MonumentOwner/Custom Zones 文件夹中为自定义区域创建一个文件,并在创建
文件时具有管理员位置 moshowid – 为管理员创建一个标记,该标记显示地图
上每个区域的 ID modrawedges – 向管理员显示地图上每个方形区域的边界(用于设置此类区域)
Console Command (仅限 RCON)
mocdreset {SteamID64} – 重置玩家
的所有冷却时间 mogetcd {SteamID64} – 将玩家的所有冷却时间信息输出到控制台
插件配置
钩
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
应用程序接口
答案 true 或 false 将表明此坐标中是否有区域
private bool HasZone(Vector3 posMonument)
答案 true 或 false 将表明该区域是否属于某人
private bool HasOwner(Vector3 posMonument)
答案 BasePlayer 将告诉该区域属于谁
private BasePlayer GetOwner(Vector3 posMonument)
答案 true 或 false 将表明玩家是否可以成为所有者
private bool CanPlayerBecomeOwner(Vector3 posMonument, BasePlayer player)
强制建立区域的所有者,绕过对他成为所有者的能力的检查。答案 true 或 false 将表明他是否能够成为其中一员,或者该区域被另一名玩家占据
private bool SetOwner(Vector3 posMonument, BasePlayer player)
删除区域。答案 true 或 false 将表明他是否能够做到这一点
private bool RemoveZone(MonumentInfo monument)
为所需的纪念碑创建区域。答案 true 或 false 将表明他是否能够做到这一点
private bool CreateZone(MonumentInfo monument)