A_CyberAttack
From DoomWiki.org
This article or section is a stub. Please help the Doom Wiki by adding to it. |
A_CyberAttack is a code pointer used in the attack animation for the cyberdemon.
Uses[edit]
The A_CyberAttack
code pointer appears in the following states in Doom's state table:
Frame number | Doom internal name | Use |
---|---|---|
685 | S_CYBER_ATK2 | attack animation for the cyberdemon |
687 | S_CYBER_ATK4 | attack animation for the cyberdemon |
689 | S_CYBER_ATK6 | attack animation for the cyberdemon |
Example[edit]
The following is an example of how to set the A_CyberAttack
code pointer in a DeHackEd file:
Pointer 21 (Frame 34) Codep Frame = 689
Or using BEX syntax:
[CODEPTR] Frame 1234 = CyberAttack
Code structure[edit]
A_CyberAttack
's code structure is very simple. It calls A_FaceTarget and then uses the P_SpawnMissile
function to fire the rocket. There are similarities with A_FireMissile although some of the code paths are different.
See also[edit]
- A_FireMissile - weapon code pointer used by the player to launch rockets
External links[edit]
- A_CyberAttack in the Doom source code.
- A_CyberAttack at the ZDoom wiki
- CyberAttack at the Eternity Engine wiki