Permalink
Browse files

Improve a few more Gamma missions.

- Cam3-b: Nexus transporter does not land in bases that have been
destroyed anymore. Do not send a phantom factory group right away when
the trap is entered. And reduce the maximum amount of droids from said group.

- Cam3-ab: Do not send another phantom factory group shortly after the
previous one. Again, reduce amount of maximum droids in a group.
  • Loading branch information...
KJeff01 committed Jan 3, 2018
1 parent c7bb50b commit beba57fb74729eea8614e3eb32baa6dabc95ac26
Showing with 19 additions and 16 deletions.
  1. +3 −11 data/base/script/campaign/cam3-ab.js
  2. +16 −5 data/base/script/campaign/cam3-b.js
@@ -32,7 +32,7 @@ camAreaEvent("vtolRemoveZone", function(droid)
function sendEdgeMapDroids()
{
const COUNT = 13 + camRand(8); // 13 - 20.
const COUNT = 10 + camRand(6); // 10 - 15.
const EDGE = ["SWPhantomFactory", "NWPhantomFactory"];
var list; with (camTemplates) list = [
nxcyrail, nxcyscou, nxcylas, nxlflash, nxmrailh, nxmlinkh, nxmscouh,
@@ -69,15 +69,7 @@ function sendEdgeMapDroids()
edgeMapCounter = 0;
}
//If the counter is zero, then a whole pass has completed. Then wait longer to send more.
if (!edgeMapCounter)
{
queue("sendEdgeMapDroids", camChangeOnDiff(240000)); // ~4 min.
}
else
{
queue("sendEdgeMapDroids", camChangeOnDiff(5000)); // 5 sec.
}
queue("sendEdgeMapDroids", camChangeOnDiff(240000)); // 4 min.
}
//Setup Nexus VTOL hit and runners. NOTE: These do not go away in this mission.
@@ -148,10 +140,10 @@ function eventStartLevel()
winFlag = false;
vtolAttack();
sendEdgeMapDroids();
camHackIntoPlayer(CAM_HUMAN_PLAYER, NEXUS, true);
queue("powerTransfer", 800);
queue("synapticsSound", 5000);
queue("hackPlayer", 8000);
queue("sendEdgeMapDroids", 15000); // 15 sec
}
@@ -90,9 +90,21 @@ function sendNXTransporter()
}
const LZ_ALIAS = "CM3B_TRANS"; //1 and 2
var lzNum = camRand(2) + 1;
var list = getDroidsForNXLZ(true);
var pos = (lzNum === 1) ? "nexusEastTransportPos" : "nexusWestTransportPos";
var lzNum;
var pos;
if (enumArea("NXEastBaseCleanup", NEXUS, false).length)
{
lzNum = 1;
pos = "nexusEastTransportPos";
}
if (enumArea("NXWestBaseCleanup", NEXUS, false).length && (camRand(2) || !camDef(pos)))
{
lzNum = 2;
pos = "nexusWestTransportPos";
}
camSendReinforcement(NEXUS, camMakePos(pos), list,
CAM_REINFORCE_TRANSPORT, {
@@ -105,7 +117,7 @@ function sendNXTransporter()
queue("sendNXTransporter", camChangeOnDiff(180000)); //3 min
}
//Send Nexus transport units
//Send Nexus land units
function sendNXlandReinforcements()
{
if (!enumArea("NXWestBaseCleanup", NEXUS, false).length)
@@ -188,11 +200,10 @@ function trapSprung()
hackRemoveMessage("CM3B_GAMMABASE", PROX_MSG, CAM_HUMAN_PLAYER);
setMissionTime(camChangeOnDiff(5400));
camCallOnce("activateNexusGroups");
enableAllFactories();
sendNXlandReinforcements();
queue("sendNXlandReinforcements", camChangeOnDiff(240000)); // 4 min
sendNXTransporter();
changePlayerColour(GAMMA, NEXUS); // Black painting.
playSound(SYNAPTICS_ACTIVATED);

0 comments on commit beba57f

Please sign in to comment.