A_DetonChase

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_DetonChase is an action that causes the actor to chase after the target player (set as the actor's tracer) in the manner of a Deton. The actor will automatically be set to move at 3/4 of the top speed of the character they chase to make sure every character can avoid it. As the actor moves towards its target player, it will adjust its movement angle to aim towards the player both horizontally and vertically. When the actor touches the target player, it will explode and damage any Objects within 96 fracunits around it. If the actor's tracer doesn't exist, is dead or is further away than PainChance, the actor will look for a new target player to set as the tracer; if none can be found, the actor stops moving and returns to its SpawnState.

Note that the actor will not actually move until its reaction time value has been set to -42, and this action will adjust the actor's reaction time so it reaches this value – when the reaction time is higher than 1 it will be reduced by 1 each time the action is used; when the reaction time reaches 1 it will be set to -42 and play the actor's SeeSound if it exists; if it is 0, it will be reset to the value of ReactionTime; when it is -42 the actor will move and play sfx_deton at a frequency depending on how far the actor is from its tracer.

Object property Use
SpawnState Goes back to this state if no players can be found
SeeSound When reaction time = 1, this sound is played
ReactionTime When reaction time = 0, this value sets the new reaction time
PainChance If the actor is further away from the player target than this value, the actor stops chasing

  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