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
{
"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
| Option | Type | Description |
|---|---|---|
m_Enable | bool | With 1, enables the module. With 0, disables it. |
m_Logging | bool | With 1, logs spawn selections. With 0, skips these records. |
m_BlockDistance | int | Distance in metres used to hide choices near blocked positions. |
m_BlockDistanceTime | int | Seconds a position remains blocked. A nonpositive value disables blocks on death. |
m_BlockLastPosition | bool | With 1, also blocks the last selected position. With 0, skips that block. |
m_ShowMapZone | bool | With 1, shows the selected area on the map. With 0, hides the area overlay. |
m_SpawnProtectionTime | int | Spawn protection duration in seconds. With 0, skips spawn protection. |
m_SpawnProtectionBefore | string | Protection start notification. %Time% is replaced with the duration. |
m_SpawnProtectionAfter | string | Notification when protection expires. |
m_Positions | array<object> | Spawn areas available to ordinary players. |
m_Priority | array<object> | Extra positions by SteamID. |
m_Priority[]
| Option | Type | Description |
|---|---|---|
m_Steam | array<string> | SteamIDs allowed to see this group’s extra locations. |
m_Positions | array<object> | Additional spawn areas with the same structure as m_Positions[]. |
m_Positions[] / m_Priority[].m_Positions[]
| Option | Type | Description |
|---|---|---|
m_N | string | Location name. |
m_X | float | World X coordinate in metres. |
m_Y | float | World Z coordinate in metres. |
m_R | float | Radius 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.
