A_CustomPunch

From ZDoom Wiki

Jump to: navigation, search

A_CustomPunch (int damage [, bool norandom [, bool usenoammo [, string pufftype, [float range]]]])


Defines a custom punch attack. Damage can either be random or fixed and it is possible to specify whether ammo is used or the puff that is spawned when hitting the wall or a non-bleeding actor. It is also possible to define the maximum distance of the attack.

Please note that the Berserk powerup will not work with A_CustomPunch. However, you can emulate the effect using A_JumpIfInventory.

Examples

Fire:
   KNIF B 4
   KNIF C 4 A_CustomPunch (20,0,0,0,0)
   KNIF D 5
   KNIF C 4
   KNIF B 5 A_ReFire
   goto Ready
Personal tools