Permalink
Browse files

Cleanup a few campaign scripts.

Remove redundant fail sounds for some missions and commented code.
  • Loading branch information...
KJeff01 committed Jan 11, 2018
1 parent 493bf7e commit 579995746d5e9f2c4f8dde87bd5bd0897a59d629
@@ -119,8 +119,6 @@ function checkCrashedTeam()
{
if (getObject("transporter") === null)
{
const BADSND = "pcv622.ogg";
playSound(BADSND);
return false;
}
@@ -106,18 +106,6 @@ function activateGroups()
regroup: false,
});
/*
camManageGroup(camMakeGroup("defensegroup1"), CAM_ORDER_PATROL, {
pos: [
camMakePos("defensePoint1"),
camMakePos("defensePoint2"),
],
//morale: 50,
interval: 25000,
regroup: false,
});
*/
camManageGroup(camMakeGroup("vtolGroup1"), CAM_ORDER_PATROL, {
pos: [
//camMakePos("VtolWayPoint1"),
@@ -55,19 +55,9 @@ function captureUplink()
//setAlliance(UPLINK, THE_COLLECTIVE, false);
}
//Extra win condition callback. Failure code works, however the uplink is far too
//fragile for this to work properly. Thus it is unused for now.
//Extra win condition callback.
function checkNASDACentral()
{
/*
if(getObject("uplink") == null)
{
const BADSND = "pcv622.ogg" //"Objective destroyed"
playSound(BADSND);
return false;
}
*/
var enemyStuff = enumArea("uplinkClearArea", THE_COLLECTIVE, false);
if(!enemyStuff.length)
{
@@ -254,7 +254,6 @@ function alphaTeamAlive()
if (!alphaAlive)
{
playSound("pcv622.ogg"); //objective destroyed.
return false;
}
@@ -177,7 +177,6 @@ function checkMissileSilos()
if (!countStruct("NX-ANTI-SATSite", CAM_HUMAN_PLAYER)
&& !countStruct("NX-ANTI-SATSite", SILO_PLAYER))
{
playSound("pcv622.ogg"); //Objective failed.
return false;
}
@@ -243,7 +243,6 @@ function checkMissileSilos()
if (!isCheating() && !countStruct("NX-ANTI-SATSite", CAM_HUMAN_PLAYER))
{
playSound("pcv622.ogg"); //Objective failed.
return false;
}
}

0 comments on commit 5799957

Please sign in to comment.