fix(battle): restore LocalMP Ground Arcade air events
Copy allowedKillStreaks and set useKillStreaks for Ground Arcade in battle-mission-settings.ts, and add a dedicated dynamic native module (local_mp_air_events) that preserves MissionSettings.useKillStreaks across prepare_local_mission, credits local player AI kills toward native killstreak counters, delivers UnitRespawn (0xf030) to the LocalMP host via shared unit_on_event, and recovers invalid surface poses from gameplay.blk spawnPos parameters for the match rank. Based on PR #3 by Rivfflot, who diagnosed the LocalMP Ground Arcade air-event gaps and verified the fix in-game; refactored here onto patches/native dynamic resolution for cross-version and MSVC build compatibility. Checked: root and launcher typecheck, MSVC native/wto-net/build.ps1, native resolution across 2.61.0.37 and 2.61.0.58 (12/12 modules), 2.61.0.58 check-patches (14/14), and temporary 2.61.0.58 copy build all passed. Pending in-game acceptance on the refactored module. Co-authored-by: Alem Bek <[email protected]>
This commit is contained in:
1 parent
4999c7f5a3
commit
e8122d7c6b
12 files changed
+743
-20
No files matched your search
@@ -139,21 +139,8 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
// Unit::onEvent: receives hit events for every unit on a LocalMP host and falls through into
|
||||
// enemy parts-list and hit-camera special-event delivery even when the attacker is an AI unit.
|
||||
// 2.61.0.37: 0x103fbc0; 2.61.0.43: 0x1043fe0.
|
||||
"unit_on_event": {
|
||||
"variants": [
|
||||
{
|
||||
"written_for": "2.61.0.37",
|
||||
"locate": {
|
||||
"method": "signature",
|
||||
"pattern": "41 57 41 56 41 55 41 54 56 57 55 53 48 81 ec c8 04 00 00 44 0f 29 bc 24 b0 04 00 00 44 0f 29 b4 24 a0 04 00 00 44 0f 29 ac 24 90 04 00 00 44 0f 29 a4 24 80 04 00 00 44 0f 29 9c 24 70 04 00 00 44 0f 29 94 24 60 04 00 00 44 0f 29 8c 24 50 04 00 00 44 0f 29 84 24 40 04 00 00 0f 29 bc 24 30 04 00 00 0f 29 b4 24 20 04 00 00 48 89 d7 49 89 cd 0f b7 42 20"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
// Hit event attacker Unit* offset loaded before comparing against g_hero in Unit::onEvent.
|
||||
// Hit event attacker Unit* offset loaded before comparing against g_hero in Unit::onEvent
|
||||
// (unit_on_event is resolved in local_mp_core).
|
||||
// 2.61.0.37: 0x104495d (offender=0xd0); 2.61.0.43: 0x1048d7d (offender=0xd0).
|
||||
"hit_event_offender": {
|
||||
"variants": [
|
||||
|
||||
Reference in new issue
Block a user