Skip to content

SpawnSelection ​

Description ​

SpawnSelection opens a map and location list for a new character. Players can choose a location or ask the menu to pick one at random. Administrators can add locations for specific SteamIDs, block choices near recent deaths and configure temporary spawn protection.

Configuration ​

Default configuration ​

SpawnSelection.json
json
{
    "m_Enable": 0,
    "m_Logging": 1,
    "m_ShowMapZone": 1,
    "m_Positions": [
        {
            "m_N": "Chernogorsk",
            "m_X": 7308.0,
            "m_Y": 3653.0,
            "m_R": 100.0
        },
        {
            "m_N": "Elektrozavodsk",
            "m_X": 10022.0,
            "m_Y": 2456.0,
            "m_R": 100.0
        },
        {
            "m_N": "Kamyshovo",
            "m_X": 11901.0,
            "m_Y": 3708.0,
            "m_R": 100.0
        },
        {
            "m_N": "Solnechny",
            "m_X": 13090.0,
            "m_Y": 6420.0,
            "m_R": 100.0
        },
        {
            "m_N": "Berezino",
            "m_X": 12438.0,
            "m_Y": 10039.0,
            "m_R": 100.0
        },
        {
            "m_N": "Svetloyarsk",
            "m_X": 13881.0,
            "m_Y": 12977.0,
            "m_R": 100.0
        },
        {
            "m_N": "Komarovo",
            "m_X": 3329.0,
            "m_Y": 2479.0,
            "m_R": 100.0
        },
        {
            "m_N": "Kamenka",
            "m_X": 1659.0,
            "m_Y": 2335.0,
            "m_R": 100.0
        }
    ],
    "m_Priority": [
        {
            "m_Steam": [
                "00000000000000000"
            ],
            "m_Positions": [
                {
                    "m_N": "Stary Sobor",
                    "m_X": 6282.0,
                    "m_Y": 8048.0,
                    "m_R": 100.0
                }
            ]
        }
    ],
    "m_BlockDistance": 500,
    "m_BlockDistanceTime": 60,
    "m_BlockLastPosition": 0,
    "m_SpawnProtectionTime": 0,
    "m_SpawnProtectionBefore": "You have %Time% seconds of protection.",
    "m_SpawnProtectionAfter": "Your protection is over"
}

Options ​

OptionTypeDescription
m_EnableboolWith 1, enables the module. With 0, disables it.
m_LoggingboolWith 1, logs spawn selections. With 0, skips these records.
m_BlockDistanceintDistance in metres used to hide choices near blocked positions.
m_BlockDistanceTimeintSeconds a position remains blocked. A nonpositive value disables blocks on death.
m_BlockLastPositionboolWith 1, also blocks the last selected position. With 0, skips that block.
m_ShowMapZoneboolWith 1, shows the selected area on the map. With 0, hides the area overlay.
m_SpawnProtectionTimeintSpawn protection duration in seconds. With 0, skips spawn protection.
m_SpawnProtectionBeforestringProtection start notification. %Time% is replaced with the duration.
m_SpawnProtectionAfterstringNotification when protection expires.
m_Positionsarray<object>Spawn areas available to ordinary players.
m_Priorityarray<object>Extra positions by SteamID.

m_Priority[] ​

OptionTypeDescription
m_Steamarray<string>SteamIDs allowed to see this group’s extra locations.
m_Positionsarray<object>Additional spawn areas with the same structure as m_Positions[].

m_Positions[] / m_Priority[].m_Positions[] ​

OptionTypeDescription
m_NstringLocation name.
m_XfloatWorld X coordinate in metres.
m_YfloatWorld Z coordinate in metres.
m_RfloatRadius in metres.

Commands ​

/spawnselection ​

Use /spawnselection with Chat and SpawnSelection enabled to request the spawn menu again. This command takes no arguments. Chat requires command.spawnselection or root. The server checks access using spawnselection.allow and spawnselection.deny; ordinary access is allowed by default. Confirming a location moves the current character. Example: /spawnselection.

Permissions ​

Grant command.spawnselection for the Chat command in Permissions. Use spawnselection.allow and spawnselection.deny to control menu access. Explicit allow takes precedence over deny. With neither permission, players can request the menu.

Released under the MIT License.