A_KoraxMissile

A_KoraxMissile

(no parameters)

Usage

This function handles Korax's projectile attacks where the Serpent Rider throws a fireball from each of its six arms at the same time. First, it chooses randomly between the following possibilities:

ChoiceMissile typeAttack sound
1WraithFX1"WraithMissileFire"
2Demon1FX1"DemonMissileFire"
3Demon2FX1"DemonMissileFire"
4FireDemonMissile"FireDemonAttack"
5CentaurFX"CentaurLeaderAttack"
6SerpentFX"CentaurLeaderAttack"

Then it plays the sound "KoraxAttack" on the VOICE channel and the chosen sound on the WEAPON channel.

Finally, it shoots six actors of the chosen missile type, using the following U, V coordinates relative to the calling actor's current facing:

Left armsRight arms
Upper arms (-0.0006, 108)(0.0006, 104)
Middle arms (-0.0008, 82)(0.0008, 86)
Lower arms (-0.0008, 54)(0.0008, 53)

The U position is changed into X and Y coordinates relative to calling actor's position using the calling actor's angle and basic trigonometry, the V position is turned into a Z coordinate relative to the calling actor's position after floorclip adjustment.

This codepointer is restricted to Korax and derived classes.

Examples

Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.