Skip to content

Commit

Permalink
Create LZ areas for the AI in Beta.
Browse files Browse the repository at this point in the history
  • Loading branch information
KJeff01 committed Feb 17, 2018
1 parent 8b1e581 commit 8ff5503
Show file tree
Hide file tree
Showing 26 changed files with 82 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/base/script/campaign/cam2-1s.js
Expand Up @@ -14,6 +14,7 @@ function eventStartLevel()
centreView(88, 101);
//Setup Landing Zone
setNoGoArea(86, 99, 88, 101, CAM_HUMAN_PLAYER);
setNoGoArea(49, 83, 51, 85, THE_COLLECTIVE);
//Set Mission Time
setMissionTime(camChangeOnDiff(1800));
//Give player briefings
Expand Down
3 changes: 3 additions & 0 deletions data/base/script/campaign/cam2-1x.js
Expand Up @@ -127,6 +127,9 @@ function eventStartLevel()
startTransporterEntry(tent.x, tent.y, CAM_HUMAN_PLAYER);
setTransporterExit(text.x, text.y, CAM_HUMAN_PLAYER);

var enemyLz = getObject("COLandingZone");
setNoGoArea(enemyLz.x, enemyLz.y, enemyLz.x2, enemyLz.y2, THE_COLLECTIVE);

//Add crash site blip and from an alliance with the crashed team.
hackAddMessage("C21_OBJECTIVE", PROX_MSG, CAM_HUMAN_PLAYER, true);
setAlliance(CAM_HUMAN_PLAYER, TRANSPORT_TEAM, true);
Expand Down
3 changes: 3 additions & 0 deletions data/base/script/campaign/cam2-2.js
Expand Up @@ -177,6 +177,9 @@ function eventStartLevel()
startTransporterEntry(tent.x, tent.y, CAM_HUMAN_PLAYER);
setTransporterExit(text.x, text.y, CAM_HUMAN_PLAYER);

var enemyLz = getObject("COLandingZone");
setNoGoArea(enemyLz.x, enemyLz.y, enemyLz.x2, enemyLz.y2, THE_COLLECTIVE);

camSetArtifacts({
"COCommander": { tech: "R-Wpn-RocketSlow-Accuracy03" },
});
Expand Down
1 change: 1 addition & 0 deletions data/base/script/campaign/cam2-2s.js
Expand Up @@ -5,6 +5,7 @@ function eventStartLevel()
camSetupTransporter(87, 100, 70, 1);
centreView(88, 101);
setNoGoArea(86, 99, 88, 101, CAM_HUMAN_PLAYER);
setNoGoArea(49, 83, 51, 85, THE_COLLECTIVE);
setMissionTime(camChangeOnDiff(4200)); // 1 hour. 10 minutes
camPlayVideos(["MB2_2_MSG", "MB2_2_MSG2", "MB2_2_MSG3"]);
camSetStandardWinLossConditions(CAM_VICTORY_PRE_OFFWORLD, "SUB_2_2");
Expand Down
3 changes: 3 additions & 0 deletions data/base/script/campaign/cam2-5.js
Expand Up @@ -117,6 +117,9 @@ function eventStartLevel()
startTransporterEntry(tent.x, tent.y, CAM_HUMAN_PLAYER);
setTransporterExit(text.x, text.y, CAM_HUMAN_PLAYER);

var enemyLz = getObject("COLandingZone");
setNoGoArea(enemyLz.x, enemyLz.y, enemyLz.x2, enemyLz.y2, THE_COLLECTIVE);

