|
Note 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.
|
A_Boss4SpeedUp is an action used by the Egg Colosseum to signal when to increase the speed its spikeball arms spin around it; this is done by setting the actor's reaction time value to 2. Var1 determines the sound to play as it does this.
Code – A_Boss4SpeedUp
|
|
// Function: A_Boss4SpeedUp
//
// Description: Speed up arms
//
// var1 = sfx to play
// var2 = unused
//
void A_Boss4SpeedUp(mobj_t *actor)
{
sfxenum_t locvar1 = (sfxenum_t)var1;
#ifdef HAVE_BLUA
if (LUA_CallAction("A_Boss4SpeedUp", actor))
return;
#endif
S_StartSound(NULL, locvar1);
actor->reactiontime = 2;
}
|
|