- 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.
27 lines
922 B
JSON
27 lines
922 B
JSON
// Count AI players in countActivePlayers, the player count that domination ticket bleed and the
|
|
// battle's player-count rules use.
|
|
// Why the exe: the stock count walks MPlayers with a filter that skips bots (MPlayer+0x1d8 bit 7,
|
|
// "isBot"), because online battles have human players only; in a LocalMP battle the AI players take
|
|
// the human players' places, so the filter would count the AI team as empty. The filter is an
|
|
// immediate in the function; nothing outside it can change it.
|
|
// Without it: the AI team counts as having no active players.
|
|
{
|
|
"id": "battle/count-bots-as-active-players",
|
|
"title": "Count AI players as active players in LocalMP battles",
|
|
"features": [
|
|
"K-击杀、助攻、占点计分"
|
|
],
|
|
"requires": [],
|
|
"verified_on": [
|
|
"2.61.0.37"
|
|
],
|
|
"edit": {
|
|
"offset": 24,
|
|
"asm": [
|
|
"or eax, 0x32"
|
|
],
|
|
"bytes": "83c832",
|
|
"expect_original": "83c83a"
|
|
}
|
|
}
|