FN_PowerOutTask

Represents a mid-shift blackout event. Overrides task flow, cuts power, and routes the player into a fuse-based recovery sequence.

Main Responsibilities

  • Disables lights and emissive visuals.
  • Locks player into fuse box cinematic.
  • Waits for fuse insertion.
  • Routes to light restoration task.

Insert Fuse Logic

public void InsertFuse() {
  bl_fuseInserted = true;
  MarkTaskComplete();
  TaskManager.lst_allTasks = new() { lightsTask };
  TaskManager.SetCurrentTask(lightsTask);
  lightsTask.BeginTask();
}
rewrites task flow and starts light restore
InsertFuse logic and debug log

Power Out Initiation

public override void BeginTask() {
  DisableLights();
  PlayShutdownSFX();
  MoveToFuseBox();
}
triggers blackout and cinematic
Scene after power is lost

Camera Transition to Fuse Box

private void MoveToFuseBox() {
  cameraMovement.MoveToPoint(tr_cinematicView, fl_lerpSpeed);
  DisablePlayerControl();
}
isolates player during set piece
Fuse box cinematic camera

In-Game Demo

← Return to Warehouse Game Overview