BSL:Tutorial/airport1 level logic.bsl: Difference between revisions

→‎func i_uh_heheheh: so much for ssg's "overcommented" scripts... sigh
(→‎func i_uh_heheheh: so much for ssg's "overcommented" scripts... sigh)
Line 625: Line 625:
  }
  }
===func i_uh_heheheh===
===func i_uh_heheheh===
That thing is supposed to force the two Red Strikers from the final fight to retreat to the end-of-level door when and if Konoko is about to unlock it. The [[TRGV|trigger volume]] responsible for this is '''i_uh_heheheh1''' (number 6): '''func i_uh_heheheh''' is its '''entry''' function; it spans the stairs that lead to the final console. It is disabled at level start and is never enabled, so the following function is never actually called in the original Oni. If you want to experiment with it, just do '''trigvolume_enable i_uh_heheheh1 1''' after the Strikers are spawned, make a run for the console and see them do their "strategic retreat".
This forces the two Red Strikers from the final fight to retreat to the end-of-level door when and if Konoko is about to unlock it from the faraway console. The [[TRGV|trigger volume]] responsible for this is '''i_uh_heheheh1''' (number 6): '''func i_uh_heheheh''' is its '''entry''' function; it spans the stairs that lead to the [[OBD:BINA/OBJC/CONS|console]] number 4. That trigger volume is disabled at level start. It's enabled in '''[[BSL:Tutorial/airport1 level logic.bsl#func final_ambush|func final_ambush]]''' (see above), after both Strikers are spawned. Once enabled, it can only be triggered once, and only by the player.
:Note the typically inconsistent '''string char_index''' parameter: actually the ''name'' of the character who fired the trigger volume function.
:Note the typically inconsistent '''string char_index''' parameter: this is actually the ''name'' of the character who fired the trigger volume function.
  func void i_uh_heheheh(string char_index)
  func void i_uh_heheheh(string char_index)
  {
  {
Line 633: Line 633:
  ai2_dopath finalam_striker_2 strategic_retreat2
  ai2_dopath finalam_striker_2 strategic_retreat2
  }
  }
==### DOOR LOCK LIGHTS ###==
==### DOOR LOCK LIGHTS ###==
===func change_terminaldoor_light===
===func change_terminaldoor_light===