Permalink
Browse files

Can remove transporter blips from mission scripts.

Useful if a reinforcement transporter is no longer coming back so that
the blip it dropped does not stay there until the mission ends.
  • Loading branch information...
KJeff01 committed Jan 4, 2018
1 parent 8e053d2 commit 0908db6639896a28bec9efb6efd90488f50c9050
Showing with 23 additions and 3 deletions.
  1. +10 −0 data/base/script/campaign/cam3-b.js
  2. +13 −3 data/base/script/campaign/libcampaign.js
@@ -42,6 +42,16 @@ camAreaEvent("mockBattleTrigger", function(droid)
camCallOnce("activateNexusGroups"); //help destroy Gamma base
});
function camEnemyBaseEliminated_NXEastBase()
{
camRemoveEnemyTransporterBlip();
}
function camEnemyBaseEliminated_NXWestBase()
{
camRemoveEnemyTransporterBlip();
}
//Setup Nexus VTOL hit and runners.
function vtolAttack()
{
@@ -1021,6 +1021,17 @@ function camSetBaseReinforcements(blabel, interval, callback, kind, data)
bi.reinforce_data = data;
}
//;; \subsection{camRemoveEnemyTransporterBlip()}
//;; Removes the last blip that an enemy transporter left behind, if any.
function camRemoveEnemyTransporterBlip()
{
if (camDef(__camTransporterMessage))
{
hackRemoveMessage(__camTransporterMessage, PROX_MSG, CAM_HUMAN_PLAYER);
__camTransporterMessage = undefined;
}
}
//////////// privates
var __camEnemyBases;
@@ -1083,10 +1094,9 @@ function __camDispatchTransporterUnsafe()
setNoGoArea(pos.x - 2, pos.y - 2, pos.x + 2, pos.y + 2, player);
//Delete previous enemy reinforcement transport blip
if (player !== CAM_HUMAN_PLAYER && camDef(__camTransporterMessage))
if (player !== CAM_HUMAN_PLAYER)
{
hackRemoveMessage(__camTransporterMessage, PROX_MSG, CAM_HUMAN_PLAYER);
__camTransporterMessage = undefined;
camRemoveEnemyTransporterBlip();
}
if(player !== CAM_HUMAN_PLAYER)

0 comments on commit 0908db6

Please sign in to comment.