ONLY SUBACTION 48 and 49 WERE CHANGED.
Basically to add "projectiles" You need to manipulate graphics, hitboxes and timers.
It's really easy.
Both the graphics and the hitboxes will share the same position, you can change this with the offsets.
In my example ever 5 frames it creates a graphic and hitbox.
Both are at the same position, this makes it look like wario is using a fireball.
To make the projectile work like a fireball I added a terminate collision before each hitbox, this lets each "projectile" in the line do damage.