A_SorcBallPop

It plays the sound "SorcererBallPop" on the BODY slot, clears the NOGRAVITY flag, gives a gravity value of 0.125, a horizontal velocity between -5 and +5 on both the X and the Y axis, and a vertical velocity between 2 and 5.

A_SorcBallPop
(no parameters)

Makes the calling actor go in a random direction.

It also sets the calling actor's special2 field to 4.0, and its args[3] and [4] fields to 5 and 17 respectively. These fields are used by other functions called internally by SorcBall and derived classes in order to make them bounce in a specific way. For this reason, this codepointer is restricted to SorcBall and actors inheriting from it.

This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.