Skip to content

PVP ​

Description ​

Forces first-person camera inside configured PvP areas. It can also impose first person outside PVE protection and notify players when they enter or leave.

Configuration ​

Default configuration ​

PVP.json
json
{
    "m_Enable": 0,
    "m_OutsidePVE": 0,
    "m_Positions": [
        {
            "m_N": "Pavlovo Military",
            "m_X": 2165.0,
            "m_Y": 3358.0,
            "m_R": 380.0
        }
    ],
    "m_Messages": {
        "m_Enter": "You just entered a PVP zone.",
        "m_Exit": "You just left a PVP zone."
    },
    "m_NotificationTime": 10,
    "m_NotificationInChat": 0
}

Options ​

OptionTypeDescription
m_EnableboolEnables the module with 1 and disables it with 0.
m_OutsidePVEboolWith 1, also treats positions outside active PVE protection as PvP. With 0, keeps this behavior disabled.
m_Positionsarray<object>Circular areas where the first-person requirement applies.
m_MessagesobjectTexts shown when entering or leaving the area.
m_NotificationTimeintNotification duration in seconds.
m_NotificationInChatboolWith 1, sends messages to chat. With 0, uses notifications.

m_Positions[] ​

OptionTypeDescription
m_NstringName identifying the area in the configuration.
m_XfloatWorld X coordinate in meters.
m_YfloatSecond horizontal map coordinate, corresponding to world Z, in meters.
m_RfloatArea radius in meters.

m_Messages ​

OptionTypeDescription
m_EnterstringEntry text. Leave empty to skip it.
m_ExitstringExit text. Leave empty to skip it.

Enable and configure PVE protection before using m_OutsidePVE=1 for a mix of protected and PvP areas.

Released under the MIT License.