A_LeafCheck

This codepointer is restricted to Leaf1 and derived classes.

A_LeafCheck

(no parameters)

This codepointer has the following effects:

  1. Increments a counter kept in special1, and destroys the calling actor when the counter reaches 20.
  2. Has a 25% chance of thrusting the calling actor forward by a random amount between 1 and 3.
  3. Jumps to the state Spawn+7.
  4. Sets actor's the Z momentum to a random number between 1 and 3.
  5. Adds the MISSILE flag to the calling actor.

Examples

See Leaf1 for an example.

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