A_FlickySpawn

From SRB2 Wiki
Jump to navigation Jump to search

A_FlickySpawn 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_FlickyCenter, its intended use is spawning flickies from destroyed enemies. 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, 18th and 19th bits are used to toggle extra miscellaneous behavior. Var2 sets the upwards thrust for the spawned flicky; if unspecified, the default value of 8 fracunits is provided.

Attributes Use
Var1 Lower 16 bits: Object type to spawn; random type based on FlickyList if unspecified
17th bit: 0 = no sound played, otherwise A_Scream is called
18th bit: 1 = flicky spawned slightly forwards from spawn position
19th bit: 1 = flicky spawned slightly backwards from spawn position
Var2 Upward thrust in fracunits; defaults to 8 fracunits if unspecified

  Actions – Flickies [view]
A_FlickySpawn A_FlickyCenterA_FlickyAimA_FlickyFlyA_FlickySoarA_FlickyCoastA_FlickyHopA_FlickyFlounderA_FlickyCheckA_FlickyHeightCheckA_FlickyFlutter