Skip to content

Commit

Permalink
Update Gamma cam3-4 mission labels and script.
Browse files Browse the repository at this point in the history
- New assemblies and truck timer change from alfred007.
- Reset power for Nexus every 5 minutes.
  • Loading branch information
KJeff01 committed Jan 22, 2018
1 parent 64c1b8c commit be3858f
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 2 deletions.
20 changes: 19 additions & 1 deletion data/base/script/campaign/cam3-4.js
Expand Up @@ -114,7 +114,14 @@ function truckDefense()
}
}

queue("truckDefense", 300000); // 5 min
queue("truckDefense", camChangeOnDiff(300000)); // 5 min
}

//This mission has a heavy load on resources for Nexus so reset it every so often.
function resetNexusPower()
{
setPower(AI_POWER, NEXUS);
queue("resetNexusPower", 300000); // 5 min
}

function eventStartLevel()
Expand Down Expand Up @@ -188,6 +195,7 @@ function eventStartLevel()

with (camTemplates) camSetFactories({
"NX-NWFactory1": {
assembly: "NX-NWFactory1Assembly",
order: CAM_ORDER_ATTACK,
groupSize: 6,
throttle: camChangeOnDiff(40000),
Expand All @@ -199,6 +207,7 @@ function eventStartLevel()
templates: [nxhgauss, nxmpulseh, nxmscouh, nxmsamh, nxmstrike]
},
"NX-NWFactory2": {
assembly: "NX-NWFactory2Assembly",
order: CAM_ORDER_ATTACK,
groupSize: 6,
throttle: camChangeOnDiff(40000),
Expand All @@ -210,6 +219,7 @@ function eventStartLevel()
templates: [nxhgauss, nxmpulseh, nxmscouh, nxmsamh, nxmstrike]
},
"NX-NWCyborgFactory": {
assembly: "NX-NWCyborgFactoryAssembly",
order: CAM_ORDER_ATTACK,
groupSize: 5,
throttle: camChangeOnDiff(30000),
Expand All @@ -221,6 +231,7 @@ function eventStartLevel()
templates: [nxcyrail, nxcyscou, nxcylas]
},
"NX-NEFactory": {
assembly: "NX-NEFactoryAssembly",
order: CAM_ORDER_ATTACK,
groupSize: 4,
throttle: camChangeOnDiff(30000),
Expand All @@ -232,6 +243,7 @@ function eventStartLevel()
templates: [nxhgauss, nxmpulseh, nxmscouh, nxmsamh, nxmstrike]
},
"NX-SWFactory": {
assembly: "NX-SWFactoryAssembly",
order: CAM_ORDER_PATROL,
groupSize: 4,
throttle: camChangeOnDiff(60000),
Expand All @@ -251,6 +263,7 @@ function eventStartLevel()
templates: [nxmlinkh, nxllinkh] //Nexus link factory
},
"NX-SWCyborgFactory1": {
assembly: "NX-SWCyborgFactory1Assembly",
order: CAM_ORDER_ATTACK,
groupSize: 5,
throttle: camChangeOnDiff(35000),
Expand All @@ -262,6 +275,7 @@ function eventStartLevel()
templates: [nxcyrail, nxcyscou, nxcylas]
},
"NX-SWCyborgFactory2": {
assembly: "NX-SWCyborgFactory2Assembly",
order: CAM_ORDER_ATTACK,
groupSize: 5,
throttle: camChangeOnDiff(35000),
Expand All @@ -273,6 +287,7 @@ function eventStartLevel()
templates: [nxcyrail, nxcyscou, nxcylas]
},
"NX-SEFactory": {
assembly: "NX-SEFactoryAssembly",
order: CAM_ORDER_PATROL,
groupSize: 5,
throttle: camChangeOnDiff(30000),
Expand All @@ -289,6 +304,7 @@ function eventStartLevel()
templates: [nxhgauss, nxmpulseh, nxmscouh, nxmsamh, nxmstrike]
},
"NX-VtolFactory1": {
assembly: "NX-VtolFactory1Assembly",
order: CAM_ORDER_ATTACK,
groupSize: 5,
throttle: camChangeOnDiff(60000),
Expand All @@ -300,6 +316,7 @@ function eventStartLevel()
templates: [nxmheapv, nxlscouv]
},
"NX-VtolFactory2": {
assembly: "NX-VtolFactory2Assembly",
order: CAM_ORDER_ATTACK,
groupSize: 5,
throttle: camChangeOnDiff(50000),
Expand All @@ -326,5 +343,6 @@ function eventStartLevel()
hackAddMessage("CM34_OBJ1", PROX_MSG, CAM_HUMAN_PLAYER);

queue("enableReinforcements", 16000);
queue("resetNexusPower", 300000); // 5 min
queue("enableAllFactories", camChangeOnDiff(600000)); // 10 min.
}
42 changes: 41 additions & 1 deletion data/base/wrf/cam3/cam3-4/labels.json
Expand Up @@ -67,6 +67,46 @@
"label": "NWPatrolPos3",
"pos": [704, 4160]
},
"position_17": {
"label": "NX-NWFactory1Assembly",
"pos": [1728, 2752]
},
"position_18": {
"label": "NX-NWFactory2Assembly",
"pos": [1984, 2368]
},
"position_19": {
"label": "NX-NEFactoryAssembly",
"pos": [8640, 4288]
},
"position_20": {
"label": "NX-SWFactoryAssembly",
"pos": [3008, 8768]
},
"position_21": {
"label": "NX-SEFactoryAssembly",
"pos": [10816, 11328]
},
"position_22": {
"label": "NX-VtolFactory1Assembly",
"pos": [6208, 11456]
},
"position_23": {
"label": "NX-VtolFactory2Assembly",
"pos": [7616, 11456]
},
"position_24": {
"label": "NX-NWCyborgFactoryAssembly",
"pos": [1344, 1600]
},
"position_25": {
"label": "NX-SWCyborgFactory1Assembly",
"pos": [1856, 10944]
},
"position_26": {
"label": "NX-SWCyborgFactory2Assembly",
"pos": [1856, 11584]
},

"area_0": {
"label": "landingZone",
Expand Down Expand Up @@ -101,7 +141,7 @@
"area_6": {
"label": "factoryTriggerW",
"subscriber": 0,
"pos1": [8567, 0],
"pos1": [8576, 0],
"pos2": [9216, 2560]
},
"area_7": {
Expand Down

0 comments on commit be3858f

Please sign in to comment.