Send gameModeName so the native mission support plane is enabled

The 2.61.0.37 mission loader looks up the gameplay.blk missionSupportPlane
preset by the mission's gameModeName; without it the native nuclear carrier
is never assigned, so no action bar item and no instant-win bomb.
This commit is contained in:
N0VAN0M4LY committed 2026-11-28 17:05:35 +08:00
1 parent bfb97de6c7
commit 7d29723f0d
1 file changed
+4
@@ -45,6 +45,10 @@ export function battleMissionSettings(plan: BattleLaunchPlan, scores: Readonly<R
setParam(settings, 'localMP', flag(true));
setParam(settings, 'name', text(plan.missionName));
setParam(settings, 'economicName', text(plan.economicName));
// The 2.61.0.37 mission loader keeps gameModeName (MissionSettings+0x48) and looks up the
// gameplay.blk missionSupportPlane preset by it (0x1269aff), which drives the native nuclear
// carrier: assignment at the show threshold, the action bar item and the support unit spawn.
setParam(settings, 'gameModeName', text(plan.modeName));
setParam(settings, 'mis_file', text(plan.missionFile));
setParam(settings, 'chapter', text('skirmish'));
setParam(settings, 'type', text(plan.missionType));