Permalink
Browse files

Group changes to cam2-b and cam3-b.

- Cam2-b: Ambush group no longer falls back and instead each unit will
go repair at low health. The middle base has a few droids that do
nothing so tell them to attack when that base is detected.

- Cam3-b: Set land phantom factory unit count to be 10-15 units and put
the rescue timer back to 30 minutes.
  • Loading branch information...
KJeff01 committed Jan 5, 2018
1 parent df29772 commit e424c73043f5eb46e61e0dfe69c0efb06065463b
Showing with 15 additions and 5 deletions.
  1. +13 −3 data/base/script/campaign/cam2-b.js
  2. +2 −2 data/base/script/campaign/cam3-b.js
@@ -34,6 +34,16 @@ camAreaEvent("factoryTrigger", function(droid)
function camEnemyBaseDetected_COMiddleBase()
{
hackRemoveMessage("C2B_OBJ1", PROX_MSG, CAM_HUMAN_PLAYER);
var droids = enumArea("base4Cleanup", THE_COLLECTIVE, false).filter(function(obj) {
return obj.type === DROID && obj.group === null;
});
camManageGroup(camMakeGroup(droids), CAM_ORDER_ATTACK, {
count: -1,
regroup: false,
repair: 67
});
}
function activateBase1Defenders()
@@ -67,9 +77,9 @@ function activateBase1Defenders2()
function ambushPlayer()
{
camManageGroup(camMakeGroup("centralBaseGroup"), CAM_ORDER_ATTACK, {
fallback: camMakePos("COCybFacR-b2Assembly"),
morale: 50,
count: -1,
regroup: false,
repair: 67
});
}
@@ -231,7 +241,7 @@ function eventStartLevel()
camEnableFactory("COCybFac-b4");
queue("transferPower", 2000);
queue("ambushPlayer", 10000); // 10 sec
queue("ambushPlayer", 3000); // 3 sec
queue("vtolAttack", camChangeOnDiff(240000)); //4 min
queue("activateBase1Defenders2", camChangeOnDiff(1200000)); //20 min.
queue("activateBase1Defenders", camChangeOnDiff(1800000)); //30 min.
@@ -79,7 +79,7 @@ function getDroidsForNXLZ(isTransport)
isTransport = false;
}
const COUNT = isTransport ? 10 : 8 + camRand(8);
const COUNT = isTransport ? 10 : 10 + camRand(6);
var units;
with (camTemplates) units = [nxcyrail, nxcyscou, nxcylas, nxmlinkh, nxmrailh, nxmsamh];
@@ -246,7 +246,7 @@ function eventStartLevel()
{
trapActive = false;
gammaAttackCount = 0;
const MISSION_TIME = camChangeOnDiff(1200); //20 minutes. Rescue part.
const MISSION_TIME = camChangeOnDiff(1800); //30 minutes. Rescue part.
var startpos = getObject("startPosition");
var lz = getObject("landingZone");

0 comments on commit e424c73

Please sign in to comment.