Skip to content

Commit

Permalink
Group changes to cam2-b and cam3-b.
Browse files Browse the repository at this point in the history
- 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 e424c73
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
16 changes: 13 additions & 3 deletions data/base/script/campaign/cam2-b.js
Expand Up @@ -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()
Expand Down Expand Up @@ -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
});
}

Expand Down Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions data/base/script/campaign/cam3-b.js
Expand Up @@ -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];

Expand Down Expand Up @@ -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");

Expand Down

0 comments on commit e424c73

Please sign in to comment.