// Let the LocalMP host's player spawn in versus modes (GM_DOMINATION and others): the UnitRespawnRequest // (0xf02f) branch of Unit::onEvent takes the spawn path at 0x1044f03 for every game mode (0x1044ecc jb -> jmp). // Why the exe: the client keeps the spawn path only for GM_SINGLE_MISSION and GM_DYNAMIC; the versus modes' // branch belongs to the dedicated server, which the build drops, and nothing outside the function decides it. // Without it: after the "To Battle!" countdown the player falls back to vehicle selection. { "id": "battle/allow-local-host-player-respawn", "title": "Let the LocalMP host's player spawn in versus modes", "features": [ "K-Spawn score and respawns" ], "requires": [], "variants": [ // Masked signature of the 0xf02f (UnitRespawnRequest) branch of Unit::onEvent (0x103fbc0), from the // human player check (call 0xfd34a0) to the spawn logic entry, 0x68 bytes; relative targets are wildcards. // 2.61.0.37: unique hit at 0x1044e9b, edited instruction at +49 (0x1044ecc). { "written_for": "2.61.0.37", "locate": { "method": "signature", "section": ".text", "pattern": "48 89 d9 e8 ?? ?? ?? ?? 84 c0 0f 84 ?? ?? ?? ?? 48 83 3d ?? ?? ?? ?? 00 0f 84 ?? ?? ?? ?? 8b 05 ?? ?? ?? ?? 83 c0 fd 49 8b 95 98 0f 00 00 83 f8 02 72 ?? 0f b6 4a 08 83 ba f8 0b 00 00 00 79 ?? 83 ba f4 0b 00 00 00 0f 88 ?? ?? ?? ?? ba 06 00 00 00 e8 ?? ?? ?? ?? 4c 89 e9 b2 01 e8 ?? ?? ?? ?? e9 ?? ?? ?? ?? 31 d2" }, "edit": { "offset": 49, "asm": [ "jmp 0x37" ], "bytes": "eb 35", "expect_original": "72 35" } } ] }