So this super simple thing i wrote is supposed to fire a quick burst of 8 projectiles and then go back to the Ready state, but instead it keeps firing projectiles indefinetly. I compared this code to whatever i could find on the wiki and to code from other mods and i couldn't find anything that could be causing it to work not how i want it to.
So yeah, i turned to the Zdoom forums in search of an answer.
Here's the code:
So yeah, i turned to the Zdoom forums in search of an answer.
Here's the code:
Code:
Fire:PGUN B 1 {Invoker.ShotCounter = 0;}Goto FireLoop;FireLoop:PGUN C 1 {A_FireProjectile("Piezo_Proj");A_PlaySound("weapons/Piezo_Gun/fire");Invoker.ShotCounter ++;}PGUN D 1;PGUN D 0 {If(Invoker.ShotCounter == 8){A_Jump(256, "CoolDown");}}Goto FireLoop;CoolDown:PGUN E 8;PGUN D 8;Goto Ready;
Statistics: Posted by mistrzzzliszzzka — Wed Aug 21, 2024 10:30 am