From ZDoom Wiki
Jump to navigation Jump to search

A_VileAttack [(str sound [, int initialdamage [, int blastdamage [, int blastradius [, float thrustfactor [, str damagetype [, int flags]]]]]])]

For more information on this article, visit the A_VileAttack page on the Doom Wiki.


Performs the actual attack of the Arch-Vile. To hit, the current actor must have a target and that target must be in line of sight. If the hit is successful, the specified sound is played, the initial damage is dealt to the target and they are thrust vertically into the air. If this actor has a tracer assigned (see A_VileTarget) then that actor also explodes and deals the blast damage to the target and surrounding actors.


  • sound: The sound that is played when the attack hits. Default is "vile/stop".
  • initialdamage: The amount of direct-damage to do to the target immediately on hit. Default is 20.
  • blastdamage: The damage done by the explosion spawned at the tracer. Default is 70.
  • blastradius: The radius of the explosion spawned at the tracer. Other actors within this range will take damage from the explosion. Default is 70.
  • thrustfactor: The amount of vertical thrust to apply to the target. Default is 1.0. Higher values will push the target further into the air, while lower values will lessen the effect.
  • damagetype: The type of damage to deal to actors hit by this effect. Applies only to the blast attack, unless the below flag is set. Default is "Fire".
  • flags:
    • VAF_DMGTYPEAPPLYTODIRECT – If set, the specified damage type applies to both attacks. Otherwise, it only applies to the blast attack, and in which case, the initial/direct attack's damage type will be None.


This example is taken from Doom's Arch-Vile.

   VILE G 0 BRIGHT A_VileStart
   VILE G 10 BRIGHT A_FaceTarget
   VILE H 8 BRIGHT A_VileTarget
   VILE O 8 BRIGHT A_VileAttack
   Goto See