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
@@ -68,6 +68,7 @@
|
||||
#define LMP_MP_MGR_OFF_CHAT_HOST (g_lmp.mp_chat_host)
|
||||
|
||||
/* App and the economic state */
|
||||
#define LMP_APP_OFF_TERRAIN (g_lmp.app_terrain)
|
||||
#define LMP_APP_OFF_SCORE_RULES (g_lmp.app_score_rules)
|
||||
#define LMP_APP_OFF_ECON_HOLDER (g_lmp.app_econ_holder)
|
||||
#define LMP_ECON_HOLDER_OFF_STATE (g_lmp.econ_state)
|
||||
@@ -77,6 +78,7 @@
|
||||
#define LMP_REQ_OFF_SLOT_ID (g_lmp.req_slot_id)
|
||||
|
||||
/* MissionSettings and the matching info */
|
||||
#define LMP_MIS_OFF_MODE_NAME (g_lmp.mis_mode_name)
|
||||
#define LMP_MIS_OFF_AXIS_COUNTRY (g_lmp.mis_axis_country)
|
||||
#define LMP_MIS_OFF_ALLIES_COUNTRY (g_lmp.mis_allies_country)
|
||||
#define LMP_MIS_OFF_ARCADE_COUNTRY (g_lmp.mis_arcade_country)
|
||||
@@ -173,3 +175,31 @@
|
||||
|
||||
/* GameSaveData HUD script event queue */
|
||||
#define LMP_GSD_OFF_HUD_QUEUE (g_lmp.gsd_hud_queue)
|
||||
|
||||
/* Ground Arcade air events: DagorEngine library layouts (mpi::Message, FastNameMap) and captured
|
||||
* gameplay/MPlayer killstreak fields (local_mp_air_events.c). */
|
||||
#define LMP_MPI_MSG_OFF_OBJ 0x08u
|
||||
#define LMP_MPI_MSG_OFF_ID 0x20u
|
||||
#define LMP_MPI_MSG_UNIT_RESPAWN 0xf030u
|
||||
#define LMP_NAMEMAP_OFF_ENTRIES 0x00u
|
||||
#define LMP_NAMEMAP_OFF_COUNT 0x08u
|
||||
#define LMP_NAMEMAP_OFF_TAIL_PAGE 0x10u
|
||||
#define LMP_NAMEMAP_OFF_PAGES 0x20u
|
||||
#define LMP_NAMEMAP_OFF_PAGE_COUNT 0x28u
|
||||
#define LMP_NAMEMAP_OFF_SHIFT 0x32u
|
||||
#define LMP_KS_RULE_STRIDE 0x90u
|
||||
#define LMP_KS_PROGRESS_STRIDE 0x10u
|
||||
#define LMP_KS_SP_OFF_MIN_RANK 0x00u
|
||||
#define LMP_KS_SP_OFF_MAX_RANK 0x04u
|
||||
#define LMP_KS_SP_OFF_INIT_DIST 0x08u
|
||||
#define LMP_KS_SP_OFF_INIT_ALT 0x0cu
|
||||
#define LMP_KS_SP_OFF_INIT_SPEED_KMH 0x48u
|
||||
#define LMP_GP_OFF_KS_RULES (g_lmp.gp_ks_rules)
|
||||
#define LMP_GP_OFF_KS_RULE_COUNT (g_lmp.gp_ks_rule_count)
|
||||
#define LMP_KS_RULE_OFF_TAG (g_lmp.ks_rule_tag)
|
||||
#define LMP_KS_RULE_OFF_AIR_AI_MULT (g_lmp.ks_rule_air_ai_mult)
|
||||
#define LMP_KS_RULE_OFF_GROUND_AI_MULT (g_lmp.ks_rule_ground_ai_mult)
|
||||
#define LMP_KS_RULE_OFF_SPAWN_POS (g_lmp.ks_rule_spawn_pos)
|
||||
#define LMP_KS_RULE_OFF_SPAWN_POS_CNT (g_lmp.ks_rule_spawn_pos_count)
|
||||
#define LMP_KS_SPAWN_POS_STRIDE (g_lmp.ks_spawn_pos_stride)
|
||||
#define LMP_MP_OFF_KS_PROGRESS (g_lmp.mp_ks_progress)
|
||||
Reference in new issue
Block a user