A_Boss1Laser

From SRB2 Wiki
Jump to navigation Jump to search
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.
This article or section is outdated and has not been fully updated to reflect the current version of SRB2.

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

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]
A_Boss1ChaseA_Boss1LaserA_Boss1SpikeballsA_Boss2ChaseA_Boss2PogoA_Boss2PogoSFXA_Boss2PogoTargetA_Boss2TakeDamageA_Boss3PathA_Boss3TakeDamageA_Boss4RaiseA_Boss4ReverseA_Boss4SpeedUpA_Boss7ChaseA_Boss7FireMissilesA_BossDeathA_BossFireShotA_BossJetFumeA_BossScreamA_BossZoomA_BrakChaseA_BrakFireShotA_BrakLobShotA_FocusTarget