251
edits
Icecream17 (talk | contribs) (explain code for Backflip) |
Icecream17 (talk | contribs) (→Transition In: found citation) |
||
Line 24: | Line 24: | ||
# If Mario is squished and/or has a quicksand depth more than 1, the vertical speed is halved. | # If Mario is squished and/or has a quicksand depth more than 1, the vertical speed is halved. | ||
# Mario's forward speed is multiplied by 0.8. | # Mario's forward speed is multiplied by 0.8. | ||
Then, | Then, more general things occur. These happen to all airborne actions.<ref>https://github.com/n64decomp/sm64/blob/9921382a68bb0c865e5e45eb594d9c64db59b1af/src/game/mario.c#L887-L888</ref> Steps 3 and after apply to all actions.<ref>https://github.com/n64decomp/sm64/blob/9921382a68bb0c865e5e45eb594d9c64db59b1af/src/game/mario.c#L999-L1010</ref> | ||
# Mario's peak height is updated. | # Mario's peak height is updated. | ||
# Mario's [UNKNOWN_08] flag is set. | |||
# Mario's voice clip played flag is reset. | # Mario's voice clip played flag is reset. | ||
# | # <span style='gray'>Another flag [UNKNOWN_18] is reset as long as the action doesn't have the Air flag.</span> <!-- Keeping this here so that I may update all actions --> | ||
# The previous action is set to the current action (which is not yet the jump action). | # The previous action is set to the current action (which is not yet the jump action). | ||
# The current action is set to the jump action. | # The current action is set to the jump action. | ||
# The action argument is set. | # The action argument is set. | ||
# The action state is set to 0. | # The action state is set to 0. | ||
# The action timer is set to 0. | # The action timer is set to 0. | ||
== Airborne cancels == | == Airborne cancels == | ||
A variety of "cancels" are checked prior to actually performing any airborne action. These are as follows:<ref>https://github.com/n64decomp/sm64/blob/66018e9f3caaa67399218971d61366cb3f7ba7d7/src/game/mario_actions_airborne.c#L2066</ref> | A variety of "cancels" are checked prior to actually performing any airborne action. These are as follows:<ref>https://github.com/n64decomp/sm64/blob/66018e9f3caaa67399218971d61366cb3f7ba7d7/src/game/mario_actions_airborne.c#L2066</ref> |
edits