A_JetgShoot

From SRB2 Wiki
Jump to navigation Jump to search

A_JetgShoot is an action that makes the actor fire an Object defined by the actor's RaiseState, and plays the actor's AttackSound. The actor will quickly check how far the target is to it before firing at its target – PainChance sets the maximum distance limit, measured in fracunits, while the minimum limit is set to 64 fracunits. If the target is in between these limits, the actor will face its target (using A_FaceTarget) and fire the chosen Object. When the actor fires the chosen Object, the SeeSound of the fired Object is played. If the actor's reaction time is not 0, the actor doesn't have a target to fire at, or the target is too near to/far away from the actor, this action will not do anything. In SRB2, this action is used by the Jetty-Syn Gunner.

After firing, the actor's reaction time is set to a new value determined by the actor's ReactionTime. Normally, the reaction time is set to a value of ReactionTime*TICRATE*2 (or 2×ReactionTime seconds). In Ultimate mode, it is set to ReactionTime*TICRATE (or ReactionTime seconds) instead.

Object property Use
RaiseState Object type to shoot
SeeSound (of Object being shot) Played when fired
AttackSound Shooting sound
PainChance Max shooting distance limit
ReactionTime New reaction time (ReactionTime*TICRATE*2; ReactionTime*TICRATE in Ultimate mode)

  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