Permalink
Browse files

Update cam2-5 mission.

- Make the structures up on the dam closest to the player LZ a base.
- Add a new proximity blip for said base.
- Make the main base cleanup larger to bring in several walls for
the auto-removal feature.
- When the main base is detected, make all droids not part of a group,
and capable of attacking ground units, into a group that attacks the
player.
- Factory throttles slightly lower now.
  • Loading branch information...
KJeff01 committed Jan 8, 2018
1 parent a67a46e commit 0ee481f258d93e737595a6f2b9d123652234ccc2
Showing with 51 additions and 25 deletions.
  1. +1 −0 data/base/messages/prox2-5.txt
  2. +44 −18 data/base/script/campaign/cam2-5.js
  3. +6 −7 data/base/wrf/cam2/sub2-5/labels.json
@@ -1,3 +1,4 @@
C25_OBJ1,1,ADD_MSG42,2,6720,1856,0,pcv654.ogg,0
C25_BASE1,1,ENEMYBASE_MSG,2,6592,832,0,pcv393.ogg,0
C25_BASE2,1,ENEMYBASE_MSG,2,5888,5120,0,pcv393.ogg,0
C25_LZ,1,LZ_MSG,2,1344,6848,0,pcv427.ogg,2
@@ -19,19 +19,35 @@ const COLLECTIVE_RES = [
camAreaEvent("factoryTrigger", function(droid)
{
camEnableFactory("COMediumFactory");
camEnableFactory("COCyborgFactoryL");
camEnableFactory("COCyborgFactoryR");
enableFactories();
camManageGroup(camMakeGroup("canalGuards"), CAM_ORDER_ATTACK, {
morale: 60,
fallback: camMakePos("mediumFactoryAssembly"),
repair: 30,
fallback: camMakePos("COMediumFactoryAssembly"),
repair: 67,
regroup: false,
});
});
camAreaEvent("damTrigger", function(droid)
function camEnemyBaseEliminated_COEastBase()
{
hackRemoveMessage("C25_OBJ1", PROX_MSG, CAM_HUMAN_PLAYER);
}
//Tell everything not grouped on map to attack
function camEnemyBaseDetected_COEastBase()
{
var droids = enumArea(0, 0, mapWidth, mapHeight, THE_COLLECTIVE, false).filter(function(obj) {
return obj.type === DROID && obj.group === null && obj.canHitGround;
});
camManageGroup(camMakeGroup(droids), CAM_ORDER_ATTACK, {
count: -1,
regroup: false,
repair: 80
});
}
function setupDamHovers()
{
camManageGroup(camMakeGroup("damGroup"), CAM_ORDER_PATROL, {
pos: [
@@ -41,22 +57,17 @@ camAreaEvent("damTrigger", function(droid)
],
//morale: 10,
//fallback: camMakePos("damWaypoint1"),
repair: 40,
repair: 67,
regroup: true,
});
});
function camEnemyBaseEliminated_COEastBase()
{
hackRemoveMessage("C25_OBJ1", PROX_MSG, CAM_HUMAN_PLAYER);
}
function setupCyborgsNorth()
{
camManageGroup(camMakeGroup("northCyborgs"), CAM_ORDER_ATTACK, {
morale: 70,
fallback: camMakePos("mediumFactoryAssembly"),
repair: 30,
fallback: camMakePos("COMediumFactoryAssembly"),
repair: 67,
regroup: false,
});
}
@@ -72,6 +83,13 @@ function setupCyborgsEast()
});
}
function enableFactories()
{
camEnableFactory("COMediumFactory");
camEnableFactory("COCyborgFactoryL");
camEnableFactory("COCyborgFactoryR");
}
function enableReinforcements()
{
playSound("pcv440.ogg"); // Reinforcements are available.
@@ -116,14 +134,20 @@ function eventStartLevel()
detectSnd: "pcv379.ogg",
eliminateSnd: "pcv394.ogg",
},
"CODamBase": {
cleanup: "damBaseCleanup",
detectMsg: "C25_BASE2",
detectSnd: "pcv379.ogg",
eliminateSnd: "pcv394.ogg",
},
});
with (camTemplates) camSetFactories({
"COMediumFactory": {
assembly: "COMediumFactoryAssembly",
order: CAM_ORDER_ATTACK,
groupSize: 4,
throttle: camChangeOnDiff(60000),
throttle: camChangeOnDiff(50000),
data: {
regroup: false,
repair: 20,
@@ -135,7 +159,7 @@ function eventStartLevel()
assembly: "COCyborgFactoryLAssembly",
order: CAM_ORDER_ATTACK,
groupSize: 5,
throttle: camChangeOnDiff(40000),
throttle: camChangeOnDiff(30000),
data: {
regroup: false,
repair: 30,
@@ -147,7 +171,7 @@ function eventStartLevel()
assembly: "COCyborgFactoryRAssembly",
order: CAM_ORDER_ATTACK,
groupSize: 5,
throttle: camChangeOnDiff(40000),
throttle: camChangeOnDiff(30000),
data: {
regroup: false,
repair: 30,
@@ -160,6 +184,8 @@ function eventStartLevel()
hackAddMessage("C25_OBJ1", PROX_MSG, CAM_HUMAN_PLAYER, true);
queue("enableReinforcements", 15000);
queue("setupDamHovers", 3000);
queue("setupCyborgsEast", camChangeOnDiff(180000));//3 min
queue("enableFactories", camChangeOnDiff(480000));//8 min
queue("setupCyborgsNorth", camChangeOnDiff(600000));//10 min
}
@@ -84,20 +84,19 @@
},
"area_6": {
"label": "baseCleanup",
"pos1": [5120, 0],
"pos1": [3200, 0],
"pos2": [7936, 3840]
},
"area_7": {
"label": "factoryTrigger",
"subscriber": 0,
"pos1": [0, 3500],
"pos2": [5312, 5200]
"pos1": [0, 5000],
"pos2": [7936, 5400]
},
"area_8": {
"label": "damTrigger",
"subscriber": 0,
"pos1": [5440, 6080],
"pos2": [5952, 7872]
"label": "damBaseCleanup",
"pos1": [5248, 4608],
"pos2": [6400, 5632]
},
"object_0": {

0 comments on commit 0ee481f

Please sign in to comment.