Carry the queued aircraft and crew index into LocalMP, apply the native single-spawn limits to players and aircraft bots, and disable spares for single-slot modes. Verified with root and launcher type checks, check-patches and check-gui for 2.61.0.37 and 2.61.0.43, and an isolated launch-payload check.
20 lines
822 B
JSON
20 lines
822 B
JSON
// Feed the matched crew slot into the stock respawn and slot bar availability checks.
|
|
// The queued aircraft is known to the offline server, but LocalMP does not receive a matchmaking slot mask.
|
|
// Without this bridge, the LocalMP host can offer the rest of the player's lineup in a single-slot battle.
|
|
{
|
|
"id": "battle/lock-single-slot-lineup",
|
|
"title": "Restrict single-slot battles to the queued aircraft",
|
|
"features": ["K-Spawn score and respawns"],
|
|
"variants": [
|
|
{
|
|
"written_for": "2.61.0.37",
|
|
"file": "scripts/respawn/respawnstate.nut",
|
|
"edits": [
|
|
{ "find": "find-import.nut", "replace": "replace-import.nut" },
|
|
{ "find": "find-mask.nut", "replace": "replace-mask.nut" },
|
|
{ "find": "find-crew-check.nut", "replace": "replace-crew-check.nut" }
|
|
]
|
|
}
|
|
]
|
|
}
|