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
@@ -95,6 +95,8 @@ static void record_enemy_kill(uint8_t *killer_mp, uint8_t *victim, int is_pvp)
|
||||
|
||||
if (local_mp_is_local_mplayer(killer_mp)) {
|
||||
LocalMpAwardEvent award = { ev, victim, is_pvp, 0, own_sev ? "from_severe_damage" : NULL, 0 };
|
||||
if (!is_ship && !is_human)
|
||||
local_mp_credit_air_event_kill(killer_mp, is_air);
|
||||
local_mp_report_award_event(&award);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user