A_FlickyAim

From SRB2 Wiki
Jump to navigation Jump to search

A_FlickyAim is an action used by Flickies to aim towards their current target. This aiming can be intentionally not precise - it can point to an angle range around its target instead of the target itself, and consider a distance that is not exactly that to the target. Var1 determines the aiming angle range around the target as an angle constant, while Var2 determines the distance from their target to aim for in fracunits.

This action will halt the actor's movement. If the actor doesn't have a target, like with flickies spawned from enemies, and there are no players around to follow, the actor's angle will be picked randomly, and if the actor's fuse is below 2 seconds (2*TICRATE) its angle will not be altered. If the actor is a flicky placed by a Thing and does not have aimless movement, this action will also handle the aiming back to its home in case it gets too far from it. Lastly, this action will also spawn a bubble around the actor in case it goes underwater and is not an underwater flicky.

  Actions – Flickies [view]
A_FlickySpawn A_FlickyCenterA_FlickyAimA_FlickyFlyA_FlickySoarA_FlickyCoastA_FlickyHopA_FlickyFlounderA_FlickyCheckA_FlickyHeightCheckA_FlickyFlutter