fix(battle): send the game mode name for mission support planes
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:
1 parent
b059e464a9
commit
8fc96d6483
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));
|
||||
|
||||
Reference in new issue
Block a user