State 4 - Jumping
state: 4 is used in the jump frames. When the character is in the air, you can press right or left to change the direction he is facing. Pressing A will take him to frame 80 (jump_attack).
Technical note
The "Jump state" is an aerial state that takes some well-known and some hidden properties.
If hit_a parameter is 0, character will check if he holds a weapon when A is pressed.
If he holds weapon he goes to frame 30 (jump_weapon_attack)
If he doesn't hold, he goes to frame 80 (jump_attack)
It does not work when character is on ground.
If an opposite direction key to what he's facing is pressed, he changes direction.
It does not work when character is on ground.
There's no J and D state machines here, but a hidden issue that if a character with state: 4 gains velocity in either direction, he will change into falling frame.
This can be presented by the dazed Louis bug, where Louis tried to jump but his armor taking a hit will render him fall to ground instead.
Landing in a frame with state: 4 does not mean character will go to frame 215. Frame 212 is actual cause, that regardless of its state will result in going to 215.