Difference between revisions of "A PosAttack"

From DoomWiki.org

[checked revision][checked revision]
m (External links)
(add some more detail)
 
Line 1: Line 1:
 
{{DISPLAYTITLE:A_PosAttack}}
 
{{DISPLAYTITLE:A_PosAttack}}
{{stub}}
+
[[File:Former_Human.png|thumb|Zombieman attacking the player.]]
 
'''A_PosAttack''' is a [[code pointer]] used in the attack animation for the [[Trooper]].
 
'''A_PosAttack''' is a [[code pointer]] used in the attack animation for the [[Trooper]].
 +
 +
<code>A_PosAttack</code> causes the monster to fire a hitscan attack against its current target, internally calling <code>A_FaceTarget</code> to face in the direction of the target. It is similar to the [[A_FirePistol]] code pointer used in the pistol firing animation sequence. The sound effect DSPISTOL is played.
  
 
== Uses ==
 
== Uses ==

Latest revision as of 17:21, 17 March 2020

Zombieman attacking the player.

A_PosAttack is a code pointer used in the attack animation for the Trooper.

A_PosAttack causes the monster to fire a hitscan attack against its current target, internally calling A_FaceTarget to face in the direction of the target. It is similar to the A_FirePistol code pointer used in the pistol firing animation sequence. The sound effect DSPISTOL is played.

Uses[edit]

The A_PosAttack code pointer appears in the following states in Doom's state table:

Example[edit]

The following is an example of how to set the A_PosAttack code pointer in a Dehacked file:

Pointer 21 (Frame 34)
Codep Frame = 185

Or using BEX syntax:

[CODEPTR]
Frame 1234 = PosAttack

See also[edit]

External links[edit]