A_PointyThink

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_PointyThink is an action which is used as the thinker for the Pointy. The actor will first search for the nearest living player which it can see, which it will set as its target. The actor will then move at a speed defined by the Object's Speed value, mirroring its target player's movements – if the player is moving closer to the actor, the actor will move forwards; if the player is moving away however, the actor will move backwards instead.

This action also handles the position and movement of the Pointy's spikeballs, assuming that there are four of them and that they are all linked in a chain starting with the actor, each of them except the last tracer-ing the next spikeball. As the actor moves, each of the spikeball Objects in turn are rotated vertically accordingly. The actor's ReactionTime determines the multiple of the actor's radius to use as the distance the spikeball Objects are from the actor, i.e. spikeball distance = ReactionTime×Radius.

Damage determines the spikeballs' speed of rotation around the actor when the player moves – note that this is not directly given in degrees/tic, but in a scale where 8192 is 360°/tic, 4096 is 180°/tic, 2048 is 90°/tic, etc. For example, the Pointy has a Damage value of 128, which converts to 5.625 °/tic.

Object property Use
Speed Sets how fast the actor moves forwards/backwards when the player is moving
Radius Sets the distance the spikeballs are from the actor (Radius×ReactionTime)
ReactionTime Sets the distance the spikeballs are from the actor (Radius×ReactionTime)
Damage Sets how fast the spikeballs move around the actor when the player is moving

  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