A_Boss1Spikeballs

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.

A_Boss1Spikeballs is an action that was formerly used by the Egg Mobile in version 2.1 to spawn one of its spikeballs (an Object of type MT_EGGMOBILE_BALL) during its pinch phase. The spikeball's SeeSound is played, and its spawn state's action will be called; for MT_EGGMOBILE_BALL this means A_UnidusBall is called, initialising the spikeball's position.

The angular offset of the spikeball around the actor depends on Var1 and Var2: Var2 determines how many spikeballs in total there are meant to be, and Var1 determines the number of the spikeball being spawned (starting from 0). These are intended to be used such that, when the action has been called for every spikeball, the spikeballs will evenly spaced around the actor. For example, for the Egg Mobile to spawn four spikeballs, it calls A_Boss1Spikeballs four times, with Var1 values 0 to 3 used in succession while Var2's value is 4 all four times:

Var1 (Spikeball #) Var2 (Total #) Angular offset
0 4
1 4 90°
2 4 180°
3 4 270°

Note that this action sets the spikeball's threshold value, which is used by A_UnidusBall to determine the distance it will be placed from the actor when rotating; specifically the value spikeball's radius + actor's radius + spikeball's PainChance.

  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