Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Campaign videos handled in libcampaign.
- cam1-7: Make artifact group move at different times depending on difficulty. - cam2-6: Add two VTOL rearming pads for the VTOL droids on map and use water triangle correction and move or remove overlapped objects. Remove truck management. Detecting the main base activates the scouts and defenders and enables the rest of the factories. - Reduce repeated, and ugly, code relating to playing video sequences. Now it is all handled by the campaign library.
- Loading branch information
Showing
44 changed files
with
139 additions
and
464 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,11 @@ | ||
include("script/campaign/libcampaign.js"); | ||
|
||
var index; | ||
|
||
function eventVideoDone() | ||
{ | ||
const VIDEOS = ["SB1_7_MSG", "SB1_7_MSG2"]; | ||
if (!camDef(index)) | ||
{ | ||
index = 0; | ||
} | ||
|
||
if (index < VIDEOS.length) | ||
{ | ||
hackAddMessage(VIDEOS[index], MISS_MSG, CAM_HUMAN_PLAYER, true); | ||
index = index + 1; | ||
} | ||
} | ||
|
||
function eventStartLevel() | ||
{ | ||
camSetupTransporter(11, 52, 55, 1); | ||
centreView(13, 52); | ||
setNoGoArea(10, 51, 12, 53, CAM_HUMAN_PLAYER); | ||
setMissionTime(camChangeOnDiff(1800)); //30 min | ||
eventVideoDone(); | ||
camPlayVideos(["SB1_7_MSG", "SB1_7_MSG2"]); | ||
camSetStandardWinLossConditions(CAM_VICTORY_PRE_OFFWORLD, "SUB_1_7"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,11 @@ | ||
include("script/campaign/libcampaign.js"); | ||
|
||
var index; | ||
|
||
function eventVideoDone() | ||
{ | ||
const VIDEOS = ["MB1D_MSG", "MB1D_MSG2"]; | ||
if (!camDef(index)) | ||
{ | ||
index = 0; | ||
} | ||
|
||
if (index < VIDEOS.length) | ||
{ | ||
hackAddMessage(VIDEOS[index], MISS_MSG, CAM_HUMAN_PLAYER, true); | ||
index = index + 1; | ||
} | ||
} | ||
|
||
|
||
function eventStartLevel() | ||
{ | ||
camSetupTransporter(11, 52, 126, 112); | ||
centreView(13, 52); | ||
setNoGoArea(10, 51, 12, 53, CAM_HUMAN_PLAYER); | ||
setMissionTime(camChangeOnDiff(7200)); //2 hours | ||
eventVideoDone(); | ||
camPlayVideos(["MB1D_MSG", "MB1D_MSG2"]); | ||
camSetStandardWinLossConditions(CAM_VICTORY_PRE_OFFWORLD, "SUB_1_D"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,11 @@ | ||
include("script/campaign/libcampaign.js"); | ||
|
||
var index; | ||
|
||
function eventVideoDone() | ||
{ | ||
const VIDEOS = ["CAM1_OUT", "CAM1_OUT2", "CAM2_BRIEF"]; | ||
if (!camDef(index)) | ||
{ | ||
index = 0; | ||
} | ||
|
||
if (index < VIDEOS.length) | ||
{ | ||
hackAddMessage(VIDEOS[index], MISS_MSG, CAM_HUMAN_PLAYER, true); | ||
index = index + 1; | ||
} | ||
} | ||
|
||
function eventStartLevel() | ||
{ | ||
camSetupTransporter(11, 52, 40, 1); | ||
centreView(13, 52); | ||
setNoGoArea(10, 51, 12, 53, CAM_HUMAN_PLAYER); | ||
setMissionTime(900); //15 min | ||
eventVideoDone(); | ||
camPlayVideos(["CAM1_OUT", "CAM1_OUT2", "CAM2_BRIEF"]); | ||
camSetStandardWinLossConditions(CAM_VICTORY_PRE_OFFWORLD, "CAM_2A"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.