From ZDoom Wiki
A_ReFire [(str "state")]
- state: The state to go to. By default, it is the Hold state, or the Fire state if Hold is not defined, or the AltHold or AltFire state if the function is called from the AltFire sequence.
This function is normally called by weapons after the attack. It checks whether the fire key is still held and if so enters the relevant state.
Fire: WEAP A 3 A_FireBullets(3, 3, 1, 6) 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