A_HoodThink

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

A_HoodThink is an action that is used as the thinker for the Robo-Hood. Normally when the player is far enough away the actor will fire arrows at the player. When the player is close enough however, the actor instead jumps at the player. It uses MissileState for shooting, PainState for jumping, XDeathState for falling up after jumping, and RaiseState for falling down after jumping. If the actor doesn't have a target, it will return to its SpawnState.

Each time this action is used, the actor's reaction time will be reduced by 1. When it reaches 0, it will shoot the player if it is at least 192 fracunits away, otherwise it will jump at the player. After shooting/jumping, the actor will reset its reaction time to the value of ReactionTime. If the map Thing flag Ambush is given to the actor's spawnpoint, it prevents the actor from jumping regardless of distance; the actor will instead continue to shoot even when the player is within jumping range.

When the actor is in mid-air, its state will be changed depending on its vertical momentum – if > 0 the actor's state switches to XDeathState, if <= 0 RaiseState is used instead. Note that the actor will not reduce its reaction time value nor attack when in mid-air.

Object property Use
SpawnState Goes to this state if actor has no target
SeeState Aiming state
PainState Jumping state
MissileState Shooting state
XDeathState Falling up state
RaiseState Falling down state
ReactionTime Reaction time

  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