From SRB2 Wiki
Jump to: navigation, search
Test.png This article or section is incomplete. It doesn't have all of the necessary core information on this topic. Please help the SRB2 Wiki by finishing this article.
Test.png This article or section is outdated and has not been updated to reflect the release of SRB2 v2.2.

Please help the Wiki by correcting or removing any misinformation, as well as adding any new information to the page.

ToDoIcon.png To do
Update description for 2.2.0:
  • Var2 has some new options, upper 16 bits of var2 seems to control extravalue2 now as well
  • Is the hardcoded hack to call this action repeatedly still there? I forget offhand.

A_Boss1Laser is an action that is used by the Egg Mobile to run its laser attack. Var1 determines the type of Object to be fired as a laser; e.g.: the Egg Mobile fires MT_LASER. Var2 determines which side of the actor the laser is fired from: 0 fires from the left side, and 1 fires from the right side. All other Var2 values fire from the actor's center.

Unlike other actions, this action is hard-coded to repeatedly call itself every tic for the duration of the calling state, using the MF2_FIRING flag to determine whether the attack is currently in progress or not. Therefore, the duration of the state also determines the actual duration of the laser attack, in tics.

  Actions – Boss thinkers [view]