A_FlickyCenter

From SRB2 Wiki
Jump to navigation Jump to search

A_FlickyCenter is an action used to spawn a new Flicky from the actor's position, although it can be used to spawn any Object. Differently from A_FlickySpawn, its intended use is spawning enemies from Things directly placed on a map. If Var1's lower 16 bits are set to 0, a random flicky type chosen from the FlickyList level header parameter is spawned; otherwise, the designated Object type is spawned. The 17th-20th bits determine the spawned flicky's color from a preset list if the flicky is a Fish. Additionally, the actor's Object flags toggle extra miscellaneous behavior. It's important to note that, if this action is called by an actor placed via a Thing, then that Thing's properties will take precedence over the actor's: the Thing's flags will override the actor's Object flags, and its Parameter value will pick the flicky's color instead.

Flicky behavior settings
Object flags Thing flags Behavior
MF_SLIDEME Extra flag Instead of orbiting its target, the spawned flicky will move aimlessly.
MF_GRENADEBOUNCE Special flag Flickies will not move and will be suspended in mid-air. If the actor also has MF_NOCLIPTHING, they will be allowed to hop in place.
MF_NOCLIPTHING Ambush flag Used in tandem with MF_GRENADEBOUNCE to give still flickies gravity.
Available colors for Fish
Value Color
0 Random pick between SKINCOLOR_RED, SKINCOLOR_CYAN or SKINCOLOR_BLUE
1 SKINCOLOR_RED
2 SKINCOLOR_CYAN
3 SKINCOLOR_BLUE
4 SKINCOLOR_VAPOR
5 SKINCOLOR_PURPLE
6 SKINCOLOR_BUBBLEGUM
7 SKINCOLOR_NEON
8 SKINCOLOR_BLACK
9 SKINCOLOR_BEIGE
10 SKINCOLOR_LAVENDER
11 SKINCOLOR_RUBY
12 SKINCOLOR_SALMON
13 SKINCOLOR_SUNSET
14 SKINCOLOR_ORANGE
15 SKINCOLOR_YELLOW

Var2 sets the maximum default distance that the spawned flicky can move away from its target, in fracunits. If the actor was spawned from a Thing, then that Thing's Angle value takes precedence.

This action will additionally set the spawned flicky as the actor's tracer, and if called continuously, handle its targeting behavior. It will keep looking for a player around its active radius, and if there is one, it'll constantly move to where that player is; if that player backs off from that radius, it will then start moving back to its spawn point.

  Actions – Flickies [view]
A_FlickySpawn A_FlickyCenterA_FlickyAimA_FlickyFlyA_FlickySoarA_FlickyCoastA_FlickyHopA_FlickyFlounderA_FlickyCheckA_FlickyHeightCheckA_FlickyFlutter