Skip to content

Commit

Permalink
Fixed Missing Door Labels on Alpha 4
Browse files Browse the repository at this point in the history
- Delayed when the labes are applied to ensure they are applied on the correct feature object (since it takes a few frames to replace)
  • Loading branch information
DARwins1 committed Jul 21, 2024
1 parent 268aa34 commit 66507a9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions script/campaign/alpha4.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,14 @@ function doorCheck()
}
}

function addDoorLabels()
{
// HACK: Automatic label transfer doesn't seem to work for features...
addLabel(getObject(87, 86), "door1");
addLabel(getObject(98, 50), "door2");
addLabel(getObject(106, 18), "door3");
}

function eventStartLevel()
{
camSetStandardWinLossConditions(CAM_VICTORY_STANDARD, "CTF_2FORT", {callback: "doorCheck"});
Expand Down Expand Up @@ -560,10 +568,7 @@ function eventStartLevel()
camUpgradeOnMapFeatures("OilTower", "Sign3");
camUpgradeOnMapFeatures("Pipe1A", "Sign7");

// HACK: Automatic label transfer doesn't seem to work for features...
addLabel(getObject(87, 86), "door1");
addLabel(getObject(98, 50), "door2");
addLabel(getObject(106, 18), "door3");
queue("addDoorLabels", camSecondsToMilliseconds(5));

// Make Clippy's structures funny
camUpgradeOnMapStructures("GuardTower1", "GuardTower1MG", CAM_CLIPPY);
Expand Down

0 comments on commit 66507a9

Please sign in to comment.