A_GuardChase

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.
This article or section is outdated and has not been fully updated to reflect the current version of SRB2.

Please help the Wiki by correcting or removing any misinformation, as well as adding any new information to the page.

To do
Rewrite description for 2.2.0, in particular Egg Guard has new behavior up until the second phase

A_GuardChase is an action which is a modified A_Chase for the Egg Guard. When the actor's tracer (in the Egg Guard's case, this is its shield) has been destroyed, the actor will go to its PainState, and MF_SPECIAL and MF_SHOOTABLE are added to the actor's flags to allow the actor to be destroyed as with regular enemies. If the actor's target doesn't exist or is dead, the actor will look for a new target player; if none can be found, it returns to its SpawnState.

Speed sets the distance in fracunits the actor will move to chase the target player each time the action is used. If the actor has MF2_AMBUSH, it will move twice the distance each time. Each time this action is used, the actor's reaction time will be reduced by 1 until it reaches 0. If the actor's tracer is still present, the actor will also force its tracer to use its current state's action whenever this action is used.

Object property Use
SpawnState Goes back to this state if no players can be found
PainState Goes to this state when the shield has been destroyed
Speed Distance to move, measured in fracunits (if the actor has MF2_AMBUSH, this value is doubled)

  Actions – Enemy thinkers [view]
A_BuzzFlyA_CrawlaCommanderThinkA_DetonChaseA_EggShieldA_FaceStabChaseA_FaceStabRevA_FaceStabHurlA_FaceStabMissA_StatueBurstA_GuardChaseA_HoodThinkA_HoodFallA_JetbThinkA_JetChaseA_JetgShootA_JetgThinkA_JetJawChompA_JetJawRoamA_MinusCheckA_MinusDiggingA_MinusPopupA_PointyThinkA_SharpChaseA_SharpSpinA_SharpDecelA_SkimChaseA_SnailerThinkA_VultureCheckA_VultureVtol