A_CyberAttack
Jump to navigation
Jump to search
This page describes a function made for one of the natively supported games. These functions are made with very specific purpose and provide no flexibility, so using them in custom projects is not recommended. Authors are encouraged to use one of the more generalized functions in custom projects. For example: A_SpawnProjectile.

void A_CyberAttack()
The attack of Doom's cyberdemon. This shoots a rocket.
ZScript definition
Note: The ZScript definition below is for reference and may be different in the current version of GZDoom.The most up-to-date version of this code can be found on GZDoom GitHub. |
void A_CyberAttack()
{
if (target)
{
A_FaceTarget();
SpawnMissile (target, "Rocket");
}
}
(See SpawnMissile)
Examples
This is the Cyberdemon's Missile state sequence as in ZScript (the rest omitted for brevity):
Missile: CYBR E 6 A_FaceTarget; CYBR F 12 A_CyberAttack; CYBR E 12 A_FaceTarget; CYBR F 12 A_CyberAttack; CYBR E 12 A_FaceTarget; CYBR F 12 A_CyberAttack; Goto See;