- Scoreboard scores come from the local service: BattleEconomy missionScores() writes the official mission scores into the stock mission block customScoreParams, which the client copies into MissionSettings+0x6d8 without reading it; local_mp_scores.c reads them with DataBlock::getReal. The hardcoded scores and the death score go. - countActivePlayers already counts players with a living vehicle; the only LocalMP gap is its filter skipping bots (MPlayer+0x1d8 bit 7). A one-byte exe patch drops that filter bit instead of a rewrite hook. - ucavLaunch returns early on a host; an exe patch skips that return instead of clearing the global host flag around the call. - onBecameDead no longer runs with isLocalMP cleared: that only queued an EventOnPlayerDeath stock LocalMP skips on purpose, and broke the local player id remap inside the function. - The host chat object keeps its two-field layout, now documented from the host chat handler that reads it.
26 lines
759 B
JSON
26 lines
759 B
JSON
// Let the LocalMP host launch a UCAV (the light tank recon drone and the strike UCAV) from its vehicle.
|
|
// Why the exe: ucavLaunch returns at once when g_multiplayer->isHost is set, because on a dedicated
|
|
// server the launch is handled by server code that the client build does not contain; a LocalMP host
|
|
// is that server. Nothing outside the function decides it.
|
|
// Without it: pressing the drone key on a LocalMP host does nothing.
|
|
{
|
|
"id": "battle/allow-local-host-ucav-launch",
|
|
"title": "Let a LocalMP host launch UCAVs",
|
|
"features": [
|
|
"K-侦察"
|
|
],
|
|
"requires": [],
|
|
"verified_on": [
|
|
"2.61.0.37"
|
|
],
|
|
"edit": {
|
|
"offset": 51,
|
|
"asm": [
|
|
"nop",
|
|
"nop"
|
|
],
|
|
"bytes": "9090",
|
|
"expect_original": "753a"
|
|
}
|
|
}
|