A_CyberAttack
Jump to navigation
Jump to search
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 UZDoom. The most up-to-date version of this code can be found on UZDoom 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;
