A_ReFire

From ZDoom Wiki

Jump to: navigation, search

A_ReFire

(no parameters)


This function is normally called by weapons after the attack. It checks whether the fire key is still held and if so enters the Hold/AltHold state, depending on the attack sequence it is called from. If Hold/AltHold states are not present, the weapon goes back to the Fire/AltFire state, depending on the attack sequence it is called from.

Examples

Fire:
  WEAP A 3 A_BulletAttack
  WEAP B 3 
  WEAP C 3 A_Refire //If fire button is held, then it goes back to the beginning of the sequence, Otherwise it would continue
  WEAP D 3
  Goto Ready
Personal tools