A_JetgShoot

From SRB2 Wiki
Jump to: navigation, 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, ReactionTime*TICRATE*2 (ReactionTime*70) sets the actor's new reaction time. In Ultimate mode, the actor's new reaction time is set to ReactionTime*TICRATE (ReactionTime*35) 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_GuardChaseA_HoodThinkA_JetbThinkA_JetChaseA_JetgShootA_JetgThinkA_JetJawChompA_JetJawRoamA_MinusCheckA_MinusDiggingA_MinusPopupA_PointyThinkA_SharpChaseA_SharpSpinA_SkimChaseA_SnailerThinkA_VultureCheckA_VultureVtol