A_SharpChase

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.

A_SharpChase is an action which is used as the thinker for the Spincushion. The actor chases the target player, moving a distance of Speed fracunits each time the action is used. 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.

Each time this action is used, the actor's reaction time is reduced by 1. When the actor's reaction time reaches 0, the actor goes to MissileState for the Sharp's spinning attack, and plays AttackSound when doing so. PainChance sets the actor's threshold value for when the actor goes to MissileState, which A_SharpSpin then uses as a timer before returning to SpawnState again.

Object property Use
SpawnState Goes back to this state if no players can be found
MissileState Goes to this state when reaction time = 0
AttackSound Spinning attack's charging sound; used when actor is going to MissileState
PainChance Sets the actor's threshold for when the actor goes to MissileState
Speed Distance to move, measured in fracunits

  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