This action is designed only for Objects of type
MT_EGGMOBILE4 (Eggscalibur), and will not have the same effect for other types of Objects.
A_Boss4Reverse is an action used by the Eggscalibur 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 = unused
void A_Boss4Reverse(mobj_t *actor)
sfxenum_t locvar1 = (sfxenum_t)var1;
if (LUA_CallAction("A_Boss4Reverse", actor))
actor->reactiontime = 0;
if (actor->movedir == 1)
actor->movedir = 2;
actor->movedir = 1;