Permalink
Browse files

Fix LZ selection for cam1-ca mission.

It was possible to obstruct each LZ with droids. Doing so would
prevent the New Paradigm transporter from arriving.
  • Loading branch information...
KJeff01 committed Nov 23, 2017
1 parent 6c19b8d commit bd752be52f1c4d8d755c7bad3c9953b4eac0af8b
Showing with 7 additions and 3 deletions.
  1. +7 −3 data/base/script/campaign/cam1ca.js
@@ -61,13 +61,17 @@ function sendTransport()
var lz = landingZoneList[i];
if (enumArea(lz, CAM_HUMAN_PLAYER, false).length === 0)
{
list[list.length] = { idx: i, label: lz };
list.push({ idx: i, label: lz });
}
}
//If all are compromised then choose the LZ randomly
if (list.length === 0)
{
queue('sendTransport', 10000);
return;
for (var i = 0; i < 2; ++i)
{
var rnd = camRand(landingZoneList.length);
list.push({ idx: rnd, label: landingZoneList[rnd] });
}
}
var picked = list[camRand(list.length)];
lastLZ = picked.idx;

0 comments on commit bd752be

Please sign in to comment.