A_LeafCheck
This codepointer is restricted to Leaf1 and derived classes.
A_LeafCheck
(no parameters)
This codepointer has the following effects:
- Increments a counter kept in special1, and destroys the calling actor when the counter reaches 20.
- Has a 25% chance of thrusting the calling actor forward by a random amount between 1 and 3.
- Jumps to the state Spawn+7.
- Sets actor's the Z momentum to a random number between 1 and 3.
- 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.