 |
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. |
Once the Bird Aircraft Strike Hazard stops its attack, it looks for a new target. The Object falls down, then once it reaches the floor it turns around and goes to SpawnState.
|
Code - A_VultureCheck |
|
// Function: A_VultureCheck
//
// Description: If the vulture is stopped, look for a new target
//
// var1 = unused
// var2 = unused
//
void A_VultureCheck(mobj_t *actor)
{
if (actor->momx || actor->momy)
return;
actor->flags &= ~MF_NOGRAVITY; // Fall down
if (actor->z <= actor->floorz)
{
actor->angle -= ANGLE_180; // turn around
P_SetMobjState(actor, actor->info->spawnstate);
}
}
|
|