camSetArtifacts({
"NuclearReactor": { tech: "R-Struc-Power-Upgrade01" },
"COMediumFactory": { tech: "R-Wpn-Cannon4AMk1" },
Expand Down
1 change: 1 addition & 0 deletions data/base/script/campaign/cam2-5s.js
Expand Up @@ -5,6 +5,7 @@ function eventStartLevel()
camSetupTransporter(87, 100, 32, 1);
centreView(88, 101);
setNoGoArea(86, 99, 88, 101, CAM_HUMAN_PLAYER);
setNoGoArea(49, 83, 51, 85, THE_COLLECTIVE);
setMissionTime(camChangeOnDiff(3600)); // 1 hour
camPlayVideos(["MB2_5_MSG", "MB2_5_MSG2"]);
camSetStandardWinLossConditions(CAM_VICTORY_PRE_OFFWORLD, "SUB_2_5");
Expand Down
3 changes: 3 additions & 0 deletions data/base/script/campaign/cam2-6.js
Expand Up @@ -119,6 +119,9 @@ function eventStartLevel()
startTransporterEntry(tent.x, tent.y, CAM_HUMAN_PLAYER);
setTransporterExit(text.x, text.y, CAM_HUMAN_PLAYER);

var enemyLz = getObject("COLandingZone");
setNoGoArea(enemyLz.x, enemyLz.y, enemyLz.x2, enemyLz.y2, THE_COLLECTIVE);

camSetArtifacts({
"COCyborgFactory-Arti": { tech: "R-Wpn-Rocket07-Tank-Killer" },
"COCommandCenter": { tech: "R-Wpn-Mortar3" },
Expand Down
1 change: 1 addition & 0 deletions data/base/script/campaign/cam2-6s.js
Expand Up @@ -5,6 +5,7 @@ function eventStartLevel()
camSetupTransporter(87, 100, 16, 126);
centreView(88, 101);
setNoGoArea(86, 99, 88, 101, CAM_HUMAN_PLAYER);
setNoGoArea(49, 83, 51, 85, THE_COLLECTIVE);
setMissionTime(camChangeOnDiff(3600)); // 1 hour.
camPlayVideos(["MB2_6_MSG", "MB2_6_MSG2", "MB2_6_MSG3"]);
camSetStandardWinLossConditions(CAM_VICTORY_PRE_OFFWORLD, "SUB_2_6");
Expand Down
3 changes: 3 additions & 0 deletions data/base/script/campaign/cam2-7.js
Expand Up @@ -116,6 +116,9 @@ function eventStartLevel()
startTransporterEntry(tent.x, tent.y, CAM_HUMAN_PLAYER);
setTransporterExit(text.x, text.y, CAM_HUMAN_PLAYER);

var enemyLz = getObject("COLandingZone");
setNoGoArea(enemyLz.x, enemyLz.y, enemyLz.x2, enemyLz.y2, THE_COLLECTIVE);

camSetArtifacts({
"COHeavyFac-Arti-b2": { tech: "R-Wpn-Cannon5" },
"COTankKillerHardpoint": { tech: "R-Wpn-RocketSlow-ROF03" },
Expand Down
1 change: 1 addition & 0 deletions data/base/script/campaign/cam2-7s.js
Expand Up @@ -5,6 +5,7 @@ function eventStartLevel()
camSetupTransporter(87, 100, 100, 1);
centreView(88, 101);
setNoGoArea(86, 99, 88, 101, CAM_HUMAN_PLAYER);
setNoGoArea(49, 83, 51, 85, THE_COLLECTIVE);
setMissionTime(camChangeOnDiff(5400)); // 1 hour - 30 minutes.
camPlayVideos(["MB2_7_MSG", "MB2_7_MSG2"]);
camSetStandardWinLossConditions(CAM_VICTORY_PRE_OFFWORLD, "SUB_2_7");
Expand Down
3 changes: 3 additions & 0 deletions data/base/script/campaign/cam2-8.js
Expand Up @@ -111,6 +111,9 @@ function eventStartLevel()
startTransporterEntry(tent.x, tent.y, CAM_HUMAN_PLAYER);
setTransporterExit(text.x, text.y, CAM_HUMAN_PLAYER);

var enemyLz = getObject("COLandingZone");
setNoGoArea(enemyLz.x, enemyLz.y, enemyLz.x2, enemyLz.y2, THE_COLLECTIVE);

camSetArtifacts({
"COVtolFac-b3": { tech: "R-Vehicle-Body09" }, //Tiger body
"COHeavyFacL-b2": { tech: "R-Wpn-HvyHowitzer" },
Expand Down
1 change: 1 addition & 0 deletions data/base/script/campaign/cam2-8s.js
Expand Up @@ -5,6 +5,7 @@ function eventStartLevel()
camSetupTransporter(87, 100, 126, 60);
centreView(88, 101);
setNoGoArea(86, 99, 88, 101, CAM_HUMAN_PLAYER);
setNoGoArea(49, 83, 51, 85, THE_COLLECTIVE);
setMissionTime(camChangeOnDiff(3600)); // 1 hour.
camPlayVideos(["MB2_8_MSG", "MB2_8_MSG2"]);
camSetStandardWinLossConditions(CAM_VICTORY_PRE_OFFWORLD, "SUB_2_8");
Expand Down
3 changes: 3 additions & 0 deletions data/base/script/campaign/cam2-b.js
Expand Up @@ -120,6 +120,9 @@ function eventStartLevel()
centreView(startpos.x, startpos.y);
setNoGoArea(lz.x, lz.y, lz.x2, lz.y2, CAM_HUMAN_PLAYER);

var enemyLz = getObject("COLandingZone");
setNoGoArea(enemyLz.x, enemyLz.y, enemyLz.x2, enemyLz.y2, THE_COLLECTIVE);

setMissionTime(camChangeOnDiff(7200)); // 2 hr.
camPlayVideos(["MB2_B_MSG", "MB2_B_MSG2"]);

Expand Down
3 changes: 3 additions & 0 deletions data/base/script/campaign/cam2-c.js
Expand Up @@ -282,6 +282,9 @@ function eventStartLevel()
centreView(startpos.x, startpos.y);
setNoGoArea(lz.x, lz.y, lz.x2, lz.y2, CAM_HUMAN_PLAYER);

var enemyLz = getObject("COLandingZone");
setNoGoArea(enemyLz.x, enemyLz.y, enemyLz.x2, enemyLz.y2, THE_COLLECTIVE);

camSetArtifacts({
"rippleRocket": { tech: "R-Wpn-Rocket06-IDF" },
"quadbof": { tech: "R-Wpn-AAGun02" },
Expand Down
3 changes: 3 additions & 0 deletions data/base/script/campaign/cam2-d.js
Expand Up @@ -103,6 +103,9 @@ function eventStartLevel()
startTransporterEntry(tent.x, tent.y, CAM_HUMAN_PLAYER);
setTransporterExit(text.x, text.y, CAM_HUMAN_PLAYER);

var enemyLz = getObject("COLandingZone");
setNoGoArea(enemyLz.x, enemyLz.y, enemyLz.x2, enemyLz.y2, THE_COLLECTIVE);

camSetArtifacts({
"COCommandCenter": { tech: "R-Struc-VTOLPad-Upgrade01" },
"COResearchLab": { tech: "R-Struc-Research-Upgrade04" },
Expand Down
1 change: 1 addition & 0 deletions data/base/script/campaign/cam2-ds.js
Expand Up @@ -6,6 +6,7 @@ function eventStartLevel()
camSetupTransporter(87, 100, 1, 100);
centreView(88, 101);
setNoGoArea(86, 99, 88, 101, CAM_HUMAN_PLAYER);
setNoGoArea(49, 83, 51, 85, THE_COLLECTIVE);
setMissionTime(camChangeOnDiff(4500)); // 1 hour, 15 minutes.
camPlayVideos(["MB2_DI_MSG", "MB2_DI_MSG2"]);
camSetStandardWinLossConditions(CAM_VICTORY_PRE_OFFWORLD, "SUB_2D");
Expand Down
3 changes: 3 additions & 0 deletions data/base/script/campaign/cam2-end.js
Expand Up @@ -160,6 +160,9 @@ function eventStartLevel()
setNoGoArea(lz.x, lz.y, lz.x2, lz.y2, CAM_HUMAN_PLAYER);
camSetupTransporter(tCoords.xStart, tCoords.yStart, tCoords.xOut, tCoords.yOut);

var enemyLz = {"x": 49, "y": 83, "x2": 51, "y2": 85};
setNoGoArea(enemyLz.x, enemyLz.y, enemyLz.x2, enemyLz.y2, THE_COLLECTIVE);

setMissionTime(1800); // 30 min.
camCompleteRequiredResearch(COLLECTIVE_RES, THE_COLLECTIVE);

Expand Down
5 changes: 5 additions & 0 deletions data/base/wrf/cam2/cam2b/labels.json
Expand Up @@ -142,6 +142,11 @@
"pos1": [8128, 4672],
"pos2": [16064, 5824]
},
"area_9": {
"label": "COLandingZone",
"pos1": [14464, 14464],
"pos2": [15360, 15360]
},

"object_0": {
"label": "COHeavyFacL-b1",
Expand Down
5 changes: 5 additions & 0 deletions data/base/wrf/cam2/cam2c/labels.json
Expand Up @@ -163,6 +163,11 @@
"pos1": [2432, 7808],
"pos2": [6016, 8832]
},
"area_13": {
"label": "COLandingZone",
"pos1": [6272, 10624],
"pos2": [6528, 10880]
},

"object_0": {
"label": "rippleRocket",
Expand Down
5 changes: 5 additions & 0 deletions data/base/wrf/cam2/sub2-1/labels.json
Expand Up @@ -65,6 +65,11 @@
"pos1": [192, 6720],
"pos2": [1856, 8000]
},
"area_8": {
"label": "COLandingZone",
"pos1": [1152, 1152],
"pos2": [1408, 1408]
},

"object_0": {
"label": "transporter",
Expand Down
5 changes: 5 additions & 0 deletions data/base/wrf/cam2/sub2-2/labels.json
Expand Up @@ -99,6 +99,11 @@
"pos1": [320, 6080],
"pos2": [8192, 6336]
},
"area_6": {
"label": "COLandingZone",
"pos1": [6144, 1280],
"pos2": [8272, 1536]
},

"object_0": {
"label": "COCommander",
Expand Down
5 changes: 5 additions & 0 deletions data/base/wrf/cam2/sub2-5/labels.json
Expand Up @@ -98,6 +98,11 @@
"pos1": [5248, 4608],
"pos2": [6400, 5632]
},
"area_9": {
"label": "COLandingZone",
"pos1": [6272, 896],
"pos2": [6528, 1152]
},

"object_0": {
"label": "COMediumFactory",
Expand Down
5 changes: 5 additions & 0 deletions data/base/wrf/cam2/sub2-6/labels.json
Expand Up @@ -111,6 +111,11 @@
"pos1": [960, 5184],
"pos2": [4160, 6080]
},
"area_10": {
"label": "COLandingZone",
"pos1": [7040, 1664],
"pos2": [7296, 1920]
},

"object_0": {
"label": "COCommandCenter",
Expand Down
5 changes: 5 additions & 0 deletions data/base/wrf/cam2/sub2-7/labels.json
Expand Up @@ -93,6 +93,11 @@
"pos1": [1920, 2560],
"pos2": [2432, 3072]
},
"area_9": {
"label": "COLandingZone",
"pos1": [2944, 1408],
"pos2": [3200, 1664]
},

"object_0": {
"label": "COCommandCenter",
Expand Down
5 changes: 5 additions & 0 deletions data/base/wrf/cam2/sub2-8/labels.json
Expand Up @@ -92,6 +92,11 @@
"pos1": [960, 6464],
"pos2": [1472, 6976]
},
"area_8": {
"label": "COLandingZone",
"pos1": [512, 640],
"pos2": [768, 896]
},

"object_0": {
"label": "COCyborgFac-b1",
Expand Down
5 changes: 5 additions & 0 deletions data/base/wrf/cam2/sub2-d/labels.json
Expand Up @@ -68,6 +68,11 @@
"pos1": [4200, 4200],
"pos2": [5400, 5400]
},
"area_4": {
"label": "COLandingZone",
"pos1": [5376, 3584],
"pos2": [5632, 3840]
},

"object_0": {
"label": "COCommandCenter",
Expand Down

0 comments on commit 8ff5503

Please sign in to comment.