A_SkullAttack
From DoomWiki.org
A_SkullAttack is a code pointer used in the attack animation for the lost soul. It implements the lost soul's "charge attack" where it launches itself towards its target.
A_SkullAttack sets the MF_SKULLFLY flag on the calling actor, which causes the actor to move like a missile, disables friction, prevents the actor from going into its Pain state, allows the actor to bounce on the floor, and causes special handling during collision checks. It is during these collision checks that the flag is removed, and the calling actor is sent back to its Spawn state with its momentum reset to 0, and damage is inflicted on the collided actor, if any. Crashes can happen if the attack is not allowed to end naturally with a collision against a wall or another actor; for example if calls to A_Chase are made.
Uses[edit]
The A_SkullAttack
code pointer appears in the following states in Doom's state table:
Frame number | Doom internal name | Use |
---|---|---|
590 | S_SKULL_ATK2 | attack animation for the lost soul |
Example[edit]
The following is an example of how to set the A_SkullAttack
code pointer in a DeHackEd file:
Pointer 21 (Frame 34) Codep Frame = 590
Or using BEX syntax:
[CODEPTR] Frame 1234 = SkullAttack
External links[edit]
- A_SkullAttack in the Doom source code.
- A_SkullAttack at the ZDoom wiki
- SkullAttack at the Eternity Engine wiki