This action is designed only for Objects of type
MT_EGGMOBILE4 (Egg Colosseum), and will not have the same effect for other types of Objects.
||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.
Update for 2.2.0:
- Var2 is the sound to play in pinch now
- Some technical stuff to do with
movedir has been added, if you really want to document that
A_Boss4Reverse is an action used by the Egg Colosseum to signal when to reverse the direction its spikeball arms spin around it; this is done by setting the actor's movedir value to 1 (clockwise) or 2 (counter-clockwise). The action's reaction time is also set to 0, so the spikeball arms rotate at the normal speed. Var1 determines the sound to play as it does this.
Code – A_Boss4Reverse
// Function: A_Boss4Reverse
// Description: Reverse arms direction.
// var1 = sfx to play
// var2 = sfx to play in pinch
void A_Boss4Reverse(mobj_t *actor)
sfxenum_t locvar1 = (sfxenum_t)var1;
sfxenum_t locvar2 = (sfxenum_t)var2;
if (LUA_CallAction("A_Boss4Reverse", actor))
actor->reactiontime = 0;
if (actor->movedir < 3)
if (actor->movedir == 1)
actor->movedir = 2;
actor->movedir = 1;
if (actor->movedir == 4)
actor->movedir = 5;
actor->movedir = 4;
actor->angle += ANGLE_180;
actor->movefactor = -actor->movefactor;